comparison plugins/docklet/docklet.h @ 6077:b2c8e08508af

[gaim-migrate @ 6536] Integrated Win Gaim systray to the docklet plugin committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Thu, 10 Jul 2003 23:13:07 +0000
parents
children 3e3ee3cba192
comparison
equal deleted inserted replaced
6076:8d6aa792e0f6 6077:b2c8e08508af
1 /* System tray icon (aka docklet) plugin for Gaim
2 * Copyright (C) 2002 Robert McQueen <robot101@debian.org>
3 * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com>
4 * Inspired by a similar plugin by:
5 * John (J5) Palmieri <johnp@martianrock.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
21 */
22 #ifndef _DOCKLET_H_
23 #define _DOCKLET_H_
24
25 enum docklet_status {
26 offline,
27 offline_connecting,
28 online,
29 online_connecting,
30 online_pending,
31 away,
32 away_pending
33 };
34
35 struct gaim_tray_ops
36 {
37 void (*create)();
38 void (*destroy)();
39 void (*update_icon)(enum docklet_status);
40 };
41
42 void docklet_clicked(int button_type);
43 void docklet_embedded();
44 void docklet_set_tray_ops(struct gaim_tray_ops *ops);
45 void docklet_flush_queue();
46
47 #endif /* _DOCKLET_H_ */