comparison mcabber/src/roster.h @ 986:ed697234bd39

Chat states receival (Alexis Hildebrandt) Patch from Alexis Hildebrandt, slightly modified (mostly coding style updates).
author Mikael Berthe <mikael@lilotux.net>
date Sun, 29 Oct 2006 11:43:00 +0100
parents 36f7753dfb59
children f47e312560af
comparison
equal deleted inserted replaced
985:b33ca4e1c37d 986:ed697234bd39
72 #define ROSTER_FLAG_HIDE (1U<<1) // Group hidden (or buddy window closed) 72 #define ROSTER_FLAG_HIDE (1U<<1) // Group hidden (or buddy window closed)
73 #define ROSTER_FLAG_LOCK (1U<<2) // Node should not be removed from buddylist 73 #define ROSTER_FLAG_LOCK (1U<<2) // Node should not be removed from buddylist
74 #define ROSTER_FLAG_USRLOCK (1U<<3) // Node should not be removed from buddylist 74 #define ROSTER_FLAG_USRLOCK (1U<<3) // Node should not be removed from buddylist
75 // ROSTER_FLAG_LOCAL (1U<<4) // Buddy not on server's roster (??) 75 // ROSTER_FLAG_LOCAL (1U<<4) // Buddy not on server's roster (??)
76 76
77
78 /* Message event and chat state flags */
79 #define ROSTER_EVENT_NONE 0U
80 #define ROSTER_EVENT_MSG 1U
81 /* JEP-22 Message Events */
82 #define ROSTER_EVENT_OFFLINE (1U<<1)
83 #define ROSTER_EVENT_DELIVERED (1U<<2)
84 #define ROSTER_EVENT_DISPLAYED (1U<<3)
85 /* JEP-22 & JEP-85 */
86 #define ROSTER_EVENT_COMPOSING (1U<<4)
87 /* JEP-85 Chat State Notifications */
88 #define ROSTER_EVENT_ACTIVE (1U<<5)
89 #define ROSTER_EVENT_PAUSED (1U<<6)
90 #define ROSTER_EVENT_INACTIVE (1U<<7)
91 #define ROSTER_EVENT_GONE (1U<<8)
92
77 extern GList *buddylist; 93 extern GList *buddylist;
78 extern GList *current_buddy; 94 extern GList *current_buddy;
79 extern GList *alternate_buddy; 95 extern GList *alternate_buddy;
80 96
81 // Macros... 97 // Macros...
133 //int buddy_isresource(gpointer rosterdata); 149 //int buddy_isresource(gpointer rosterdata);
134 GSList *buddy_getresources(gpointer rosterdata); 150 GSList *buddy_getresources(gpointer rosterdata);
135 GSList *buddy_getresources_locale(gpointer rosterdata); 151 GSList *buddy_getresources_locale(gpointer rosterdata);
136 void buddy_resource_setname(gpointer rosterdata, const char *resname, 152 void buddy_resource_setname(gpointer rosterdata, const char *resname,
137 const char *newname); 153 const char *newname);
154 void buddy_resource_setevents(gpointer rosterdata, const char *resname,
155 guint event);
156 guint buddy_resource_getevents(gpointer rosterdata, const char *resname);
138 enum imrole buddy_getrole(gpointer rosterdata, const char *resname); 157 enum imrole buddy_getrole(gpointer rosterdata, const char *resname);
139 enum imaffiliation buddy_getaffil(gpointer rosterdata, const char *resname); 158 enum imaffiliation buddy_getaffil(gpointer rosterdata, const char *resname);
140 const char *buddy_getrjid(gpointer rosterdata, const char *resname); 159 const char *buddy_getrjid(gpointer rosterdata, const char *resname);
141 void buddy_del_all_resources(gpointer rosterdata); 160 void buddy_del_all_resources(gpointer rosterdata);
142 void buddy_setflags(gpointer rosterdata, guint flags, guint value); 161 void buddy_setflags(gpointer rosterdata, guint flags, guint value);