mmserv/tms/tmscallserver/inc/tmsdtmfobserver.h
changeset 14 80975da52420
child 21 2ed61feeead6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmserv/tms/tmscallserver/inc/tmsdtmfobserver.h	Mon May 03 12:59:52 2010 +0300
@@ -0,0 +1,79 @@
+/*
+ * 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 TMSDTMFOBSERVER_H
+#define TMSDTMFOBSERVER_H
+
+#include <e32base.h>
+
+namespace TMS {
+
+/**
+ * CCP DTMF related events observer class.
+ * This class is used for notifying DTMF specific events.
+ */
+class TMSDTMFObserver
+    {
+public:
+
+    /** DTMF Events */
+    enum TCCPDtmfEvent
+        {
+        /** Unknown */
+        ECCPDtmfUnknown = 0,
+        /** DTMF sending started manually */
+        ECCPDtmfManualStart = 5,
+        /** DTMF sending stopped manually */
+        ECCPDtmfManualStop = 6,
+        /** DTMF sending aborted manually */
+        ECCPDtmfManualAbort = 7,
+        /** Automatic DTMF sending initialized */
+        ECCPDtmfSequenceStart = 9,
+        /** Automatic DTMF sending stopped */
+        ECCPDtmfSequenceStop = 10,
+        /** Automatic DTMF sending aborted */
+        ECCPDtmfSequenceAbort = 11,
+        /** There was stop mark in DTMF string */
+        ECCPDtmfStopInDtmfString,
+        /** DTMF sending completed succesfully */
+        ECCPDtmfStringSendingCompleted
+        };
+
+    //protected:
+    /**
+     * Protects the observer being deleted through the observer interface.
+     */
+    //virtual inline ~TMSDTMFObserver() {};
+
+public:
+
+    /**
+     * HandleDTMFEvents.
+     * @param aEvent Event type
+     * @param aError Error code
+     * @param aTone Character
+     * @return none
+     */
+    virtual void HandleDTMFEvent(const TMSDTMFObserver::TCCPDtmfEvent aEvent,
+            const TInt aError, const TChar aTone) /*const*/ = 0;
+    };
+
+} //namespace TMS
+
+#endif // TMSDTMFOBSERVER_H
+
+// End of File