radioengine/utils/stub/inc/cradioaccessoryobserver_stub.h
changeset 57 21be958eb3ce
parent 34 bc10a61bd7d3
--- 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 <AccessoryServer.h>
 #include <AccessoryConnection.h>
 #include <AccPolSubblockNameArray.h>
 #include <RadioStubManager.h>
 
+// 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