Tue, 17 Aug 2004 02:52:13 +0000
[gaim-migrate @ 10638]
(22:52:45) noif: LSchiere: one last addition to my chat-info-defaults
patch... this removes the old defaulting mechanism which only jabber used
and accomplishes the same thing through the new defaulting mechanism. It
also changes the "Group" to "Room" for oscar chats to avoid having two
fields labelled "Group".
committer: Luke Schierer <lschiere@pidgin.im>
| 7014 | 1 | /** |
| 2 | * @file buddy.h Buddy handlers | |
| 3 | * | |
| 4 | * gaim | |
| 5 | * | |
| 6 | * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com> | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | #ifndef _GAIM_JABBER_BUDDY_H_ | |
| 23 | #define _GAIM_JABBER_BUDDY_H_ | |
| 24 | ||
| 25 | #include "jabber.h" | |
| 26 | ||
| 27 | typedef struct _JabberBuddy { | |
| 28 | GList *resources; | |
| 29 | char *error_msg; | |
| 30 | enum { | |
| 31 | JABBER_INVISIBLE_NONE = 0, | |
| 32 | JABBER_INVISIBLE_SERVER = 1 << 1, | |
| 33 | JABBER_INVIS_BUDDY = 1 << 2 | |
| 34 | } invisible; | |
| 35 | enum { | |
| 36 | JABBER_SUB_NONE = 0, | |
| 37 | JABBER_SUB_PENDING = 1 << 1, | |
| 38 | JABBER_SUB_TO = 1 << 2, | |
| 39 | JABBER_SUB_FROM = 1 << 3, | |
| 8194 | 40 | JABBER_SUB_BOTH = (JABBER_SUB_TO | JABBER_SUB_FROM), |
| 41 | JABBER_SUB_REMOVE = 1 << 4 | |
| 7014 | 42 | } subscription; |
| 43 | } JabberBuddy; | |
| 44 | ||
| 7116 | 45 | typedef struct _JabberBuddyResource { |
| 46 | JabberBuddy *jb; | |
| 47 | char *name; | |
| 48 | int priority; | |
| 49 | int state; | |
| 50 | char *status; | |
| 8312 | 51 | JabberCapabilities capabilities; |
| 8400 | 52 | char *thread_id; |
| 7116 | 53 | } JabberBuddyResource; |
| 54 | ||
| 55 | void jabber_buddy_free(JabberBuddy *jb); | |
| 7014 | 56 | JabberBuddy *jabber_buddy_find(JabberStream *js, const char *name, |
| 57 | gboolean create); | |
| 58 | JabberBuddyResource *jabber_buddy_find_resource(JabberBuddy *jb, | |
| 59 | const char *resource); | |
| 60 | void jabber_buddy_track_resource(JabberBuddy *jb, const char *resource, | |
| 61 | int priority, int state, const char *status); | |
| 7116 | 62 | void jabber_buddy_resource_free(JabberBuddyResource *jbr); |
| 7014 | 63 | void jabber_buddy_remove_resource(JabberBuddy *jb, const char *resource); |
| 64 | const char *jabber_buddy_get_status_msg(JabberBuddy *jb); | |
| 65 | void jabber_buddy_get_info(GaimConnection *gc, const char *who); | |
| 66 | void jabber_buddy_get_info_chat(GaimConnection *gc, int id, | |
| 67 | const char *resource); | |
| 68 | ||
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9015
diff
changeset
|
69 | GList *jabber_blist_node_menu(GaimBlistNode *node); |
| 7014 | 70 | |
| 71 | void jabber_set_info(GaimConnection *gc, const char *info); | |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8400
diff
changeset
|
72 | void jabber_setup_set_info(GaimPluginAction *action); |
| 7014 | 73 | |
| 74 | #endif /* _GAIM_JABBER_BUDDY_H_ */ |