00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef EVENT_H__
00015 #define EVENT_H__
00016
00017 namespace gloox
00018 {
00019
00020 class Stanza;
00021
00028 class Event
00029 {
00030
00031 public:
00035 enum EventType
00036 {
00037 PingPing,
00038 PingPong,
00039 PingError
00040 };
00041
00046 Event( EventType type ) : m_eventType( type ), m_stanza( 0 ) {}
00047
00053 Event( EventType type, const Stanza& stanza ) : m_eventType( type ), m_stanza( &stanza ) {}
00054
00058 virtual ~Event() {}
00059
00064 EventType eventType() const { return m_eventType; }
00065
00071 const Stanza* stanza() const { return m_stanza; }
00072
00073 protected:
00074 EventType m_eventType;
00075 const Stanza* m_stanza;
00076
00077 };
00078
00079 }
00080
00081 #endif // EVENT_H__