mmserv/tms/tmsserver/inc/cspaudiohandler.h
branchRCL_3
changeset 3 4f62049db6ac
parent 0 71ca22bcf22a
equal deleted inserted replaced
0:71ca22bcf22a 3:4f62049db6ac
     9  * Initial Contributors:
     9  * Initial Contributors:
    10  * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11  *
    11  *
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:  Declarations for class CSPAudioHandler
    14  * Description:  Declarations for class TMSCenRepAudioHandler
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #ifndef CSPAUDIOHANDLER_H
    18 #ifndef CSPAUDIOHANDLER_H
    19 #define CSPAUDIOHANDLER_H
    19 #define CSPAUDIOHANDLER_H
    20 
    20 
    21 #include <e32base.h>
       
    22 #include <sounddevice.h>
    21 #include <sounddevice.h>
    23 
    22 
    24 #include "mcspcenrepobserver.h"
    23 #include "mcspcenrepobserver.h"
    25 #include "tmsserver.h"
    24 #include "tmsserver.h"
    26 
    25 
    27 namespace TMS {
    26 namespace TMS {
    28 class CSPPubSubListener;
    27 
    29 class CSPCenRepListener;
    28 class TMSCSPPubSubListener;
    30 class CSPAudioStreams;
    29 class TMSCenRepListener;
       
    30 class TMSCSPAudioStreams;
    31 
    31 
    32 /**
    32 /**
    33  * Handles call adding from calls not done by the plugin.
    33  * Handles call adding from calls not done by the plugin.
    34  *
    34  *
    35  */
    35  */
    36 class CSPAudioHandler : public CBase,
    36 class TMSCenRepAudioHandler : public MCSPCenRepObserver
    37                         public MCSPCenRepObserver
       
    38     {
    37     {
    39 public:
    38 public:
    40     //Constructors and descructor
    39     //Constructors and descructor
    41 
    40 
    42     /**
    41     /**
    44      *
    43      *
    45      * @param aObserver the observer for getting notification
    44      * @param aObserver the observer for getting notification
    46      * @param aLine the line to monitor
    45      * @param aLine the line to monitor
    47      * @param aLineId line identifier
    46      * @param aLineId line identifier
    48      */
    47      */
    49     static CSPAudioHandler* NewL(TMSServer* aServer);
    48     static TMSCenRepAudioHandler* NewL(TMSServer* aServer);
    50 
    49 
    51     /**
    50     /**
    52      * C++ default destructor
    51      * C++ default destructor
    53      */
    52      */
    54     virtual ~CSPAudioHandler();
    53     virtual ~TMSCenRepAudioHandler();
    55 
    54 
    56     void SetLoudSpeakerVol(TInt vol);
    55     void SetLoudSpeakerVol(TInt vol);
    57     void SetEarPieceVol(TInt vol);
    56     void SetEarPieceVol(TInt vol);
    58 
    57 
    59     // from base class MCSPPubSubObserver
    58     // from base class MCSPPubSubObserver
    70     /**
    69     /**
    71      * Handler for changed event.
    70      * Handler for changed event.
    72      * @param aUid uid of setting
    71      * @param aUid uid of setting
    73      * @param aVal value
    72      * @param aVal value
    74      */
    73      */
    75     virtual void CSPAudioHandler::HandleNotifyCenRepL(const TUid aUid,
    74     virtual void TMSCenRepAudioHandler::HandleNotifyCenRepL(const TUid aUid,
    76             const TUint32 aKey, TInt aVal);
    75             const TUint32 aKey, TInt aVal);
    77 
    76 
    78     // from base class MDevSoundObserver
    77     // from base class MDevSoundObserver
    79 protected:
    78 protected:
    80     //From DevSound
    79     //From DevSound
   107      * C++ default constructor
   106      * C++ default constructor
   108      * @param aObserver the observer for status change (incoming call)
   107      * @param aObserver the observer for status change (incoming call)
   109      * @param aLine the line associated with the call
   108      * @param aLine the line associated with the call
   110      * @param aLineId line identifier
   109      * @param aLineId line identifier
   111      */
   110      */
   112     CSPAudioHandler(TMSServer* aServer);
   111     TMSCenRepAudioHandler(TMSServer* aServer);
   113 
   112 
   114     /**
   113     /**
   115      * Constructs the monitor in the second phase.
   114      * Constructs the monitor in the second phase.
   116      */
   115      */
   117     void ConstructL();
   116     void ConstructL();
   120     // data
   119     // data
   121 
   120 
   122     /**
   121     /**
   123      * Mute listening from Publish&Subscribe.
   122      * Mute listening from Publish&Subscribe.
   124      */
   123      */
   125     CSPPubSubListener* iMuteListener;
   124     TMSCSPPubSubListener* iMuteListener;
   126 
   125 
   127     /**
   126     /**
   128      * Incall loudspeaker listening from Central Repository.
   127      * Incall loudspeaker listening from Central Repository.
   129      */
   128      */
   130     CSPCenRepListener* iIncallLoudspeakerVolumeListener;
   129     TMSCenRepListener* iIncallLoudspeakerVolumeListener;
   131 
   130 
   132     /**
   131     /**
   133      * Incall ear volume listening from Central Repository.
   132      * Incall ear volume listening from Central Repository.
   134      */
   133      */
   135     CSPCenRepListener* iIncallEarVolumeListener;
   134     TMSCenRepListener* iIncallEarVolumeListener;
   136 
   135 
   137     /**
   136     /**
   138      * Audio streams handler.
   137      * Audio streams handler.
   139      */
   138      */
   140     //CSPAudioStreams* iAudioStreams;
   139     //CSPAudioStreams* iAudioStreams;