00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef EVENT_H
00018 #define EVENT_H
00019
00020 #include <Message/basemessage.h>
00021
00027 class Event : public BaseMessage
00028 {
00029 public:
00030
00033 Event(const int eventID = -1);
00034
00036 ~Event();
00037
00040 const int getEventID() const { return m_iEventID; }
00041
00044 void setEventID(const int eventID) { m_iEventID = eventID; }
00045
00049 virtual void processMessage() const = 0;
00050
00054 void toXML(XMLWriter&) const;
00055
00059 virtual void toXMLExt(XMLWriter&) const = 0;
00060
00065 virtual std::string toString() const;
00066
00067 private:
00069 int m_iEventID;
00070
00071 public:
00072
00074 static const char* EVENT_ROOT;
00075
00080 static const char* CONTACTID_ATTR;
00085 static const char* STATE_ATTR;
00086
00091 static const char* ID_ATTR;
00092
00094 static const char* PARAM_NODE;
00095
00096 };
00097
00098 #endif