29 public: |
29 public: |
30 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
30 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
31 virtual ~TMSCallAdpt(); |
31 virtual ~TMSCallAdpt(); |
32 |
32 |
33 // From TMSStream |
33 // From TMSStream |
34 virtual gint CreateStream(TMSCallType callType, |
34 virtual gint CreateStream(const TMSCallType callType, |
35 TMSStreamType strmType, gint& outStrmId) = 0; |
35 const TMSStreamType strmType, gint& outStrmId) = 0; |
36 virtual gint InitStream(TMSCallType callType, TMSStreamType strmType, |
36 virtual gint InitStream(const TMSCallType callType, |
37 gint strmId, TMSFormatType frmtType, const RMessage2& aMessage) = 0; |
37 const TMSStreamType strmType, const gint strmId, |
38 virtual gint StartStream(TMSCallType callType, |
38 const TMSFormatType frmtType, const gint retrytime, |
39 TMSStreamType strmType, gint strmId) = 0; |
39 const RMessage2& aMessage) = 0; |
40 virtual gint PauseStream(TMSCallType callType, |
40 virtual gint StartStream(const TMSCallType callType, |
41 TMSStreamType strmType, gint strmId) = 0; |
41 const TMSStreamType strmType, const gint strmId, |
42 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
42 const gint retrytime) = 0; |
43 gint strmId) = 0; |
43 virtual gint PauseStream(const TMSCallType callType, |
44 virtual gint DeinitStream(TMSCallType callType, |
44 const TMSStreamType strmType, const gint strmId) = 0; |
45 TMSStreamType strmType, gint strmId) = 0; |
45 virtual gint StopStream(const TMSCallType callType, |
46 virtual gint DeleteStream(TMSCallType callType, |
46 const TMSStreamType strmType, const gint strmId) = 0; |
47 TMSStreamType strmType, gint strmId) = 0; |
47 virtual gint DeinitStream(const TMSCallType callType, |
48 virtual gint DataXferBufferEmptied(TMSCallType callType, |
48 const TMSStreamType strmType, const gint strmId) = 0; |
49 TMSStreamType strmType, gint strmId) = 0; |
49 virtual gint DeleteStream(const TMSCallType callType, |
50 virtual gint DataXferBufferFilled(TMSCallType callType, |
50 const TMSStreamType strmType, const gint strmId) = 0; |
51 TMSStreamType strmType, gint strmId, guint datasize) = 0; |
51 virtual gint DataXferBufferEmptied(const TMSCallType callType, |
|
52 const TMSStreamType strmType, const gint strmId) = 0; |
|
53 virtual gint DataXferBufferFilled(const TMSCallType callType, |
|
54 const TMSStreamType strmType, const gint strmId, |
|
55 const guint datasize) = 0; |
52 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
56 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
53 const TMSStreamType strmType, const gint strmId, |
57 const TMSStreamType strmType, const gint strmId, |
54 const guint32 key, RChunk& chunk) = 0; |
58 const guint32 key, RChunk& chunk) = 0; |
55 |
59 |
56 // From TMS effects |
60 // From TMS effects |
82 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
86 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
83 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
87 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
84 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
88 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
85 |
89 |
86 // From TMS routing |
90 // From TMS routing |
87 virtual gint SetOutput(TMSAudioOutput output) = 0; |
91 virtual gint SetOutput(const TMSAudioOutput output) = 0; |
88 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
92 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
89 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
93 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
90 virtual gint GetAvailableOutputsL(gint& count, |
94 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0; |
91 CBufFlat*& outputsbuffer) = 0; |
|
92 |
95 |
93 // From TMSDTMF |
96 // From TMSDTMF |
94 virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring) = 0; |
97 virtual gint StartDTMF(const TMSStreamType streamtype, TDes& dtmfstr) = 0; |
95 virtual gint StopDTMF(TMSStreamType streamtype) = 0; |
98 virtual gint StopDTMF(const TMSStreamType streamtype) = 0; |
96 virtual gint ContinueDTMF(TBool continuesending) = 0; |
99 virtual gint ContinueDTMF(const gboolean sending) = 0; |
97 |
100 |
98 protected: |
101 protected: |
99 TMSCallAdpt(); |
102 TMSCallAdpt(); |
100 virtual gint PostConstruct(); |
103 virtual gint PostConstruct() = 0; |
101 |
104 |
102 protected: |
105 protected: |
103 gint iGlobalVol; |
106 gint iGlobalVol; |
104 gint iGlobalGain; |
107 gint iGlobalGain; |
105 }; |
108 }; |