Mercurial > pidgin
annotate plugins/gevolution/gevolution.h @ 9774:ec6ff57d7b06
[gaim-migrate @ 10642]
" moves make_buddy_menu to gaim_gtk_blist_make_buddy_menu
and makes it public.
Also, cleaned up a lot of extra pointers we were
passing around. No need to pass the menu, buddy, prpl,
and prplinfo when we can get the prpl and the prplinfo
from the buddy with buddy->account->gc->prpl, and
GAIM_PLUGIN_PROTOCOL_INFO();" --Gary Kramlich
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 18 Aug 2004 11:46:46 +0000 |
| parents | 111394c5fe2a |
| children | ff4be2d1401d |
| rev | line source |
|---|---|
| 8089 | 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 | |
|
9046
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
24 #ifdef HAVE_CONFIG_H |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
25 # include "config.h" |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
26 #endif |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
27 |
|
9354
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
28 #define EBOOK_CHECK_VERSION(major, minor, micro) \ |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
29 (LIBEBOOK_MAJOR_VER > (major) || \ |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
30 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
31 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
32 LIBEBOOK_MICRO_VER >= (micro))) |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
33 |
| 8089 | 34 #include <libebook/e-book.h> |
| 35 | |
|
9567
111394c5fe2a
[gaim-migrate @ 10410]
Christian Hammond <chipx86@chipx86.com>
parents:
9566
diff
changeset
|
36 #if !EBOOK_CHECK_VERSION(0, 0, 95) |
|
9354
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
37 # include <libebook/e-book-async.h> |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
38 #endif |
|
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
39 |
| 8089 | 40 typedef struct |
| 41 { | |
| 42 GaimAccount *account; | |
| 43 char *username; | |
| 44 | |
| 45 EBook *book; | |
| 46 | |
| 47 GtkWidget *win; | |
| 48 GtkWidget *treeview; | |
| 49 GtkWidget *addressbooks_menu; | |
| 50 GtkWidget *search_field; | |
| 51 GtkWidget *group_combo; | |
| 52 GtkWidget *select_button; | |
| 53 GtkWidget *account_optmenu; | |
| 54 GtkListStore *model; | |
| 55 | |
| 56 GList *contacts; | |
| 57 | |
| 58 } GevoAddBuddyDialog; | |
| 59 | |
| 60 typedef struct | |
| 61 { | |
| 62 gboolean person_only; | |
| 63 | |
| 64 GaimAccount *account; | |
| 65 GaimBuddy *buddy; | |
| 66 | |
| 67 EContact *contact; | |
| 68 | |
| 69 GtkWidget *win; | |
| 70 GtkWidget *accounts_menu; | |
| 71 GtkWidget *screenname; | |
| 72 GtkWidget *firstname; | |
| 73 GtkWidget *lastname; | |
| 74 GtkWidget *email; | |
| 75 GtkWidget *group_combo; | |
| 76 GtkWidget *add_button; | |
| 77 | |
| 78 char *buddy_icon; | |
| 79 | |
| 80 } GevoNewPersonDialog; | |
| 81 | |
| 82 typedef struct | |
| 83 { | |
| 84 GaimBuddy *buddy; | |
| 85 | |
| 86 EBook *book; | |
| 87 | |
| 88 GtkWidget *win; | |
| 89 GtkWidget *treeview; | |
| 90 GtkWidget *addressbooks_menu; | |
| 91 GtkWidget *search_field; | |
| 92 GtkWidget *assoc_button; | |
| 93 GtkWidget *imhtml; | |
| 94 GtkListStore *model; | |
| 95 | |
| 96 GList *contacts; | |
| 97 | |
| 98 } GevoAssociateBuddyDialog; | |
| 99 | |
| 100 void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, | |
| 101 const char *group, const char *alias); | |
| 102 void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog, | |
| 103 EContact *contact, | |
| 104 const char *name, GaimAccount *account, | |
| 105 const char *screenname); | |
| 106 | |
| 107 void gevo_new_person_dialog_show(EContact *contact, GaimAccount *account, | |
| 108 const char *username, const char *group, | |
| 109 GaimBuddy *buddy, gboolean person_only); | |
| 110 | |
| 111 void gevo_add_buddy(GaimAccount *account, const char *group_name, | |
| 112 const char *screenname, const char *alias); | |
| 113 GList *gevo_get_groups(void); | |
| 114 | |
| 115 EContactField gevo_prpl_get_field(GaimAccount *account, GaimBuddy *buddy); | |
| 116 gboolean gevo_prpl_is_supported(GaimAccount *account, GaimBuddy *buddy); | |
| 117 gboolean gevo_load_addressbook(EBook **book, GError **error); | |
| 118 | |
| 119 GevoAssociateBuddyDialog *gevo_associate_buddy_dialog_new(GaimBuddy *buddy); | |
| 120 | |
| 121 #endif /* _GEVOLUTION_H_ */ |
