comparison src/gnome_applet_mgr.h @ 1:2846a03bda67

[gaim-migrate @ 10] The other missing files :) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 23 Mar 2000 03:13:54 +0000
parents
children 99d91a6c2fbf
comparison
equal deleted inserted replaced
0:a5ace2e037bc 1:2846a03bda67
1 /**************************************************************
2 **
3 ** GaimGnomeAppletMgr
4 ** Author - Quinticent (John Palmieri: johnp@martianrock.com)
5 **
6 ** Purpose - Takes over the task of managing the GNOME applet
7 ** code and provides a centralized codebase for
8 ** GNOME integration for Gaim.
9 **
10 ** Legal Stuff -
11 **
12 ** gaim
13 **
14 ** Copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
15 **
16 ** This program is free software; you can redistribute it and/or modify
17 ** it under the terms of the GNU General Public License as published by
18 ** the Free Software Foundation; either version 2 of the License, or
19 ** (at your option) any later version.
20 **
21 ** This program is distributed in the hope that it will be useful,
22 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ** GNU General Public License for more details.
25 **
26 ** You should have received a copy of the GNU General Public License
27 ** along with this program; if not, write to the Free Software
28 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 **
30 **************************************************************/
31 #ifndef _GAIMGNOMEAPPLETMGR_H_
32 #define _GAIMGNOMEAPPLETMGR_H_
33 #ifdef USE_APPLET
34
35 #include <gnome.h>
36 #include <gtk/gtk.h>
37 #include <stdio.h>
38 #include <string.h>
39 #include <stdarg.h>
40 #include <stdlib.h>
41 #include <applet-widget.h>
42
43 enum gaim_user_states {
44 offline = 0,
45 signing_on,
46 online,
47 unread_message_pending,
48 away
49 };
50
51
52 #define _MSG_OFFLINE_ "Offline"
53 #define _MSG_CONNECT_ "Connecting"
54 #define _MSG_ONLINE_ "Online"
55 #define _MSG_FONT_ "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-iso8859-1"
56
57 #define GAIM_GNOME_PIXMAP_DIR "/usr/share/pixmaps/gaim/gnome/"
58
59 /*this should be configurable instead of hard coded.*/
60 #if 0
61 #define GAIM_GNOME_OFFLINE_ICON "devil-offline.png"
62 #define GAIM_GNOME_CONNECT_ICON "devil-connect.png"
63 #define GAIM_GNOME_ONLINE_ICON "devil-online.png"
64
65 #else
66 #define GAIM_GNOME_OFFLINE_ICON "penguin-offline.png"
67 #define GAIM_GNOME_CONNECT_ICON "penguin-connect.png"
68 #define GAIM_GNOME_ONLINE_ICON "penguin-online.png"
69 #endif
70
71 gint InitAppletMgr(); /* Initializes and creates applet */
72
73 void setUserState( enum gaim_user_states state ); /* Set the state the user is in (Online, Offline, etc.) */
74
75 void setTotalBuddies( gint num ); /* For future use to display the total number of buddies within the applet */
76
77 void setNumBuddiesOnline( gint num ); /* For future use to display the total number of buddies currently online, within the applet */
78
79 enum gaim_user_states getUserState(); /* Returns the current state the user is in */
80
81 gint getTotalBuddies(); /* Returns the total number of buddys set by setTotalBuddies */
82
83 gint getNumBuddiesOnline(); /* Returns the total number of buddys set by setNumBuddiesOnline */
84
85 void AppletCancelLogon(); /* Used to cancel a logon and reset the applet */
86
87 void set_applet_draw_open(); /* Indicates that the code has a window open that can be controlled by clicking on the applet */
88
89 void set_applet_draw_closed(); /* indicates that the code has closed the window that is controled by clicking on the applet */
90
91 void show_away_mess( AppletWidget *widget, gpointer data );
92
93
94
95 #endif /*USE_APPLET*/
96 #endif /*_GAIMGNOMEAPPLETMGR_H_*/