mmshplugins/mmshaoplugin/inc/muscallmonitorbase.h
branchRCL_3
changeset 22 73a1feb507fb
parent 0 f0cf47e981f9
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    21 #define MUSAOCALLMONITORBASE_H
    21 #define MUSAOCALLMONITORBASE_H
    22 
    22 
    23 #include "musunittesting.h"
    23 #include "musunittesting.h"
    24 #include "mussesseioninformationapi.h"
    24 #include "mussesseioninformationapi.h"
    25 #include "mmustsypropertyobserver.h"
    25 #include "mmustsypropertyobserver.h"
       
    26 #include "mmuscallstateobserver.h"
    26 #include <etelmm.h>
    27 #include <etelmm.h>
    27 #include <e32base.h>
    28 #include <e32base.h>
    28 
    29 
    29 /**
    30 /**
    30  * Monitor, which observes status of current cs call  
    31  * Monitor, which observes status of current cs call  
    55 
    56 
    56         /**
    57         /**
    57          * CActive Implentation
    58          * CActive Implentation
    58          */
    59          */
    59         TInt RunError( TInt aError ); 
    60         TInt RunError( TInt aError ); 
       
    61         
       
    62         /**
       
    63          * Checks if it the data is ready for the CS Call
       
    64          */
       
    65         TBool IsDataReadyL();
    60 
    66 
    61         
    67         
    62     protected:
    68     protected:
    63 
    69 
    64         /**
    70         /**
    65          * C++ constructor.
    71          * C++ constructor.
    66          */
    72          */
    67         CMusCallMonitorBase( const RMobileCall& aCall, MMusTsyPropertyObserver& aObserver );
    73         CMusCallMonitorBase( const RMobileCall& aCall,   
       
    74                                 MMusTsyPropertyObserver& aObserver, 
       
    75                                 MMusCallStateObserver& aCallStateObserver );
    68         
    76         
    69         /**
    77         /**
    70          * Notify observer that our state changed
    78          * Notify observer that our state changed
    71          */
    79          */
    72         virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal );
    80         virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal );
    73         
    81         
    74         /**
       
    75          * Inspect the dialled number and set the PS key controlling whether
       
    76          * to add Privacy-header accordingly.
       
    77          */        
       
    78         void SetClirSetting( const TDesC& aDialledNumber ) const;
       
    79 
       
    80          /**
       
    81          * Should set the privacy ps key to on off based on incoming cs call privacy settings.
       
    82          * aCallInfo : Callinfo package read from current cs call.     
       
    83          */
       
    84         void SetTerminatingPrivacy( const RMobileCall& aCall ) const;
       
    85         
       
    86         /**
       
    87         * Removes privacy prefix away from phone number
       
    88         * @return returns dialed number witout prefix.  
       
    89         */
       
    90         HBufC* RemovePrefix( const TDesC& aOriginator ) const;
       
    91         
    82         
    92     protected:            
    83     protected:            
    93        
    84        
    94         /**
    85         /**
    95          * RMobileCall handle.
    86          * RMobileCall handle.
   110         
   101         
   111         /**
   102         /**
   112          *  Observer to get nofitied when RCall status changed 
   103          *  Observer to get nofitied when RCall status changed 
   113          */
   104          */
   114         MMusTsyPropertyObserver& iTsyObserver;
   105         MMusTsyPropertyObserver& iTsyObserver;
       
   106         
       
   107         
       
   108         /*
       
   109          * Reference of callstate observer not owned
       
   110          */
       
   111         MMusCallStateObserver& iCallStateObserver;
       
   112 
   115 
   113 
   116         MUS_UNITTEST( UT_CMusCallMonitor )
   114         MUS_UNITTEST( UT_CMusCallMonitor )
   117         MUS_UNITTEST( UT_CMusCallEventMonitor ) 
   115  		MUS_UNITTEST( UT_CMusCallEventMonitor )
   118         MUS_UNITTEST( UT_CMusCallStatusMonitor )
   116  		MUS_UNITTEST( UT_CMusCallStatusMonitor )
   119         MUS_UNITTEST( UT_CMusCallMonitorBase )
       
   120     };
   117     };
   121 
   118 
   122 #endif // MUSAOCALLMONITORBASE_H
   119 #endif // MUSAOCALLMONITORBASE_H