00001 /* Copyright (C) 2006 by Marc Maurer <uwog@uwog.net> 00002 * 00003 * This program is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU General Public License 00005 * as published by the Free Software Foundation; either version 2 00006 * of the License, or (at your option) any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301 USA. 00017 */ 00018 00019 #ifndef __ACCOUNTEVENT_H__ 00020 #define __ACCOUNTEVENT_H__ 00021 00022 #include "Event.h" 00023 00024 class AccountNewEvent : public Event 00025 { 00026 public: 00027 DECLARE_PACKET(AccountNewEvent); 00028 }; 00029 00030 class AccountOnlineEvent : public Event 00031 { 00032 public: 00033 DECLARE_PACKET(AccountOnlineEvent); 00034 }; 00035 00036 class AccountOfflineEvent : public Event 00037 { 00038 public: 00039 DECLARE_PACKET(AccountOfflineEvent); 00040 }; 00041 00042 class AccountAddBuddyEvent : public Event 00043 { 00044 public: 00045 DECLARE_PACKET(AccountAddBuddyEvent); 00046 }; 00047 00048 class AccountDeleteBuddyEvent : public Event 00049 { 00050 public: 00051 DECLARE_PACKET(AccountDeleteBuddyEvent); 00052 }; 00053 00054 class AccountBuddyOnlineEvent : public Event 00055 { 00056 public: 00057 DECLARE_PACKET(AccountBuddyOnlineEvent); 00058 }; 00059 00060 class AccountBuddyOfflineEvent : public Event 00061 { 00062 public: 00063 DECLARE_PACKET(AccountBuddyOfflineEvent); 00064 }; 00065 00066 class AccountAddBuddyRequestEvent : public Event 00067 { 00068 public: 00069 DECLARE_PACKET(AccountAddBuddyRequestEvent); 00070 }; 00071 00072 class AccountBuddyAddDocumentEvent : public Event 00073 { 00074 public: 00075 DECLARE_PACKET(AccountBuddyAddDocumentEvent); 00076 AccountBuddyAddDocumentEvent() 00077 : m_pDocHandle(NULL) 00078 {} 00079 AccountBuddyAddDocumentEvent(DocHandle* pDocHandle) 00080 : m_pDocHandle(pDocHandle) 00081 {} 00082 DocHandle* getDocHandle() const 00083 { return m_pDocHandle; } 00084 00085 private: 00086 DocHandle* m_pDocHandle; 00087 }; 00088 00089 #endif /* __ACCOUNTEVENT_H__ */