phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h
changeset 78 baacf668fe89
parent 45 6b911d05207e
--- a/phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h	Mon Oct 04 16:06:10 2010 +0300
+++ b/phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h	Fri Oct 15 12:58:46 2010 +0300
@@ -75,6 +75,10 @@
     class ToolBarCommand
         {
     public:
+        ToolBarCommand() :
+            mCommandId(0), mIsEnabled(false) {}
+        ToolBarCommand(int command, bool isEnabled) :
+            mCommandId(command), mIsEnabled(isEnabled) {}
         
         // Tool Bar command Id
         int mCommandId;
@@ -82,6 +86,10 @@
         // Is command enabled
         bool mIsEnabled;
 
+        // Comparison operator
+        bool operator==(const ToolBarCommand& c)
+            { return ((c.mCommandId == mCommandId) && 
+                    (c.mIsEnabled == mIsEnabled)); }
         };
     
     /*!