mmserv/tms/tmscallserver/inc/tmscallcsadpt.h
changeset 20 b67dd1fc57c5
parent 14 80975da52420
child 21 2ed61feeead6
equal deleted inserted replaced
19:4a629bc82c5e 20:b67dd1fc57c5
    53     virtual ~TMSCallCSAdpt();
    53     virtual ~TMSCallCSAdpt();
    54     virtual gint PostConstruct();
    54     virtual gint PostConstruct();
    55 
    55 
    56     virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType,
    56     virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType,
    57             gint& outStrmId);
    57             gint& outStrmId);
    58     virtual gint InitStreamL(TMSCallType callType, TMSStreamType strmType,
    58     virtual gint InitStream(TMSCallType callType, TMSStreamType strmType,
    59             gint strmId, TMSFormatType frmtType, const RMessage2& aMessage);
    59             gint strmId, TMSFormatType frmtType, const RMessage2& message);
    60     virtual gint StartStream(TMSCallType callType, TMSStreamType strmType,
    60     virtual gint StartStream(TMSCallType callType, TMSStreamType strmType,
    61             gint strmId);
    61             gint strmId);
    62     virtual gint PauseStream(TMSCallType callType, TMSStreamType strmType,
    62     virtual gint PauseStream(TMSCallType callType, TMSStreamType strmType,
    63             gint strmId);
    63             gint strmId);
    64     virtual gint StopStream(TMSCallType callType, TMSStreamType strmType,
    64     virtual gint StopStream(TMSCallType callType, TMSStreamType strmType,
    72     virtual gint DataXferBufferFilled(TMSCallType callType,
    72     virtual gint DataXferBufferFilled(TMSCallType callType,
    73             TMSStreamType strmType, gint strmId, guint datasize);
    73             TMSStreamType strmType, gint strmId, guint datasize);
    74     virtual gint GetDataXferBufferHndl(const TMSCallType callType,
    74     virtual gint GetDataXferBufferHndl(const TMSCallType callType,
    75             const TMSStreamType strmType, const gint strmId,
    75             const TMSStreamType strmType, const gint strmId,
    76             const guint32 key, RChunk& chunk);
    76             const guint32 key, RChunk& chunk);
       
    77 
       
    78     // From TMS effects
    77     virtual gint GetMaxVolume(guint& volume);
    79     virtual gint GetMaxVolume(guint& volume);
    78     virtual gint SetVolume(const guint volume);
    80     virtual gint SetVolume(const guint volume);
    79     virtual gint GetVolume(guint& volume);
    81     virtual gint GetVolume(guint& volume);
    80     virtual gint GetMaxGain(guint& gain);
    82     virtual gint GetMaxGain(guint& gain);
    81     virtual gint SetGain(const guint gain);
    83     virtual gint SetGain(const guint gain);
    85     virtual gint GetGlobalVolume(guint& volume);
    87     virtual gint GetGlobalVolume(guint& volume);
    86     virtual gint GetGlobalMaxGain(guint& gain);
    88     virtual gint GetGlobalMaxGain(guint& gain);
    87     virtual gint SetGlobalGain(const guint gain);
    89     virtual gint SetGlobalGain(const guint gain);
    88     virtual gint GetGlobalGain(guint& gain);
    90     virtual gint GetGlobalGain(guint& gain);
    89 
    91 
       
    92     // From TMS formats
    90     virtual gint GetCodecMode(const TMSFormatType fmttype,
    93     virtual gint GetCodecMode(const TMSFormatType fmttype,
    91             const TMSStreamType strmtype, gint& mode);
    94             const TMSStreamType strmtype, gint& mode);
    92     virtual gint SetCodecMode(const TMSFormatType fmttype,
    95     virtual gint SetCodecMode(const TMSFormatType fmttype,
    93             const TMSStreamType strmtype, const gint mode);
    96             const TMSStreamType strmtype, const gint mode);
    94     virtual gint GetSupportedBitRatesCount(guint& count);
    97     virtual gint GetSupportedBitRatesCount(guint& count);
   100     virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng);
   103     virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng);
   101     virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng);
   104     virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng);
   102     virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc);
   105     virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc);
   103     virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc);
   106     virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc);
   104 
   107 
       
   108     // From TMS audio routing
   105     virtual gint SetOutput(TMSAudioOutput output);
   109     virtual gint SetOutput(TMSAudioOutput output);
   106     virtual gint GetOutput(TMSAudioOutput& output);
   110     virtual gint GetOutput(TMSAudioOutput& output);
   107     virtual gint GetPreviousOutput(TMSAudioOutput& output);
   111     virtual gint GetPreviousOutput(TMSAudioOutput& output);
   108     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer);
   112     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer);
       
   113 	
       
   114 	// From TMSDTMF
   109     virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring);
   115     virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring);
   110     virtual gint StopDTMF(TMSStreamType streamtype);
   116     virtual gint StopDTMF(TMSStreamType streamtype);
   111     virtual gint ContinueDTMF(TBool continuesending);
   117     virtual gint ContinueDTMF(TBool continuesending);
   112 
       
   113     void NotifyClient(const gint strmId, const gint aCommand,
       
   114             const gint aStatus = KErrNone, const gint64 aInt64 = TInt64(0));
       
   115 
   118 
   116     //From TMSCSPDevSoundObserver
   119     //From TMSCSPDevSoundObserver
   117     void DownlinkInitCompleted(TInt status);
   120     void DownlinkInitCompleted(TInt status);
   118     void UplinkInitCompleted(TInt status);
   121     void UplinkInitCompleted(TInt status);
   119     void UplinkActivatedSuccessfully();
   122     void UplinkActivatedSuccessfully();
   127 
   130 
   128     //From TMSDTMFObserver
   131     //From TMSDTMFObserver
   129      void HandleDTMFEvent(const TMSDTMFObserver::TCCPDtmfEvent aEvent,
   132      void HandleDTMFEvent(const TMSDTMFObserver::TCCPDtmfEvent aEvent,
   130              const TInt aError, const TChar aTone);
   133              const TInt aError, const TChar aTone);
   131 
   134 
   132 protected:
   135 private:
   133     void AvailableOutputsChanged(
   136     void AvailableOutputsChanged(
   134             CTelephonyAudioRouting& aTelephonyAudioRouting);
   137             CTelephonyAudioRouting& aTelephonyAudioRouting);
   135     void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting);
   138     void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting);
   136     void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting,
   139     void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting,
   137             gint aError);
   140             gint aError);
   138     void GetSupportedBitRatesL(CBufFlat*& brbuffer);
   141     void GetSupportedBitRatesL(CBufFlat*& brbuffer);
       
   142     void NotifyClient(const gint strmId, const gint command,
       
   143             const gint status = KErrNone, const gint64 int64 = TInt64(0));
   139 
   144 
   140 private:
   145 private:
   141     gint iNextStreamId;
   146     gint iNextStreamId;
   142 
   147 
   143     TMSCSUplink* iCSUplink;
   148     TMSCSUplink* iCSUplink;