mmshplugins/mmshaoplugin/inc/muspropertymonitor.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    19 
    19 
    20 #ifndef MUSAOCALLMONITOR_H
    20 #ifndef MUSAOCALLMONITOR_H
    21 #define MUSPROPERTYMONITOR_H
    21 #define MUSPROPERTYMONITOR_H
    22 
    22 
    23 #include "musunittesting.h"
    23 #include "musunittesting.h"
    24 #include "mmuscallstateobserver.h"
       
    25 #include <etelmm.h>
    24 #include <etelmm.h>
    26 #include <e32base.h>
    25 #include <e32base.h>
    27 #include <e32property.h>
    26 #include <e32property.h>
    28 
    27 
    29 class CMusManager;
    28 class CMusManager;
    39     public: // constructors and destructor
    38     public: // constructors and destructor
    40 
    39 
    41         /**
    40         /**
    42          * Two-phased constructor. Leaves on failure.
    41          * Two-phased constructor. Leaves on failure.
    43          */
    42          */
    44         static CMusPropertyMonitor* NewL( MMusCallStateObserver& aCallStateObserver );
    43         static CMusPropertyMonitor* NewL();
    45 
    44 
    46         /**
    45         /**
    47          * Destructor.
    46          * Destructor.
    48          */
    47          */
    49         ~CMusPropertyMonitor();
    48         ~CMusPropertyMonitor();
    50         
       
    51         
       
    52     public: // other public functions
       
    53         
       
    54         /*
       
    55          * Checks from P/S Keys about call state
       
    56          * @return EFalse if call state is ENoCall otherwise ETrue  
       
    57          */
       
    58         TBool IsCallConnected();
       
    59 
       
    60 
    49 
    61     private:
    50     private:
    62 
    51 
    63         /**
    52         /**
    64          * C++ constructor.
    53          * C++ constructor.
    65          */
    54          */
    66         CMusPropertyMonitor( MMusCallStateObserver& aCallStateObserve );
    55         CMusPropertyMonitor();
    67 
    56 
    68         /**
    57         /**
    69          * Symbian 2nd-phase constructor.
    58          * Symbian 2nd-phase constructor.
    70          */
    59          */
    71         void ConstructL();
    60         void ConstructL();
    72 
    61 
       
    62          /**
       
    63          * Starts Mus Manager Client.In turn it will start Mus Manager
       
    64          * Server and Availability Plugin.
       
    65          */
       
    66         void StartMusClientL();
       
    67 
       
    68         /*
       
    69          * Stops Mus Manager Client.
       
    70          */ 
       
    71         void StopMusClient();
       
    72     
    73 
    73 
    74     private:
    74     private:
    75 
    75 
    76         /**
    76         /**
    77          * Handles an active object's request completion event.
    77          * Handles an active object's request completion event.
    96     private:    
    96     private:    
    97 
    97 
    98         /**
    98         /**
    99          * Instance of RProperty.
    99          * Instance of RProperty.
   100          */
   100          */
   101         RProperty iPropertyEvent;    
   101         RProperty iPropertyEvent;        
   102      
   102 
   103         /*
   103         /**
   104          * Reference of callstate observer not owned
   104          * Instance of MusManager Client. Owned.
   105          */
   105          */
   106         MMusCallStateObserver& iCallStateObserver;
   106         CMusManager* iManager;
   107 
   107 
   108         MUS_UNITTEST( UT_CMusPropertyMonitor )
   108         MUS_UNITTEST( UT_CMusPropertyMonitor )
   109 
   109 
   110     };
   110     };
   111 
   111