phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerCallState.h
branchRCL_3
changeset 9 71e7b994dff4
parent 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
8:ba42c4bd84dd 9:71e7b994dff4
    21 #define CPHONEHANDLERCALLSTATE_H
    21 #define CPHONEHANDLERCALLSTATE_H
    22 
    22 
    23 // INCLUDES
    23 // INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <e32property.h>
    25 #include <e32property.h>
       
    26 #include <ccallinformation.h>
       
    27 #include <mcallinformationobserver.h>
    26 
    28 
    27 // CONSTANTS
    29 // CONSTANTS
    28 
    30 
    29 // MACROS
    31 // MACROS
    30 
    32 
    41 *  Active object that listens to S60 call states.
    43 *  Active object that listens to S60 call states.
    42 *
    44 *
    43 *  @lib RemConAsy
    45 *  @lib RemConAsy
    44 *  @since S60 3.1
    46 *  @since S60 3.1
    45 */
    47 */
    46 NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CActive
    48 NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CBase, public MCallInformationObserver
    47 	{
    49 	{
    48 	public:	// Constructors and destructor
    50 	public:	// Constructors and destructor
    49 	
    51 	
    50 		/**
    52 		/**
    51         * Two-phased constructor.
    53         * Two-phased constructor.
    55 		/**
    57 		/**
    56         * Destructor.
    58         * Destructor.
    57         */
    59         */
    58 		~CPhoneHandlerCallState();
    60 		~CPhoneHandlerCallState();
    59 	
    61 	
    60 	public: // New functions
       
    61 				
       
    62 	public: // Functions from base classes
       
    63 		
       
    64 	protected:  // New functions
       
    65     
       
    66     protected:  // Functions from base classes
       
    67     
       
    68     	/**
       
    69         * From CActive. Handles S60 start up state change event.
       
    70         */
       
    71     	void RunL();
       
    72 	
       
    73 		/**
       
    74         * From CActive. Implements cancellation of an outstanding Subscibe() 
       
    75         * request.
       
    76         */
       
    77 		void DoCancel();
       
    78 	
       
    79 	private:
    62 	private:
    80 		
    63 		
    81 		/**
    64 		/**
    82         * C++ default constructor.
    65         * C++ default constructor.
    83         */
    66         */
    85 	
    68 	
    86 		/**
    69 		/**
    87         * By default Symbian 2nd phase constructor is private.
    70         * By default Symbian 2nd phase constructor is private.
    88         */
    71         */
    89 		void ConstructL();
    72 		void ConstructL();
       
    73 
       
    74 		/**
       
    75 		* Signals that there are changes in ongoing calls.
       
    76 		*    
       
    77 		* @return void
       
    78 		*/
       
    79 		void CallInformationChangedL();
       
    80      	
       
    81 		// From MCallInformationObserver
    90 		
    82 		
    91 		/**
    83 		/**
    92       	* Starts to listen change in S60 start up state.
    84 		* Signals that there are changes in ongoing calls.
    93      	**/
    85 		*    
    94      	void Subscribe();
    86 		* @return void
       
    87 		*/
       
    88 		void CallInformationChanged();
    95 	
    89 	
    96 	public:     // Data
    90 	public:     // Data
    97     
    91     
    98     protected:  // Data
    92     protected:  // Data
    99     
    93     
   100     private:    // Data
    94     private:    // Data
   101     
    95     
   102     	// Publish and Subscribe handle used to listen changes in call states 
    96     	CCallInformation* iInfo;
   103     	RProperty iProperty;
    97 
   104 						
       
   105 		// reference to control
    98 		// reference to control
   106         CPhoneHandlerControl& iControl;
    99         CPhoneHandlerControl& iControl;
   107 		
   100 		
   108 	public:     // Friend classes
   101 	public:     // Friend classes
   109 
   102