20 #include "tmseffectimpl.h" |
20 #include "tmseffectimpl.h" |
21 #include "tmsbufferimpl.h" |
21 #include "tmsbufferimpl.h" |
22 #include "tmssourceimpl.h" |
22 #include "tmssourceimpl.h" |
23 #include "tmssinkimpl.h" |
23 #include "tmssinkimpl.h" |
24 #include "tmsglobalroutingimpl.h" |
24 #include "tmsglobalroutingimpl.h" |
25 #include "tmsringtoneimpl.h" |
25 |
26 #include "tmsdtmfimpl.h" |
|
27 #include "tmsinbandtoneimpl.h" |
|
28 #include "tmsutility.h" |
26 #include "tmsutility.h" |
29 #include "tmsproxy.h" |
27 #include "tmsproxy.h" |
30 #include "tmsfactoryimpl.h" |
28 #include "tmsfactoryimpl.h" |
31 |
29 |
32 using namespace TMS; |
30 using namespace TMS; |
190 gint ret(TMS_RESULT_SUCCESS); |
188 gint ret(TMS_RESULT_SUCCESS); |
191 ret = TMSGlobalRoutingImpl::Delete(globrouting); |
189 ret = TMSGlobalRoutingImpl::Delete(globrouting); |
192 return ret; |
190 return ret; |
193 } |
191 } |
194 |
192 |
195 gint TMSFactoryImpl::CreateDTMF(TMSStreamType streamtype, TMSDTMF*& dtmf) |
|
196 { |
|
197 gint ret(TMS_RESULT_SUCCESS); |
|
198 ret = TMSDTMFImpl::Create(streamtype, dtmf); |
|
199 return ret; |
|
200 } |
|
201 |
|
202 gint TMSFactoryImpl::DeleteDTMF(TMSDTMF*& dtmf) |
|
203 { |
|
204 gint ret(TMS_RESULT_SUCCESS); |
|
205 ret = TMSDTMFImpl::Delete(dtmf); |
|
206 return ret; |
|
207 } |
|
208 |
|
209 gint TMSFactoryImpl::CreateRingTonePlayer(TMSRingTone*& rt) |
|
210 { |
|
211 gint ret(TMS_RESULT_SUCCESS); |
|
212 ret = TMSRingToneImpl::Create(rt); |
|
213 return ret; |
|
214 } |
|
215 |
|
216 gint TMSFactoryImpl::CreateRingTonePlayer(TMSRingTone*& rt, RWindow& window, |
|
217 gint scrid) |
|
218 { |
|
219 gint ret(TMS_RESULT_SUCCESS); |
|
220 ret = TMSRingToneImpl::Create(rt, window, scrid); |
|
221 return ret; |
|
222 } |
|
223 |
|
224 gint TMSFactoryImpl::DeleteRingTonePlayer(TMSRingTone*& rt) |
|
225 { |
|
226 gint ret(TMS_RESULT_SUCCESS); |
|
227 ret = TMSRingToneImpl::Delete(rt); |
|
228 return ret; |
|
229 } |
|
230 |
|
231 gint TMSFactoryImpl::CreateInbandTonePlayer(TMSInbandTone*& inbandtone) |
|
232 { |
|
233 gint ret(TMS_RESULT_SUCCESS); |
|
234 ret = TMSInbandToneImpl::Create(inbandtone); |
|
235 return ret; |
|
236 } |
|
237 |
|
238 gint TMSFactoryImpl::DeleteInbandTonePlayer(TMSInbandTone*& inbandtone) |
|
239 { |
|
240 gint ret(TMS_RESULT_SUCCESS); |
|
241 ret = TMSInbandToneImpl::Delete(inbandtone); |
|
242 return ret; |
|
243 } |
|
244 |
|
245 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype) |
193 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype) |
246 { |
194 { |
247 gint ret(TMS_RESULT_SUCCESS); |
195 gint ret(TMS_RESULT_SUCCESS); |
248 TMSProxy* session = new TMSProxy(); |
196 TMSProxy* session = new TMSProxy(); |
249 if (session) |
197 if (session) |