mmserv/tms/tmsimpl/inc/tmsdtmfbodyimpl.h
changeset 12 5a06f39ad45b
child 20 b67dd1fc57c5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmserv/tms/tmsimpl/inc/tmsdtmfbodyimpl.h	Fri Apr 16 15:29:42 2010 +0300
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: Telephony Multimedia Service
+ *
+ */
+
+#ifndef TMS_DTMF_BODY_IMPL_H
+#define TMS_DTMF_BODY_IMPL_H
+
+#include <tms.h>
+#include "tmsdtmfbody.h"
+#include "tmsclientserver.h"
+
+namespace TMS {
+
+// FORWARD DECLARATIONS
+class TMSDTMFObserver;
+class TMSDTMF;
+class TMSProxy;
+
+// TMSDTMFBodyImpl class
+class TMSDTMFBodyImpl : public TMSDTMFBody
+    {
+public:
+    static gint Create(TMSStreamType streamtype, TMSDTMFBody*& bodyimpl);
+    virtual ~TMSDTMFBodyImpl();
+
+    // From TMSDTMFBody begins
+    virtual gint AddObserver(TMSDTMFObserver& obsrvr, gpointer user_data);
+    virtual gint RemoveObserver(TMSDTMFObserver& obsrvr);
+    virtual gint Start();
+    virtual gint Stop();
+    virtual gint SetTone(GString* string);
+    virtual gint ContinueDTMFStringSending(gboolean aContinue);
+
+    void SetParent(TMSDTMF*& parent);
+
+private:
+    TMSDTMFBodyImpl();
+    gint PostConstruct();
+
+private:
+    TMSDTMFObserver* iObserver;
+    gint iClientId;
+    gpointer iUserData;
+    TMSProxy* iProxy;
+    TMSDTMF* iParent;
+    GString* iString;
+    TMSStreamType iStreamType;
+    };
+
+} //namespace TMS
+
+#endif // TMS_DTMF_BODY_IMPL_H
+