mmserv/tms/tmsfactory/src/tmsfactoryimpl.cpp
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
child 14 80975da52420
--- a/mmserv/tms/tmsfactory/src/tmsfactoryimpl.cpp	Tue Feb 02 01:08:46 2010 +0200
+++ b/mmserv/tms/tmsfactory/src/tmsfactoryimpl.cpp	Fri Apr 16 15:29:42 2010 +0300
@@ -15,15 +15,6 @@
  *
  */
 
-#include <tms.h>
-#include <tmscall.h>
-#include <tmsformat.h>
-#include <tmseffect.h>
-#include <tmsbuffer.h>
-#include <tmssource.h>
-#include <tmssink.h>
-#include "tmsutility.h"
-#include "tmsproxy.h"
 #include "tmscallimpl.h"
 #include "tmsformatimpl.h"
 #include "tmseffectimpl.h"
@@ -31,6 +22,13 @@
 #include "tmssourceimpl.h"
 #include "tmssinkimpl.h"
 #include "tmsglobalroutingimpl.h"
+#include "tmsringtoneimpl.h"
+#include "tmsdtmfimpl.h"
+#include "tmsinbandtoneimpl.h"
+//#include "tmsrtpsessionimpl.h"
+
+#include "tmsutility.h"
+#include "tmsproxy.h"
 #include "tmsfactoryimpl.h"
 
 using namespace TMS;
@@ -57,9 +55,7 @@
 gint TMSFactoryImpl::DeleteCall(TMSCall*& tmscall)
     {
     gint ret(TMS_RESULT_SUCCESS);
-    // TODO put the delete in the impl
-    delete tmscall; //iTMSCall
-    tmscall = NULL;
+    ret = TMSCallImpl::Delete(tmscall);
     return ret;
     }
 
@@ -200,6 +196,56 @@
     return ret;
     }
 
+gint TMSFactoryImpl::CreateDTMF(TMSStreamType streamtype, TMSDTMF*& dtmf)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSDTMFImpl::Create(streamtype, dtmf);
+    return ret;
+    }
+
+gint TMSFactoryImpl::DeleteDTMF(TMSDTMF*& dtmf)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSDTMFImpl::Delete(dtmf);
+    return ret;
+    }
+
+gint TMSFactoryImpl::CreateRingTonePlayer(TMSRingTone*& rt)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSRingToneImpl::Create(rt);
+    return ret;
+    }
+
+gint TMSFactoryImpl::CreateRingTonePlayer(TMSRingTone*& rt, RWindow& window,
+        gint scrid)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSRingToneImpl::Create(rt, window, scrid);
+    return ret;
+    }
+
+gint TMSFactoryImpl::DeleteRingTonePlayer(TMSRingTone*& rt)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSRingToneImpl::Delete(rt);
+    return ret;
+    }
+
+gint TMSFactoryImpl::CreateInbandTonePlayer(TMSInbandTone*& inbandtone)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSInbandToneImpl::Create(inbandtone);
+    return ret;
+    }
+
+gint TMSFactoryImpl::DeleteInbandTonePlayer(TMSInbandTone*& inbandtone)
+    {
+    gint ret(TMS_RESULT_SUCCESS);
+    ret = TMSInbandToneImpl::Delete(inbandtone);
+    return ret;
+    }
+
 gint TMSFactoryImpl::QueryDevice(const TMSStreamType strmtype)
     {
     gint ret(TMS_RESULT_SUCCESS);