mmserv/tms/tmscallserver/inc/tmscallcsadpt.h
branchRCL_3
changeset 20 0ac9a5310753
parent 19 095bea5f582e
equal deleted inserted replaced
19:095bea5f582e 20:0ac9a5310753
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <TelephonyAudioRouting.h>
    22 #include <TelephonyAudioRouting.h>
    23 #include <MTelephonyAudioRoutingObserver.h>
    23 #include <MTelephonyAudioRoutingObserver.h>
    24 #include <e32msgqueue.h>
    24 #include <e32msgqueue.h>
    25 #include <etelmm.h>
       
    26 #include <rmmcustomapi.h>
       
    27 #include "tmsclientserver.h"
    25 #include "tmsclientserver.h"
    28 #include "tmscalladpt.h"
    26 #include "tmscalladpt.h"
    29 #include "tmscsdevsoundobserver.h"
    27 #include "tmscsdevsoundobserver.h"
    30 
    28 
    31 namespace TMS {
    29 namespace TMS {
    32 
    30 
    33 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    34 class TMSCSUplink;
    32 class TMSCSUplink;
    35 class TMSCSDownlink;
    33 class TMSCSDownlink;
    36 class TMSTarSettings;
    34 class TMSTarSettings;
    37 class TMSSyncVol;
       
    38 
    35 
    39 /*
    36 /*
    40  * TMSCallCSAdpt class
    37  * TMSCallCSAdpt class
    41  */
    38  */
    42 class TMSCallCSAdpt : public TMSCallAdpt,
    39 class TMSCallCSAdpt : public TMSCallAdpt,
    51     // From TMSStream
    48     // From TMSStream
    52     virtual gint CreateStream(const TMSCallType callType,
    49     virtual gint CreateStream(const TMSCallType callType,
    53             const TMSStreamType strmType, gint& outStrmId);
    50             const TMSStreamType strmType, gint& outStrmId);
    54     virtual gint InitStream(const TMSCallType callType,
    51     virtual gint InitStream(const TMSCallType callType,
    55             const TMSStreamType strmType, const gint strmId,
    52             const TMSStreamType strmType, const gint strmId,
    56             const TMSFormatType frmtType, const gint retryTime,
    53             const TMSFormatType frmtType, const RMessage2& message);
    57             const RMessage2& message);
       
    58     virtual gint StartStream(const TMSCallType callType,
    54     virtual gint StartStream(const TMSCallType callType,
    59             const TMSStreamType strmType, const gint strmId,
    55             const TMSStreamType strmType, const gint strmId);
    60             const gint retrytime);
       
    61     virtual gint PauseStream(const TMSCallType callType,
    56     virtual gint PauseStream(const TMSCallType callType,
    62             const TMSStreamType strmType, const gint strmId);
    57             const TMSStreamType strmType, const gint strmId);
    63     virtual gint StopStream(const TMSCallType callType,
    58     virtual gint StopStream(const TMSCallType callType,
    64             const TMSStreamType strmType, const gint strmId);
    59             const TMSStreamType strmType, const gint strmId);
    65     virtual gint DeinitStream(const TMSCallType callType,
    60     virtual gint DeinitStream(const TMSCallType callType,
   119 
   114 
   120 private:
   115 private:
   121     TMSCallCSAdpt();
   116     TMSCallCSAdpt();
   122     void ConstructL();
   117     void ConstructL();
   123 
   118 
   124     gint InitUplink(const gint retrytime);
   119     gint InitUplink();
   125     gint InitDownlink(const gint retrytime);
   120     gint InitDownlink();
   126     void AvailableOutputsChanged(
   121     void AvailableOutputsChanged(
   127             CTelephonyAudioRouting& aTelephonyAudioRouting);
   122             CTelephonyAudioRouting& aTelephonyAudioRouting);
   128     void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting);
   123     void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting);
   129     void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting,
   124     void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting,
   130             gint status);
   125             gint status);
   142     // Message queues for communication and data transfer back to the client
   137     // Message queues for communication and data transfer back to the client
   143     RMsgQueue<TmsMsgBuf> iMsgQueueUp;
   138     RMsgQueue<TmsMsgBuf> iMsgQueueUp;
   144     RMsgQueue<TmsMsgBuf> iMsgQueueDn;
   139     RMsgQueue<TmsMsgBuf> iMsgQueueDn;
   145     TmsMsgBuf iMsgBuffer;
   140     TmsMsgBuf iMsgBuffer;
   146 
   141 
       
   142     gboolean iUplinkInitialized;
   147     gint iUplinkStreamId;
   143     gint iUplinkStreamId;
       
   144     gboolean iDnlinkInitialized;
   148     gint iDnlinkStreamId;
   145     gint iDnlinkStreamId;
   149     TMSSyncVol* iResetVolNotifier;
       
   150     };
   146     };
   151 
   147 
   152 } //namespace TMS
   148 } //namespace TMS
   153 
   149 
   154 #endif // CALLCSADPT_H
   150 #endif // CALLCSADPT_H
   155 
   151 
       
   152 // End of file