mmsharing/mmshavailability/inc/musavacalleventmonitor.h
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005-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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSAVACALLEVENTMONITOR_H
       
    21 #define MUSAVACALLEVENTMONITOR_H
       
    22 
       
    23 
       
    24 #include "musunittesting.h"
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 
       
    28 class MMusCallMonitorObserver;
       
    29 
       
    30 /**
       
    31  * this class is listening call monitor P&S keys
       
    32  *
       
    33  * @lib musaoplugin.dll
       
    34  */
       
    35 class CMusAvaCallEventMonitor : public CActive
       
    36     {
       
    37 public:
       
    38 
       
    39     /**
       
    40      * get call count
       
    41      *
       
    42      * @return call count
       
    43      */
       
    44     TInt CallStatusL();
       
    45     
       
    46     /**
       
    47      * get call Direction
       
    48      *
       
    49      * @return call direction
       
    50      */
       
    51     TInt CallDirectionL();
       
    52     
       
    53     /**
       
    54      * get call Privacy
       
    55      *
       
    56      * @return call privacy
       
    57      */
       
    58     TInt CallPrivacyL();
       
    59 
       
    60 
       
    61     void GetTelNumberL( TDes& aTelNumber );
       
    62 
       
    63 	 /**
       
    64      * Start to monitoring call state events
       
    65      *
       
    66      */
       
    67     void StartMonitoringL();
       
    68 
       
    69 
       
    70     /**
       
    71      * Two-phased constructor
       
    72      *
       
    73      * @return New CMusAoPlugin instance
       
    74      */
       
    75     static CMusAvaCallEventMonitor* NewL( MMusCallMonitorObserver& aObserver );
       
    76 
       
    77 
       
    78     /**
       
    79      * C++ destructor.
       
    80      */
       
    81     virtual ~CMusAvaCallEventMonitor();
       
    82 
       
    83     // from etelmm.h::RMobilePhone::KMaxMobileTelNumberSize
       
    84     static const TInt KMusTelNumberMaxLength = 100;
       
    85 
       
    86 protected:
       
    87 
       
    88 // from base class CActive
       
    89 
       
    90     /**
       
    91      * From CActive.
       
    92      * Cancels an outstanding asynchronous request.
       
    93      */
       
    94     virtual void DoCancel();
       
    95 
       
    96     /**
       
    97      * From CActive.
       
    98      * Handles an active object's request completion event.
       
    99      */
       
   100     virtual void RunL();
       
   101 
       
   102     /**
       
   103      * From CActive.
       
   104      * Handles a leave error in RunL method.
       
   105      */
       
   106     virtual TInt RunError( TInt aError );
       
   107 
       
   108 private:
       
   109 
       
   110     /**
       
   111      * C++ constructor.
       
   112      */
       
   113     CMusAvaCallEventMonitor( MMusCallMonitorObserver& aObserver );
       
   114 
       
   115     /**
       
   116      * Symbian second-phase constructor.
       
   117      */
       
   118     void ConstructL();
       
   119 
       
   120 
       
   121 private: // data
       
   122 
       
   123     /**
       
   124      * properties for P&S
       
   125      */
       
   126     RProperty iPropertyEvent;
       
   127 
       
   128     /**
       
   129      * Reference to the observer object
       
   130      */
       
   131     MMusCallMonitorObserver& iObserver;
       
   132     };
       
   133 
       
   134 #endif // MUSAVACALLEVENTMONITOR_H