Mercurial > pidgin
annotate plugins/gevolution/gevolution.h @ 9546:ebbe4390f75b
[gaim-migrate @ 10375]
" Added the ability to remember your away message if
you're disconnected and then reconnected." --Yosef Radchenko
Date: 2004-07-14 22:02
Sender: lschiere
Logged In: YES
user_id=28833
has this been tested with multiple accounts?
Date: 2004-07-14 22:49
Sender: jonrad
Logged In: YES
user_id=1083867
If you asking whether this was tested with multiple accounts
logged in at the same time, then yes. If you're asking
whether this was tested on multiple protocols, then no. I've
tested it on oscar. Also, I compiled it on my FreeBSD
machine and didn't get a chance to compile on any other
OSes, but conceptually it should work fine on others (But of
course, when dealing with computers, nothing works as it is
meant to).
Date: 2004-07-14 22:54
Sender: jonrad
Logged In: YES
user_id=1083867
Also, if you comment out lines 119 and 120:
if (gc->want_to_die)
g_hash_table_remove(awayStates, aaccount);
Then it keeps the away information even if you purposesly
disconnected (As opposed to now, which only restores your
away state if you were kicked off the network or whatever)
Thats helpful if you want to test it.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Fri, 16 Jul 2004 13:50:20 +0000 |
| parents | a5ec9e73f46d |
| children | 7a149eac59a3 |
| 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 | |
|
9354
a5ec9e73f46d
[gaim-migrate @ 10162]
Christian Hammond <chipx86@chipx86.com>
parents:
9046
diff
changeset
|
36 #if !EBOOK_CHECK_VERSION(0, 0, 95) |
|
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_ */ |
