src/protocols/bonjour/buddy.h

changeset 14253
b63ebf84c42b
parent 14252
d10dda2777a9
child 14254
77edc7a6191a
equal deleted inserted replaced
14252:d10dda2777a9 14253:b63ebf84c42b
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU Library General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16
17 #ifndef _BONJOUR_BUDDY
18 #define _BONJOUR_BUDDY
19
20 #include <howl.h>
21 #include <glib.h>
22
23 #include "account.h"
24 #include "jabber.h"
25
26 typedef struct _BonjourBuddy
27 {
28 gchar *name;
29 gchar *first;
30 gint port_p2pj;
31 gchar *phsh;
32 gchar *status;
33 gchar *email;
34 gchar *last;
35 gchar *jid;
36 gchar *AIM;
37 gchar *vc;
38 gchar *ip;
39 gchar *msg;
40 BonjourJabberConversation *conversation;
41 } BonjourBuddy;
42
43 /**
44 * Creates a new buddy.
45 */
46 BonjourBuddy *bonjour_buddy_new(const gchar *name, const gchar *first,
47 gint port_p2pj, const gchar *phsh, const gchar *status,
48 const gchar *email, const gchar *last, const gchar *jid,
49 const gchar *AIM, const gchar *vc, const gchar *ip, const gchar *msg);
50
51 /**
52 * Check if all the compulsory buddy data is present.
53 */
54 gboolean bonjour_buddy_check(BonjourBuddy *buddy);
55
56 /**
57 * If the buddy doesn't previoulsy exists, it is created. Else, its data is changed (???)
58 */
59 void bonjour_buddy_add_to_gaim(GaimAccount *account, BonjourBuddy *buddy);
60
61 /**
62 * Deletes a buddy from memory.
63 */
64 void bonjour_buddy_delete(BonjourBuddy *buddy);
65
66 #endif

mercurial