diff -r 04837bf3a628 -r 21be958eb3ce radioengine/utils/stub/inc/cradioaccessoryobserver_stub.h --- a/radioengine/utils/stub/inc/cradioaccessoryobserver_stub.h Tue Oct 12 11:25:14 2010 +0300 +++ b/radioengine/utils/stub/inc/cradioaccessoryobserver_stub.h Fri Oct 15 16:26:27 2010 +0300 @@ -18,11 +18,15 @@ #ifndef CRADIOACCESSORYOBSERVERSTUB_H #define CRADIOACCESSORYOBSERVERSTUB_H +// System includes #include #include #include #include +// User includes +#include "cradiopropertyobserver.h" + class MRadioHeadsetEventObserver; /** @@ -33,6 +37,7 @@ * */ NONSHARABLE_CLASS( CRadioAccessoryObserver ): public CBase + , private MRadioPropertyChangeObserver { public: @@ -67,6 +72,15 @@ */ TBool IsHeadsetConnectedL() const; +protected: + +// from base class MRadioPropertyChangeObserver + + void HandlePropertyChangeL( const TUid& aCategory, const TUint aKey, const TInt aValue ); + void HandlePropertyChangeL( const TUid& aCategory, const TUint aKey, const TDesC8& aValue ); + void HandlePropertyChangeL( const TUid& aCategory, const TUint aKey, const TDesC& aValue ); + void HandlePropertyChangeErrorL( const TUid& aCategory, const TUint aKey, TInt aError ); + private: /** @@ -85,6 +99,9 @@ // RadioStubManagerChunk handle RChunk iRadioStubManagerChunk; + /** handler to Publish & Subscribe interface*/ + CRadioPropertyObserver* iHeadsetObserver; + }; #endif // CRADIOACCESSORYOBSERVERSTUB_H