libpurple/protocols/msn/user.h

changeset 29305
202cb72ed5b0
parent 29300
8d9c8a4a03af
child 29306
dff954e98aea
equal deleted inserted replaced
29303:fa3096fc03d9 29305:202cb72ed5b0
19 * 19 *
20 * You should have received a copy of the GNU General Public License 20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software 21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 */ 23 */
24 #ifndef _MSN_USER_H_ 24 #ifndef MSN_USER_H
25 #define _MSN_USER_H_ 25 #define MSN_USER_H
26 26
27 typedef struct _MsnUser MsnUser; 27 typedef struct _MsnUser MsnUser;
28
29 #include "session.h"
30 #include "object.h"
31
32 #include "userlist.h"
33 28
34 typedef enum 29 typedef enum
35 { 30 {
36 MSN_NETWORK_UNKNOWN = 0x00, 31 MSN_NETWORK_UNKNOWN = 0x00,
37 MSN_NETWORK_PASSPORT = 0x01, 32 MSN_NETWORK_PASSPORT = 0x01,
51 CURRENT_MEDIA_MUSIC, 46 CURRENT_MEDIA_MUSIC,
52 CURRENT_MEDIA_GAMES, 47 CURRENT_MEDIA_GAMES,
53 CURRENT_MEDIA_OFFICE 48 CURRENT_MEDIA_OFFICE
54 } CurrentMediaType; 49 } CurrentMediaType;
55 50
51 #include "object.h"
52 #include "session.h"
53 #include "userlist.h"
54
56 /** 55 /**
57 * Contains optional info about a user that is fairly uncommon. We 56 * Contains optional info about a user that is fairly uncommon. We
58 * put this info in in a separate struct to save memory because we 57 * put this info in in a separate struct to save memory because we
59 * allocate an MsnUser struct for each buddy, but we generally only 58 * allocate an MsnUser struct for each buddy, but we generally only
60 * need this information for a small percentage of our buddies 59 * need this information for a small percentage of our buddies
392 const char *msn_user_get_invite_message(const MsnUser *user); 391 const char *msn_user_get_invite_message(const MsnUser *user);
393 392
394 /** 393 /**
395 * check to see if user is online 394 * check to see if user is online
396 */ 395 */
397 gboolean 396 gboolean msn_user_is_online(PurpleAccount *account, const char *name);
398 msn_user_is_online(PurpleAccount *account, const char *name);
399 397
400 /** 398 /**
401 * check to see if user is Yahoo User 399 * check to see if user is Yahoo User
402 */ 400 */
403 gboolean 401 gboolean msn_user_is_yahoo(PurpleAccount *account ,const char *name);
404 msn_user_is_yahoo(PurpleAccount *account ,const char *name);
405 402
406 void msn_user_set_op(MsnUser *user, int list_op); 403 void msn_user_set_op(MsnUser *user, int list_op);
407 void msn_user_unset_op(MsnUser *user, int list_op); 404 void msn_user_unset_op(MsnUser *user, int list_op);
408 405
409 /*@}*/ 406 /*@}*/
410 407
411 408 #endif /* MSN_USER_H */
412 #endif /* _MSN_USER_H_ */

mercurial