src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogserverstatussym.cpp
changeset 28 b7da29130b0e
parent 21 4633027730f5
--- a/src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogserverstatussym.cpp	Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogserverstatussym.cpp	Fri Sep 17 08:32:10 2010 +0300
@@ -36,8 +36,9 @@
 // Device dialog is the setter.
 const TUid PropertyCategoryUid = {0x20022FC5};
 const TUint StatusKey = 'Stat';
+const TUint EventKey = 'nEvt'; // For HbIndicatorButton, to be removed when HbIndicatorButton is removed
 
-class HbDeviceDialogServerStatusPrivate  : public CActive
+NONSHARABLE_CLASS(HbDeviceDialogServerStatusPrivate)  : public CActive
 {
 public:
     HbDeviceDialogServerStatusPrivate(bool isServer, HbDeviceDialogServerStatus *parent);
@@ -73,6 +74,9 @@
         _LIT_SECURITY_POLICY_PASS(KRdPolicy); // all pass
         _LIT_SECURITY_POLICY_S0(KWrPolicy, PropertyCategoryUid.iUid); // pass device dialog server
         mProperty.Define(PropertyCategoryUid, StatusKey, RProperty::EInt, KRdPolicy, KWrPolicy);
+        
+        // For HbIndicatorButton 
+        RProperty::Define(PropertyCategoryUid, EventKey, RProperty::EInt, KRdPolicy, KRdPolicy);
     }
     mProperty.Attach(PropertyCategoryUid, StatusKey);
     if (!mIsSetter) {
@@ -80,6 +84,7 @@
     }
     else {
         mProperty.Set(PropertyCategoryUid, StatusKey, mSetValue);
+        RProperty::Set(PropertyCategoryUid, EventKey, 0); // For HbIndicatorButton
     }
 }