diff -r cfea66083b62 -r baacf668fe89 phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h --- 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)); } }; /*!