24 namespace TMS { |
24 namespace TMS { |
25 |
25 |
26 // TMSCallAdpt class |
26 // TMSCallAdpt class |
27 class TMSCallAdpt |
27 class TMSCallAdpt |
28 { |
28 { |
29 protected: |
|
30 enum TMSStreamState |
|
31 { |
|
32 EIdle = 0, |
|
33 EInitialized, |
|
34 EActivated |
|
35 }; |
|
36 |
|
37 public: |
29 public: |
38 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
30 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
39 virtual ~TMSCallAdpt(); |
31 virtual ~TMSCallAdpt(); |
40 |
32 |
41 // From TMSStream |
33 // From TMSStream |
42 virtual gint CreateStream(const TMSCallType callType, |
34 virtual gint CreateStream(const TMSCallType callType, |
43 const TMSStreamType strmType, gint& outStrmId) = 0; |
35 const TMSStreamType strmType, gint& outStrmId) = 0; |
44 virtual gint InitStream(const TMSCallType callType, |
36 virtual gint InitStream(const TMSCallType callType, |
45 const TMSStreamType strmType, const gint strmId, |
37 const TMSStreamType strmType, const gint strmId, |
46 const TMSFormatType frmtType, const gint retrytime, |
38 const TMSFormatType frmtType, const RMessage2& aMessage) = 0; |
47 const RMessage2& aMessage) = 0; |
|
48 virtual gint StartStream(const TMSCallType callType, |
39 virtual gint StartStream(const TMSCallType callType, |
49 const TMSStreamType strmType, const gint strmId, |
40 const TMSStreamType strmType, const gint strmId) = 0; |
50 const gint retrytime) = 0; |
|
51 virtual gint PauseStream(const TMSCallType callType, |
41 virtual gint PauseStream(const TMSCallType callType, |
52 const TMSStreamType strmType, const gint strmId) = 0; |
42 const TMSStreamType strmType, const gint strmId) = 0; |
53 virtual gint StopStream(const TMSCallType callType, |
43 virtual gint StopStream(const TMSCallType callType, |
54 const TMSStreamType strmType, const gint strmId) = 0; |
44 const TMSStreamType strmType, const gint strmId) = 0; |
55 virtual gint DeinitStream(const TMSCallType callType, |
45 virtual gint DeinitStream(const TMSCallType callType, |
99 virtual gint SetOutput(const TMSAudioOutput output) = 0; |
89 virtual gint SetOutput(const TMSAudioOutput output) = 0; |
100 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
90 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
101 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
91 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
102 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0; |
92 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0; |
103 |
93 |
104 void GetCallType(TMSCallType& callType); |
|
105 gboolean IsUplActivated(); |
|
106 |
|
107 protected: |
94 protected: |
108 TMSCallAdpt(); |
95 TMSCallAdpt(); |
109 virtual gint PostConstruct() = 0; |
96 virtual gint PostConstruct() = 0; |
110 |
97 |
111 protected: |
98 protected: |
112 gint iGlobalVol; |
99 gint iGlobalVol; |
113 gint iGlobalGain; |
100 gint iGlobalGain; |
114 TMSStreamState iUplState; |
|
115 TMSStreamState iDnlState; |
|
116 gint iCallType; |
|
117 }; |
101 }; |
118 |
102 |
119 } //namespace TMS |
103 } //namespace TMS |
120 |
104 |
121 #endif // CALLADPT_H |
105 #endif // CALLADPT_H |
122 |
106 |
|
107 // End of file |