00001 /* -*- myth -*- */ 00024 #ifndef ACTIONID_H 00025 #define ACTIONID_H 00026 00027 // Qt headers 00028 #include <qstring.h> 00029 #include <qdict.h> 00030 00036 class ActionID 00037 { 00038 public: 00040 ActionID() : m_context(QString::null), m_action(QString::null) { } 00041 00046 ActionID(const QString &context, const QString &action) 00047 : m_context(context), m_action(action) { } 00048 00050 QString GetContext(void) const { return m_context; } 00051 00053 QString GetAction(void) const { return m_action; } 00054 00055 bool operator==(const ActionID &other) const 00056 { 00057 return (m_action == other.m_action) && (m_context == other.m_context); 00058 } 00059 00060 private: 00061 QString m_context; 00062 QString m_action; 00063 }; 00064 typedef QValueList<ActionID> ActionList; 00065 00066 #endif /* ACTIONID_H */
1.5.5