mmserv/tms/tmscallserver/inc/cspeteldtmfmonitor.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 CSPETELDTMFMONITOR_H
       
    19 #define CSPETELDTMFMONITOR_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <etelmm.h>
       
    23 #include <rmmcustomapi.h>
       
    24 
       
    25 namespace TMS {
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TMSCSPCall;
       
    29 class TMSDTMFProvider;
       
    30 
       
    31 /**
       
    32  * TMSEtelDtmfMonitor class
       
    33  *
       
    34  * Monitors ETel for DTMF events.
       
    35  *
       
    36  * This monitor is applied only for listening incoming calls, i.e.
       
    37  * line capabilites are not monitored.
       
    38  *
       
    39  * @lib csplugin.dll
       
    40  *
       
    41  */
       
    42 class TMSEtelDtmfMonitor : public CActive
       
    43     {
       
    44 public:
       
    45     /**
       
    46      * Two-phased constructing for the monitor.
       
    47      *
       
    48      * @param aObserver the observer for getting notification
       
    49      * @param aMmCustom Custom API handle
       
    50      */
       
    51     static TMSEtelDtmfMonitor* NewL(TMSDTMFProvider& aObserver,
       
    52             RMmCustomAPI& aMmCustom);
       
    53 
       
    54     /**
       
    55      * C++ default destructor
       
    56      */
       
    57     virtual ~TMSEtelDtmfMonitor();
       
    58 
       
    59     /**
       
    60      * Start monitoring call events
       
    61      */
       
    62     void StartMonitoring();
       
    63 
       
    64 protected: // From CActive
       
    65     /**
       
    66      * From CActive
       
    67      * RunL
       
    68      */
       
    69     void RunL();
       
    70 
       
    71     /**
       
    72      * From CActive
       
    73      * Cancels the monitor
       
    74      */
       
    75     void DoCancel();
       
    76 
       
    77 private:
       
    78     /**
       
    79      * C++ default constructor
       
    80      * @param aObserver the observer for status change (incoming call)
       
    81      * @param aMmCustom Custom API handle
       
    82      */
       
    83     TMSEtelDtmfMonitor(TMSDTMFProvider& aObserver, RMmCustomAPI& aMmCustom);
       
    84 
       
    85 private:
       
    86     /**
       
    87      * Forwards events.
       
    88      */
       
    89     TMSDTMFProvider& iObserver;
       
    90 
       
    91     /**
       
    92      * Event data. Updated when event occurs.
       
    93      */
       
    94     RMmCustomAPI::TDtmfInfo iEventData;
       
    95 
       
    96     /**
       
    97      * Custom API reference.
       
    98      */
       
    99     RMmCustomAPI& iMmCustom;
       
   100 
       
   101     };
       
   102 } //namespace TMS
       
   103 
       
   104 #endif // CSPETELDTMFMONITOR_H
       
   105