mmserv/tms/tmsserver/inc/tmsaudiotoneutility.h
changeset 16 43d09473c595
parent 12 5a06f39ad45b
child 20 b67dd1fc57c5
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
    13  *
    13  *
    14  * Description: Telephony Multimedia Service
    14  * Description: Telephony Multimedia Service
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #ifndef CPEAUDIOTONEUTILITY_H
    18 #ifndef TMSAUDIOTONEUTILITY_H
    19 #define CPEAUDIOTONEUTILITY_H
    19 #define TMSAUDIOTONEUTILITY_H
    20 
    20 
    21 #include <mdaaudiotoneplayer.h>
    21 #include <mdaaudiotoneplayer.h>
    22 
    22 
    23 namespace TMS {
    23 namespace TMS {
    24 
    24 
    26  *  Interface to wrap CMdaAudioToneUtility.
    26  *  Interface to wrap CMdaAudioToneUtility.
    27  *
    27  *
    28  */
    28  */
    29 class TMSAudioToneUtility
    29 class TMSAudioToneUtility
    30     {
    30     {
    31 
       
    32 public:
    31 public:
    33     /**
    32     /**
    34      * See CMdaAudioToneUtility::PrepareToPlayDesSequence.
    33      * See CMdaAudioToneUtility::PrepareToPlayDesSequence.
    35      */
    34      */
    36     virtual void PrepareToPlayDesSequence(const TDesC8& aSequence ) = 0;
    35     virtual void PrepareToPlayDesSequence(const TDesC8& aSequence) = 0;
    37 
    36 
    38     /**
    37     /**
    39      * See CMdaAudioToneUtility::State.
    38      * See CMdaAudioToneUtility::State.
    40      */
    39      */
    41     virtual TMdaAudioToneUtilityState State() = 0;
    40     virtual TMdaAudioToneUtilityState State() = 0;
    51     virtual TInt MaxVolume() = 0;
    50     virtual TInt MaxVolume() = 0;
    52 
    51 
    53     /**
    52     /**
    54      * See CMdaAudioToneUtility::SetVolume.
    53      * See CMdaAudioToneUtility::SetVolume.
    55      */
    54      */
    56     virtual void SetVolume( TInt aVolume ) = 0;
    55     virtual void SetVolume(TInt aVolume) = 0;
    57 
    56 
    58     /**
    57     /**
    59      * See CMdaAudioToneUtility::SetRepeats.
    58      * See CMdaAudioToneUtility::SetRepeats.
    60      */
    59      */
    61     virtual void SetRepeats(
    60     virtual void SetRepeats(TInt aRepeatNumberOfTimes,
    62         TInt aRepeatNumberOfTimes,
    61             const TTimeIntervalMicroSeconds& aTrailingSilence) = 0;
    63         const TTimeIntervalMicroSeconds& aTrailingSilence ) = 0;
       
    64 
    62 
    65     /**
    63     /**
    66      * See CMdaAudioToneUtility::SetPriority.
    64      * See CMdaAudioToneUtility::SetPriority.
    67      */
    65      */
    68     virtual void SetPriority(
    66     virtual void SetPriority(TInt aPriority, TMdaPriorityPreference aPref) = 0;
    69         TInt aPriority,
       
    70         TMdaPriorityPreference aPref) = 0;
       
    71 
    67 
    72     /**
    68     /**
    73      * See CMdaAudioToneUtility::SetVolumeRamp.
    69      * See CMdaAudioToneUtility::SetVolumeRamp.
    74      */
    70      */
    75     virtual void SetVolumeRamp(
    71     virtual void SetVolumeRamp(
    76         const TTimeIntervalMicroSeconds& aRampDuration) = 0;
    72             const TTimeIntervalMicroSeconds& aRampDuration) = 0;
    77 
    73 
    78     /**
    74     /**
    79      * See CMdaAudioToneUtility::SetVolumeRamp.
    75      * See CMdaAudioToneUtility::SetVolumeRamp.
    80      */
    76      */
    81     virtual void Play() = 0;
    77     virtual void Play() = 0;
    87 
    83 
    88     };
    84     };
    89 
    85 
    90 } //namespace TMS
    86 } //namespace TMS
    91 
    87 
    92 #endif // CPEAUDIOTONEUTILITY_H
    88 #endif // TMSAUDIOTONEUTILITY_H