|
|
|
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:
EFileSpecifies a file as the system sound. ENullSpecifies no system sound. ESequenceSpecifies a sequence as the system sound. EToneSpecifies a tone as the system sound. FileName()constGets the current sound's file.FixedSequenceNumber()constGets 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()constGets 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...TSoundCategorySpecifies the category of the system sound. TToneProvides functions to define a tone. Once defined, the tone can be encapsulated ...Tone()constGets the current system sound's tone.iPriorityiTypeiVolumeIMPORT_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...iDurationDuration of the tone. iFrequencyFrequency 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.
|
iFrequencyTInt iFrequency;
Frequency of the tone.
iDurationTTimeIntervalMicroSeconds32 iDuration;
Duration of the tone.
TSoundCategory
Specifies the category of the system sound.
|
TInt iPriority;