|
||
class TBaSystemSoundInfo;
Provides functions that contain the information for a system sound. A sound may be a file, a tone or a fixed sequence.
The characteristics of a physical sound that corresponds to a logical sound are encapsulated in a TBaSystemSoundInfo object.
You can get and set the physical sound for a logical sound through the functions provided by the BaSystemSound
class.
Defined in TBaSystemSoundInfo
:
EFile
Specifies a file as the system sound. ENull
Specifies no system sound. ESequence
Specifies a sequence as the system sound. ETone
Specifies a tone as the system sound. FileName()const
Gets the current sound's file.FixedSequenceNumber()const
Gets the current sound's sequence.SetFileName(const TBaSystemSoundName &)
Replaces the current sound with the specified file.SetFixedSequenceNumber(TInt)
Replaces the current sound with the specified sequence number.SetTone(const TTone &)
Replaces the current sound with the specified tone.SoundCategory()const
Gets the sound's category.TBaSystemSoundInfo()
Constructs a default TBaSystemSoundInfo object. This object has a null type, def...TBaSystemSoundInfo(const TBaSystemSoundType &,TInt,TInt,TInt)
Constructs a TBaSystemSoundInfo object with the specified type and sequence. The...TBaSystemSoundInfo(const TBaSystemSoundType &,TTone,TInt,TInt)
Constructs a TBaSystemSoundInfo object with the specified type and tone. The sou...TBaSystemSoundInfo(const TBaSystemSoundType &,const TBaSystemSoundName &,TInt,TInt)
Constructs a TBaSystemSoundInfo object with the specified type and file name. Th...TSoundCategory
Specifies the category of the system sound. TTone
Provides functions to define a tone. Once defined, the tone can be encapsulated ...Tone()const
Gets the current system sound's tone.iPriority
iType
iVolume
IMPORT_C TBaSystemSoundInfo();
Constructs a default TBaSystemSoundInfo object. This object has a null type, default volume, default priority, null name,
null fixed sequence, and tone of TBaSystemSoundInfo::TTone
.
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, const TBaSystemSoundName &aName, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and file name. The sound has default volume and priority.
|
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, TInt aFixedSequence, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and sequence. The sound has default volume and priority.
|
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, TTone aTone, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and tone. The sound has default volume and priority.
|
IMPORT_C TSoundCategory SoundCategory() const;
Gets the sound's category.
|
inline TInt FixedSequenceNumber() const;
Gets the current sound's sequence.
|
inline TBaSystemSoundName FileName() const;
Gets the current sound's file.
|
inline TTone Tone() const;
Gets the current system sound's tone.
|
IMPORT_C void SetFixedSequenceNumber(TInt aNumber);
Replaces the current sound with the specified sequence number.
|
IMPORT_C void SetFileName(const TBaSystemSoundName &aFileName);
Replaces the current sound with the specified file.
|
IMPORT_C void SetTone(const TTone &aTone);
Replaces the current sound with the specified tone.
|
class TTone;
Provides functions to define a tone. Once defined, the tone can be encapsulated using the TBaSystemSoundInfo
class and subsequently played.
Defined in TBaSystemSoundInfo::TTone
:
TTone()
Default constructor. Sets up a TBaSystemSoundInfo::TTone object with null freque...TTone(TInt,TTimeIntervalMicroSeconds32)
Constructor which sets up a TBaSystemSoundInfo::TTone object with specified freq...iDuration
Duration of the tone. iFrequency
Frequency of the tone. TTone()
inline TTone();
Default constructor. Sets up a TBaSystemSoundInfo::TTone
object with null frequency and duration.
TTone(TInt,TTimeIntervalMicroSeconds32)
inline TTone(TInt aFrequency, TTimeIntervalMicroSeconds32 aDuration);
Constructor which sets up a TBaSystemSoundInfo::TTone
object with specified frequency and duration.
|
iFrequency
TInt iFrequency;
Frequency of the tone.
iDuration
TTimeIntervalMicroSeconds32 iDuration;
Duration of the tone.
TSoundCategory
Specifies the category of the system sound.
|
TInt iPriority;