mmserv/tms/tmsfactory/src/tmsfactoryimpl.cpp
branchRCL_3
changeset 45 095bea5f582e
parent 18 2eb3b066cc7d
child 46 0ac9a5310753
equal deleted inserted replaced
41:a36789189b53 45:095bea5f582e
    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 
    25 #include "tmsringtoneimpl.h"
       
    26 #include "tmsdtmfimpl.h"
       
    27 #include "tmsinbandtoneimpl.h"
    26 #include "tmsutility.h"
    28 #include "tmsutility.h"
    27 #include "tmsproxy.h"
    29 #include "tmsproxy.h"
    28 #include "tmsfactoryimpl.h"
    30 #include "tmsfactoryimpl.h"
    29 
    31 
    30 using namespace TMS;
    32 using namespace TMS;
   188     gint ret(TMS_RESULT_SUCCESS);
   190     gint ret(TMS_RESULT_SUCCESS);
   189     ret = TMSGlobalRoutingImpl::Delete(globrouting);
   191     ret = TMSGlobalRoutingImpl::Delete(globrouting);
   190     return ret;
   192     return ret;
   191     }
   193     }
   192 
   194 
       
   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 
   193 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype)
   245 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype)
   194     {
   246     {
   195     gint ret(TMS_RESULT_SUCCESS);
   247     gint ret(TMS_RESULT_SUCCESS);
   196     TMSProxy* session = new TMSProxy();
   248     TMSProxy* session = new TMSProxy();
   197     if (session)
   249     if (session)