9713
|
1 /**
|
|
2 * @file away.h Away API
|
|
3 * @ingroup core
|
|
4 *
|
|
5 * gaim
|
|
6 *
|
|
7 * Gaim is the legal property of its developers, whose names are too numerous
|
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this
|
|
9 * source distribution.
|
|
10 *
|
|
11 * This program is free software; you can redistribute it and/or modify
|
|
12 * it under the terms of the GNU General Public License as published by
|
|
13 * the Free Software Foundation; either version 2 of the License, or
|
|
14 * (at your option) any later version.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
24 */
|
8476
|
25 #ifndef _GAIM_AWAY_H_
|
|
26 #define _GAIM_AWAY_H_
|
|
27
|
9791
|
28 #include "gtkgaim.h"
|
8476
|
29
|
9730
|
30 /* XXX CUI: away messages aren't really anything more than char* but we need two char*'s
|
|
31 * for the UI so that people can name their away messages when they save them. So these
|
|
32 * are really a UI function and struct away_message should be removed from the core. */
|
|
33 /* WTF? How does having a title for something mean that it is part of the UI? */
|
|
34 struct away_message {
|
|
35 char name[80];
|
|
36 char message[2048];
|
|
37 };
|
8476
|
38
|
9730
|
39 extern GSList *away_messages;
|
|
40 extern struct away_message *awaymessage;
|
|
41 extern GtkWidget *awaymenu;
|
|
42 extern GtkWidget *awayqueue;
|
|
43 extern GtkListStore *awayqueuestore;
|
8476
|
44
|
9730
|
45 extern void rem_away_mess(GtkWidget *, struct away_message *);
|
|
46 extern void do_away_message(GtkWidget *, struct away_message *);
|
|
47 extern void do_away_menu();
|
|
48 extern void toggle_away_queue();
|
|
49 extern void purge_away_queue(GSList **);
|
8476
|
50 extern void do_im_back(GtkWidget *, GtkWidget *);
|
9730
|
51 void create_away_mess(GtkWidget *, void *);
|
8476
|
52
|
|
53 #endif /* _GAIM_AWAY_H_ */
|