convergedcallengine/csplugin/inc/cspeteldtmfstopmonitor.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Declarations for class CSPEtelDtmfStopMonitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPETELDTMFSTOPMONITOR_H
       
    20 #define CSPETELDTMFSTOPMONITOR_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <etelmm.h>
       
    24 
       
    25 
       
    26 class CSPCall;
       
    27 class CSPDTMFProvider;
       
    28 
       
    29 
       
    30 /**
       
    31 * Monitors single ETel RMobilePhone for DTMF events.
       
    32 *
       
    33 *  This monitor is applied only for listening incoming calls, i.e.
       
    34 *  line capabilites are not monitored.
       
    35 *
       
    36 *  @lib csplugin.dll
       
    37 *  @since S60 v3.2
       
    38 */
       
    39 class CSPEtelDtmfStopMonitor: public CActive
       
    40     {
       
    41     
       
    42     public: //Constructors and descructor
       
    43     
       
    44     
       
    45         /**
       
    46         * Two-phased constructing for the monitor.
       
    47         *
       
    48         * @param aObserver the observer for getting notification
       
    49         * @param aPhone the line to monitor
       
    50         */
       
    51         static CSPEtelDtmfStopMonitor* NewL( 
       
    52                 CSPDTMFProvider& aObserver,
       
    53                 RMobilePhone& aPhone );
       
    54 
       
    55         /**
       
    56         * C++ default destructor
       
    57         */
       
    58         virtual ~CSPEtelDtmfStopMonitor( );
       
    59 
       
    60         /**
       
    61         * Start monitoring call events
       
    62         * @since S60 3.2
       
    63         */
       
    64         void StartMonitoring();
       
    65     
       
    66     protected: // From CActive
       
    67         /**
       
    68         * From CActive
       
    69         * RunL
       
    70         * @since S60 3.2
       
    71         */
       
    72         void RunL();
       
    73         
       
    74         /**
       
    75         * From CActive
       
    76         * Cancels the monitor
       
    77         * @since S60 3.2
       
    78         */
       
    79         void DoCancel();
       
    80 
       
    81     private:
       
    82         /**
       
    83         * C++ default constructor
       
    84         * @param aObserver the observer for status change (incoming call)
       
    85         * @param aPhone the line associated with the call
       
    86         */
       
    87         CSPEtelDtmfStopMonitor( CSPDTMFProvider& aObserver,
       
    88                             RMobilePhone& aPhone );
       
    89                                           
       
    90         
       
    91     private: // data
       
    92         /**
       
    93         * Forwards events.
       
    94         */
       
    95         CSPDTMFProvider& iObserver;
       
    96        
       
    97         /**
       
    98         * Phone that is being observed for incoming call.
       
    99         */
       
   100         RMobilePhone& iPhone;
       
   101         
       
   102         /**
       
   103         * Event received.
       
   104         */ 
       
   105         RMobilePhone::TMobilePhoneDTMFEvent iEventData;
       
   106         
       
   107     };
       
   108     
       
   109 #endif // CSPETELDTMFSTOPMONITOR_H