comparison plugins/gevolution/gevolution.h @ 8089:35db601609e3

[gaim-migrate @ 8788] Gaim-Evolution Buddy List-Addressbook syncronocity by our very own Chip X. Eightysix. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 13 Jan 2004 01:45:32 +0000
parents
children c307cf4c84d2
comparison
equal deleted inserted replaced
8088:a86784e3b98c 8089:35db601609e3
1 /*
2 * Evolution integration plugin for Gaim
3 *
4 * Copyright (C) 2003 Christian Hammond.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
20 */
21 #ifndef _GEVOLUTION_H_
22 #define _GEVOLUTION_H_
23
24 #include <libebook/e-book.h>
25
26 typedef struct
27 {
28 GaimAccount *account;
29 char *username;
30
31 EBook *book;
32
33 GtkWidget *win;
34 GtkWidget *treeview;
35 GtkWidget *addressbooks_menu;
36 GtkWidget *search_field;
37 GtkWidget *group_combo;
38 GtkWidget *select_button;
39 GtkWidget *account_optmenu;
40 GtkListStore *model;
41
42 GList *contacts;
43
44 } GevoAddBuddyDialog;
45
46 typedef struct
47 {
48 gboolean person_only;
49
50 GaimAccount *account;
51 GaimBuddy *buddy;
52
53 EContact *contact;
54
55 GtkWidget *win;
56 GtkWidget *accounts_menu;
57 GtkWidget *screenname;
58 GtkWidget *firstname;
59 GtkWidget *lastname;
60 GtkWidget *email;
61 GtkWidget *group_combo;
62 GtkWidget *add_button;
63
64 char *buddy_icon;
65
66 } GevoNewPersonDialog;
67
68 typedef struct
69 {
70 GaimBuddy *buddy;
71
72 EBook *book;
73
74 GtkWidget *win;
75 GtkWidget *treeview;
76 GtkWidget *addressbooks_menu;
77 GtkWidget *search_field;
78 GtkWidget *assoc_button;
79 GtkWidget *imhtml;
80 GtkListStore *model;
81
82 GList *contacts;
83
84 } GevoAssociateBuddyDialog;
85
86 void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username,
87 const char *group, const char *alias);
88 void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog,
89 EContact *contact,
90 const char *name, GaimAccount *account,
91 const char *screenname);
92
93 void gevo_new_person_dialog_show(EContact *contact, GaimAccount *account,
94 const char *username, const char *group,
95 GaimBuddy *buddy, gboolean person_only);
96
97 void gevo_add_buddy(GaimAccount *account, const char *group_name,
98 const char *screenname, const char *alias);
99 GList *gevo_get_groups(void);
100
101 EContactField gevo_prpl_get_field(GaimAccount *account, GaimBuddy *buddy);
102 gboolean gevo_prpl_is_supported(GaimAccount *account, GaimBuddy *buddy);
103 gboolean gevo_load_addressbook(EBook **book, GError **error);
104
105 GevoAssociateBuddyDialog *gevo_associate_buddy_dialog_new(GaimBuddy *buddy);
106
107 #endif /* _GEVOLUTION_H_ */