mmshplugins/mmshaoplugin/inc/muspropertymonitor.h
branchRCL_3
changeset 22 73a1feb507fb
parent 0 f0cf47e981f9
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    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"
    24 #include <etelmm.h>
    25 #include <etelmm.h>
    25 #include <e32base.h>
    26 #include <e32base.h>
    26 #include <e32property.h>
    27 #include <e32property.h>
    27 
    28 
    28 class CMusManager;
    29 class CMusManager;
    38     public: // constructors and destructor
    39     public: // constructors and destructor
    39 
    40 
    40         /**
    41         /**
    41          * Two-phased constructor. Leaves on failure.
    42          * Two-phased constructor. Leaves on failure.
    42          */
    43          */
    43         static CMusPropertyMonitor* NewL();
    44         static CMusPropertyMonitor* NewL( MMusCallStateObserver& aCallStateObserver );
    44 
    45 
    45         /**
    46         /**
    46          * Destructor.
    47          * Destructor.
    47          */
    48          */
    48         ~CMusPropertyMonitor();
    49         ~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 
    49 
    60 
    50     private:
    61     private:
    51 
    62 
    52         /**
    63         /**
    53          * C++ constructor.
    64          * C++ constructor.
    54          */
    65          */
    55         CMusPropertyMonitor();
    66         CMusPropertyMonitor( MMusCallStateObserver& aCallStateObserve );
    56 
    67 
    57         /**
    68         /**
    58          * Symbian 2nd-phase constructor.
    69          * Symbian 2nd-phase constructor.
    59          */
    70          */
    60         void ConstructL();
    71         void ConstructL();
    61 
    72 
    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          * Instance of MusManager Client. Owned.
   104          * Reference of callstate observer not owned
   105          */
   105          */
   106         CMusManager* iManager;
   106         MMusCallStateObserver& iCallStateObserver;
   107 
   107 
   108         MUS_UNITTEST( UT_CMusPropertyMonitor )
   108         MUS_UNITTEST( UT_CMusPropertyMonitor )
   109 
   109 
   110     };
   110     };
   111 
   111