Debian Codegraph @

plugins/collab/core/account/xp/AccountEvent.h

raw
1 /* Copyright (C) 2006 by Marc Maurer <[email protected]>
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License
5 * as published by the Free Software Foundation; either version 2
6 * of the License, or (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301 USA.
17 */
18
19 #ifndef __ACCOUNTEVENT_H__
20 #define __ACCOUNTEVENT_H__
21
22 #include "Event.h"
23
24 class AccountNewEvent : public Event
25 {
26 public:
27 DECLARE_PACKET(AccountNewEvent);
28 };
29
30 class AccountOnlineEvent : public Event
31 {
32 public:
33 DECLARE_PACKET(AccountOnlineEvent);
34 };
35
36 class AccountOfflineEvent : public Event
37 {
38 public:
39 DECLARE_PACKET(AccountOfflineEvent);
40 };
41
42 class AccountAddBuddyEvent : public Event
43 {
44 public:
45 DECLARE_PACKET(AccountAddBuddyEvent);
46 };
47
48 class AccountDeleteBuddyEvent : public Event
49 {
50 public:
51 DECLARE_PACKET(AccountDeleteBuddyEvent);
52 };
53
54 class AccountBuddyOnlineEvent : public Event
55 {
56 public:
57 DECLARE_PACKET(AccountBuddyOnlineEvent);
58 };
59
60 class AccountBuddyOfflineEvent : public Event
61 {
62 public:
63 DECLARE_PACKET(AccountBuddyOfflineEvent);
64 };
65
66 class AccountAddBuddyRequestEvent : public Event
67 {
68 public:
69 DECLARE_PACKET(AccountAddBuddyRequestEvent);
70 };
71
72 class AccountBuddyAddDocumentEvent : public Event
73 {
74 public:
75 DECLARE_PACKET(AccountBuddyAddDocumentEvent);
76 AccountBuddyAddDocumentEvent()
77 : m_pDocHandle(NULL)
78 {}
79 AccountBuddyAddDocumentEvent(DocHandle* pDocHandle)
80 : m_pDocHandle(pDocHandle)
81 {}
82 DocHandle* getDocHandle() const
83 { return m_pDocHandle; }
84
85 private:
86 DocHandle* m_pDocHandle;
87 };
88
89 #endif /* __ACCOUNTEVENT_H__ */