comparison src/protocols/bonjour/buddy.h @ 11477:36f575351c49

[gaim-migrate @ 13719] Commit the Bonjour code from oldstatus to HEAD. It hasn't been updated for the new status code yet. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 09 Sep 2005 12:34:27 +0000
parents
children 3f038da50a18
comparison
equal deleted inserted replaced
11476:5d3f8d9e8f92 11477:36f575351c49
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 _bonjour_buddy{
27 gchar* name;
28 gchar* first;
29 gint port_p2pj;
30 gchar* phsh;
31 gchar* status;
32 gchar* email;
33 gchar* last;
34 gchar* jid;
35 gchar* AIM;
36 gchar* vc;
37 gchar* ip;
38 gchar* msg;
39 BonjourJabberConversation* conversation;
40 }BonjourBuddy;
41
42 /**
43 * Creates a new buddy.
44 */
45 BonjourBuddy* bonjour_buddy_new(gchar* name, gchar* first, gint port_p2pj,
46 gchar* phsh, gchar* status, gchar* email, gchar* last, gchar* jid, gchar* AIM,
47 gchar* vc, gchar* ip, gchar* msg);
48
49 /**
50 * Check if all the compulsory buddy data is present.
51 */
52 gboolean bonjour_buddy_check(BonjourBuddy* buddy);
53
54 /**
55 * If the buddy doesn't previoulsy exists, it is created. Else, its data is changed (???)
56 */
57 void bonjour_buddy_add_to_gaim(BonjourBuddy* buddy, GaimAccount* account);
58
59 /**
60 * Deletes a buddy from memory.
61 */
62 void bonjour_buddy_delete(BonjourBuddy* buddy);
63
64 #endif