comparison plugins/docklet/docklet.h @ 6208:3e3ee3cba192

[gaim-migrate @ 6694] Robot101: I fixed the docklet stuff, little buglet with not redrawing after a redisplay, and I spiffed everything up and moved code around for no reason committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Fri, 18 Jul 2003 03:45:39 +0000
parents b2c8e08508af
children c2fb9192377b
comparison
equal deleted inserted replaced
6207:f78a42ef3101 6208:3e3ee3cba192
1 /* System tray icon (aka docklet) plugin for Gaim 1 /*
2 * Copyright (C) 2002 Robert McQueen <robot101@debian.org> 2 * System tray icon (aka docklet) plugin for Gaim
3 *
4 * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org>
3 * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com> 5 * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com>
4 * Inspired by a similar plugin by: 6 * Inspired by a similar plugin by:
5 * John (J5) Palmieri <johnp@martianrock.com> 7 * John (J5) Palmieri <johnp@martianrock.com>
6 * 8 *
7 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
17 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software 20 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA. 22 * 02111-1307, USA.
21 */ 23 */
24
22 #ifndef _DOCKLET_H_ 25 #ifndef _DOCKLET_H_
23 #define _DOCKLET_H_ 26 #define _DOCKLET_H_
24 27
25 enum docklet_status { 28 enum docklet_status
29 {
26 offline, 30 offline,
27 offline_connecting, 31 offline_connecting,
28 online, 32 online,
29 online_connecting, 33 online_connecting,
30 online_pending, 34 online_pending,
31 away, 35 away,
32 away_pending 36 away_pending
33 }; 37 };
34 38
35 struct gaim_tray_ops 39 struct docklet_ui_ops
36 { 40 {
37 void (*create)(); 41 void (*create)();
38 void (*destroy)(); 42 void (*destroy)();
39 void (*update_icon)(enum docklet_status); 43 void (*update_icon)(enum docklet_status);
40 }; 44 };
41 45
42 void docklet_clicked(int button_type); 46 /* useful for setting idle callbacks that will be cleaned up */
43 void docklet_embedded(); 47 extern GaimPlugin *handle;
44 void docklet_set_tray_ops(struct gaim_tray_ops *ops); 48
45 void docklet_flush_queue(); 49 /* functions in docklet.c */
50 extern void docklet_clicked(int);
51 extern void docklet_embedded();
52 extern void docklet_remove(gboolean);
53 extern void docklet_set_ui_ops(struct docklet_ui_ops *);
54
55 /* function in docklet-{x11,win32}.c */
56 extern void docklet_ui_init();
46 57
47 #endif /* _DOCKLET_H_ */ 58 #endif /* _DOCKLET_H_ */