Mercurial > pidgin
annotate plugins/gevolution/gevolution.h @ 9165:43ea2b858112
[gaim-migrate @ 9950]
Patch by Felipe Contreras, and modified slightly by me to prevent
disconnects on Switchboard errors in MSN. Now, it just displays the error
dialog for switchboards, but keeps the disconnects for everything else. I
was sure I committed this before 0.78, but something happened. *baffled*
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Wed, 02 Jun 2004 04:50:31 +0000 |
| parents | c307cf4c84d2 |
| children | a5ec9e73f46d |
| 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 |
| 8089 | 28 #include <libebook/e-book.h> |
| 29 | |
| 30 typedef struct | |
| 31 { | |
| 32 GaimAccount *account; | |
| 33 char *username; | |
| 34 | |
| 35 EBook *book; | |
| 36 | |
| 37 GtkWidget *win; | |
| 38 GtkWidget *treeview; | |
| 39 GtkWidget *addressbooks_menu; | |
| 40 GtkWidget *search_field; | |
| 41 GtkWidget *group_combo; | |
| 42 GtkWidget *select_button; | |
| 43 GtkWidget *account_optmenu; | |
| 44 GtkListStore *model; | |
| 45 | |
| 46 GList *contacts; | |
| 47 | |
| 48 } GevoAddBuddyDialog; | |
| 49 | |
| 50 typedef struct | |
| 51 { | |
| 52 gboolean person_only; | |
| 53 | |
| 54 GaimAccount *account; | |
| 55 GaimBuddy *buddy; | |
| 56 | |
| 57 EContact *contact; | |
| 58 | |
| 59 GtkWidget *win; | |
| 60 GtkWidget *accounts_menu; | |
| 61 GtkWidget *screenname; | |
| 62 GtkWidget *firstname; | |
| 63 GtkWidget *lastname; | |
| 64 GtkWidget *email; | |
| 65 GtkWidget *group_combo; | |
| 66 GtkWidget *add_button; | |
| 67 | |
| 68 char *buddy_icon; | |
| 69 | |
| 70 } GevoNewPersonDialog; | |
| 71 | |
| 72 typedef struct | |
| 73 { | |
| 74 GaimBuddy *buddy; | |
| 75 | |
| 76 EBook *book; | |
| 77 | |
| 78 GtkWidget *win; | |
| 79 GtkWidget *treeview; | |
| 80 GtkWidget *addressbooks_menu; | |
| 81 GtkWidget *search_field; | |
| 82 GtkWidget *assoc_button; | |
| 83 GtkWidget *imhtml; | |
| 84 GtkListStore *model; | |
| 85 | |
| 86 GList *contacts; | |
| 87 | |
| 88 } GevoAssociateBuddyDialog; | |
| 89 | |
|
9046
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
90 #define EBOOK_CHECK_VERSION(major, minor, micro) \ |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
91 (LIBEBOOK_MAJOR_VER > (major) || \ |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
92 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
93 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
94 LIBEBOOK_MICRO_VER >= (micro))) |
|
c307cf4c84d2
[gaim-migrate @ 9822]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
95 |
| 8089 | 96 void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, |
| 97 const char *group, const char *alias); | |
| 98 void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog, | |
| 99 EContact *contact, | |
| 100 const char *name, GaimAccount *account, | |
| 101 const char *screenname); | |
| 102 | |
| 103 void gevo_new_person_dialog_show(EContact *contact, GaimAccount *account, | |
| 104 const char *username, const char *group, | |
| 105 GaimBuddy *buddy, gboolean person_only); | |
| 106 | |
| 107 void gevo_add_buddy(GaimAccount *account, const char *group_name, | |
| 108 const char *screenname, const char *alias); | |
| 109 GList *gevo_get_groups(void); | |
| 110 | |
| 111 EContactField gevo_prpl_get_field(GaimAccount *account, GaimBuddy *buddy); | |
| 112 gboolean gevo_prpl_is_supported(GaimAccount *account, GaimBuddy *buddy); | |
| 113 gboolean gevo_load_addressbook(EBook **book, GError **error); | |
| 114 | |
| 115 GevoAssociateBuddyDialog *gevo_associate_buddy_dialog_new(GaimBuddy *buddy); | |
| 116 | |
| 117 #endif /* _GEVOLUTION_H_ */ |
