mmserv/tms/tmscallserver/inc/mccpdtmfobserver.h
changeset 14 80975da52420
parent 12 5a06f39ad45b
child 16 43d09473c595
child 19 4a629bc82c5e
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MCCPDTMFOBSERVER_H
       
    19 #define MCCPDTMFOBSERVER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 namespace TMS {
       
    24 
       
    25 /**
       
    26  * CCP DTMF related events observer class.
       
    27  * This class is used for notifying DTMF specific events.
       
    28  */
       
    29 class TMSCCPDTMFObserver
       
    30     {
       
    31 public:
       
    32 
       
    33     /** DTMF Events */
       
    34     enum TCCPDtmfEvent
       
    35         {
       
    36         /** Unknown */
       
    37         ECCPDtmfUnknown = 0,
       
    38         /** DTMF sending started manually */
       
    39         ECCPDtmfManualStart = 5,
       
    40         /** DTMF sending stopped manually */
       
    41         ECCPDtmfManualStop = 6,
       
    42         /** DTMF sending aborted manually */
       
    43         ECCPDtmfManualAbort = 7,
       
    44         /** Automatic DTMF sending initialized */
       
    45         ECCPDtmfSequenceStart = 9,
       
    46         /** Automatic DTMF sending stopped */
       
    47         ECCPDtmfSequenceStop = 10,
       
    48         /** Automatic DTMF sending aborted */
       
    49         ECCPDtmfSequenceAbort = 11,
       
    50         /** There was stop mark in DTMF string */
       
    51         ECCPDtmfStopInDtmfString,
       
    52         /** DTMF sending completed succesfully */
       
    53         ECCPDtmfStringSendingCompleted
       
    54         };
       
    55 
       
    56     //protected:
       
    57     /**
       
    58      * Protects the observer being deleted through the observer interface.
       
    59      */
       
    60     //virtual inline ~TMSCCPDTMFObserver() {};
       
    61 
       
    62 public:
       
    63 
       
    64     /**
       
    65      * HandleDTMFEvents.
       
    66      * @param aEvent Event type
       
    67      * @param aError Error code
       
    68      * @param aTone Character
       
    69      * @return none
       
    70      */
       
    71     virtual void HandleDTMFEvent(const TMSCCPDTMFObserver::TCCPDtmfEvent aEvent,
       
    72             const TInt aError, const TChar aTone) /*const*/ = 0;
       
    73     };
       
    74 
       
    75 } //namespace TMS
       
    76 
       
    77 #endif // MCCPDTMFOBSERVER_H
       
    78 
       
    79 // End of File