mmserv/tms/tmscallserver/inc/cspdevsound.h
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
    20 
    20 
    21 #include <sounddevice.h>
    21 #include <sounddevice.h>
    22 
    22 
    23 namespace TMS {
    23 namespace TMS {
    24 
    24 
    25 class MCSPDevSoundObserver;
    25 class TMSCSPDevSoundObserver;
    26 
    26 
    27 /**
    27 /**
    28  *  Wrapper for CMMFDevSound
    28  *  Wrapper for CMMFDevSound
    29  *
    29  *
    30  */
    30  */
    31 NONSHARABLE_CLASS(CSPDevSound) : public CBase,
    31 NONSHARABLE_CLASS(TMSCSPDevSound) : public CBase,
    32                                  public MDevSoundObserver
    32                                     public MDevSoundObserver
    33     {
    33     {
    34 public:
    34 public:
    35 
    35 
    36     /**
    36     /**
    37      * Destructor.
    37      * Destructor.
    38      */
    38      */
    39     virtual ~CSPDevSound();
    39     virtual ~TMSCSPDevSound();
    40 
    40 
    41     /**
    41     /**
    42      * Activates the dev sound stream. MCSPDevSoundObserver methods are called
    42      * Activates the dev sound stream. TMSCSPDevSoundObserver methods are called
    43      * when activation goes ok or fails. If the stream is already active or
    43      * when activation goes ok or fails. If the stream is already active or
    44      * activating then nothing is done.
    44      * activating then nothing is done.
    45      */
    45      */
    46     virtual void Activate();
    46     virtual void Activate();
    47 
    47 
   116      */
   116      */
   117     void DeviceMessage(TUid aMessageType, const TDesC8& aMsg);
   117     void DeviceMessage(TUid aMessageType, const TDesC8& aMsg);
   118 
   118 
   119 protected:
   119 protected:
   120 
   120 
   121     CSPDevSound(MCSPDevSoundObserver& aObserver);
   121     TMSCSPDevSound(TMSCSPDevSoundObserver& aObserver);
   122 
   122 
   123     void ConstructL(TMMFState aMode, gint aAudioPreference,
   123     void ConstructL(TMMFState aMode, gint aAudioPreference,
   124             gint aAudioPriority);
   124             gint aAudioPriority);
   125 
   125 
   126 private:
   126 private:
   153 
   153 
   154     /**
   154     /**
   155      * Observer for successfull activation.
   155      * Observer for successfull activation.
   156      * Not own.
   156      * Not own.
   157      */
   157      */
   158     MCSPDevSoundObserver& iObserver;
   158     TMSCSPDevSoundObserver& iObserver;
   159 
   159 
   160     };
   160     };
   161 
   161 
   162 } //namespace TMS
   162 } //namespace TMS
   163 
   163