diff -r 594d59766373 -r 7d48bed6ce0c phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerCallState.h --- a/phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerCallState.h Thu Aug 19 10:28:14 2010 +0300 +++ b/phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerCallState.h Tue Aug 31 15:45:17 2010 +0300 @@ -23,8 +23,6 @@ // INCLUDES #include #include -#include -#include // CONSTANTS @@ -45,65 +43,74 @@ * @lib RemConAsy * @since S60 3.1 */ -NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CBase, public MCallInformationObserver - { - public: // Constructors and destructor - - /** +NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CActive + { + public: // Constructors and destructor + + /** * Two-phased constructor. */ - static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl ); - - /** + static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl ); + + /** * Destructor. */ - ~CPhoneHandlerCallState(); - - private: - - /** + ~CPhoneHandlerCallState(); + + public: // New functions + + public: // Functions from base classes + + protected: // New functions + + protected: // Functions from base classes + + /** + * From CActive. Handles S60 start up state change event. + */ + void RunL(); + + /** + * From CActive. Implements cancellation of an outstanding Subscibe() + * request. + */ + void DoCancel(); + + private: + + /** * C++ default constructor. */ - CPhoneHandlerCallState( CPhoneHandlerControl& aControl ); - - /** + CPhoneHandlerCallState( CPhoneHandlerControl& aControl ); + + /** * By default Symbian 2nd phase constructor is private. */ - void ConstructL(); - - /** - * Signals that there are changes in ongoing calls. - * - * @return void - */ - void CallInformationChangedL(); - - // From MCallInformationObserver - - /** - * Signals that there are changes in ongoing calls. - * - * @return void - */ - void CallInformationChanged(); - - public: // Data + void ConstructL(); + + /** + * Starts to listen change in S60 start up state. + **/ + void Subscribe(); + + public: // Data protected: // Data private: // Data - CCallInformation* iInfo; - - // reference to control + // Publish and Subscribe handle used to listen changes in call states + RProperty iProperty; + + // reference to control CPhoneHandlerControl& iControl; - - public: // Friend classes + + public: // Friend classes protected: // Friend classes private: // Friend classes - }; + }; #endif // CPHONEHANDLERCALLSTATE_H