TBaSystemSoundInfo Class Reference

#include <bassnd.h>

class TBaSystemSoundInfo

Nested Classes and Structures

Detailed Description

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.

Member Attribute Documentation

iPriority

TInt iPriority

iType

iVolume

TInt iVolume

Member Enumeration Documentation

Enum TSoundCategory

Specifies the category of the system sound.

EnumeratorValueDescription
ENull

Specifies no system sound.

EFile

Specifies a file as the system sound.

ESequence

Specifies a sequence as the system sound.

ETone

Specifies a tone as the system sound.

Constructor & Destructor Documentation

TBaSystemSoundInfo ( )

IMPORT_CTBaSystemSoundInfo()

Constructs a default TBaSystemSoundInfo object. This object has a null type, default volume, default priority, null name, null fixed sequence, and tone of TTone.

TBaSystemSoundInfo ( const TBaSystemSoundType &, const TBaSystemSoundName &, TInt, TInt )

IMPORT_CTBaSystemSoundInfo(const TBaSystemSoundType &aType,
const TBaSystemSoundName &aName,
TIntaVolume = KSystemSoundDefaultVolume,
TIntaPriority = KSystemSoundDefaultPriority
)

Constructs a TBaSystemSoundInfo object with the specified type and file name. The sound has default volume and priority.

ParameterDescription
aTypeSound type
aNameSound name
aVolumeSound volume
aPrioritySound priority

TBaSystemSoundInfo ( const TBaSystemSoundType &, TInt, TInt, TInt )

IMPORT_CTBaSystemSoundInfo(const TBaSystemSoundType &aType,
TIntaFixedSequence,
TIntaVolume = KSystemSoundDefaultVolume,
TIntaPriority = KSystemSoundDefaultPriority
)

Constructs a TBaSystemSoundInfo object with the specified type and sequence. The sound has default volume and priority.

ParameterDescription
aTypeSound type
aFixedSequenceSound sequence
aVolumeSound volume
aPrioritySound priority

TBaSystemSoundInfo ( const TBaSystemSoundType &, TTone, TInt, TInt )

IMPORT_CTBaSystemSoundInfo(const TBaSystemSoundType &aType,
TToneaTone,
TIntaVolume = KSystemSoundDefaultVolume,
TIntaPriority = KSystemSoundDefaultPriority
)

Constructs a TBaSystemSoundInfo object with the specified type and tone. The sound has default volume and priority.

ParameterDescription
aTypeSound type
aToneSound tone
aVolumeSound volume
aPrioritySound priority

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const

Externalises an object of this class to a write stream. The presence of this function means that the standard templated operator<<() can be used to externalise objects of this class.

ParameterDescription
aStreamStream to which the object should be externalised.

FileName ( )

TBaSystemSoundName FileName()const [inline]

Gets the current sound's file.

Returns: The current sound's file.

FixedSequenceNumber ( )

TInt FixedSequenceNumber()const [inline]

Gets the current sound's sequence.

Returns: The current sound's sequence.

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)

Internalises an object of this class from a read stream. Presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.

ParameterDescription
aStreamThe stream from which the object is to be internalised.

SetFileName ( const TBaSystemSoundName & )

IMPORT_C voidSetFileName(const TBaSystemSoundName &aFileName)

Replaces the current sound with the specified file.

ParameterDescription
aFileNameThe file with which to replace the current sound.

SetFixedSequenceNumber ( TInt )

IMPORT_C voidSetFixedSequenceNumber(TIntaNumber)

Replaces the current sound with the specified sequence number.

ParameterDescription
aNumberThe sequence number with which to replace the current sound.

SetTone ( const TTone & )

IMPORT_C voidSetTone(const TTone &aTone)

Replaces the current sound with the specified tone.

ParameterDescription
aToneThe tone with which to replace the current sound.

SoundCategory ( )

IMPORT_C TSoundCategorySoundCategory()const

Gets the sound's category.

Returns: The system sound's category, or NULL if the sound is not a file, sequence, or tone.

Tone ( )

TTone Tone()const [inline]

Gets the current system sound's tone.

Returns: The current sound's tone.