Frameworks/libpurple.framework/Versions/0.6.0/Headers/userlist.h
changeset 2592 e8d15275025e
parent 2591 f66a716bfc79
child 2593 b4bd28402abc
     1.1 --- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/userlist.h	Fri Aug 21 13:24:36 2009 -0700
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,106 +0,0 @@
     1.4 -/**
     1.5 - * @file userlist.h MSN user list support
     1.6 - *
     1.7 - * purple
     1.8 - *
     1.9 - * Purple is the legal property of its developers, whose names are too numerous
    1.10 - * to list here.  Please refer to the COPYRIGHT file distributed with this
    1.11 - * source distribution.
    1.12 - *
    1.13 - * This program is free software; you can redistribute it and/or modify
    1.14 - * it under the terms of the GNU General Public License as published by
    1.15 - * the Free Software Foundation; either version 2 of the License, or
    1.16 - * (at your option) any later version.
    1.17 - *
    1.18 - * This program is distributed in the hope that it will be useful,
    1.19 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 - * GNU General Public License for more details.
    1.22 - *
    1.23 - * You should have received a copy of the GNU General Public License
    1.24 - * along with this program; if not, write to the Free Software
    1.25 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    1.26 - */
    1.27 -#ifndef _MSN_USERLIST_H_
    1.28 -#define _MSN_USERLIST_H_
    1.29 -
    1.30 -typedef struct _MsnUserList MsnUserList;
    1.31 -
    1.32 -#include "cmdproc.h"
    1.33 -#include "user.h"
    1.34 -#include "group.h"
    1.35 -
    1.36 -typedef enum
    1.37 -{
    1.38 -	MSN_LIST_FL,
    1.39 -	MSN_LIST_AL,
    1.40 -	MSN_LIST_BL,
    1.41 -	MSN_LIST_RL,
    1.42 -	MSN_LIST_PL
    1.43 -
    1.44 -} MsnListId;
    1.45 -
    1.46 -
    1.47 -struct _MsnUserList
    1.48 -{
    1.49 -	MsnSession *session;
    1.50 -
    1.51 -	GList *users; /* Contains MsnUsers */
    1.52 -	GList *groups; /* Contains MsnGroups */
    1.53 -
    1.54 -	GQueue *buddy_icon_requests;
    1.55 -	int buddy_icon_window;
    1.56 -	guint buddy_icon_request_timer;
    1.57 -
    1.58 -};
    1.59 -
    1.60 -gboolean msn_userlist_user_is_in_group(MsnUser *user, const char * group_id);
    1.61 -gboolean msn_userlist_user_is_in_list(MsnUser *user, MsnListId list_id);
    1.62 -
    1.63 -void msn_got_lst_user(MsnSession *session, MsnUser *user,
    1.64 -					  int list_op, GSList *group_ids);
    1.65 -
    1.66 -MsnUserList *msn_userlist_new(MsnSession *session);
    1.67 -void msn_userlist_destroy(MsnUserList *userlist);
    1.68 -
    1.69 -void msn_userlist_add_user(MsnUserList *userlist, MsnUser *user);
    1.70 -void msn_userlist_remove_user(MsnUserList *userlist, MsnUser *user);
    1.71 -
    1.72 -MsnUser * msn_userlist_find_user(MsnUserList *userlist, const char *passport);
    1.73 -MsnUser * msn_userlist_find_add_user(MsnUserList *userlist,
    1.74 -				const char *passport, const char *userName);
    1.75 -MsnUser * msn_userlist_find_user_with_id(MsnUserList *userlist, const char *uid);
    1.76 -MsnUser * msn_userlist_find_user_with_mobile_phone(MsnUserList *userlist, const char *number);
    1.77 -
    1.78 -void msn_userlist_add_group(MsnUserList *userlist, MsnGroup *group);
    1.79 -void msn_userlist_remove_group(MsnUserList *userlist, MsnGroup *group);
    1.80 -MsnGroup *msn_userlist_find_group_with_id(MsnUserList *userlist, const char *id);
    1.81 -MsnGroup *msn_userlist_find_group_with_name(MsnUserList *userlist, const char *name);
    1.82 -const char * msn_userlist_find_group_id(MsnUserList *userlist,
    1.83 -					const char *group_name);
    1.84 -const char *msn_userlist_find_group_name(MsnUserList *userlist, const char *group_id);
    1.85 -void msn_userlist_rename_group_id(MsnUserList *userlist, const char *group_id,
    1.86 -				  const char *new_name);
    1.87 -void msn_userlist_remove_group_id(MsnUserList *userlist, const char *group_id);
    1.88 -
    1.89 -void msn_userlist_rem_buddy(MsnUserList *userlist, const char *who);
    1.90 -void msn_userlist_add_buddy(MsnUserList *userlist,
    1.91 -			    const char *who, const char *group_name);
    1.92 -void msn_userlist_move_buddy(MsnUserList *userlist, const char *who,
    1.93 -						    const char *old_group_name,
    1.94 -						    const char *new_group_name);
    1.95 -
    1.96 -gboolean msn_userlist_add_buddy_to_group(MsnUserList *userlist, const char *who,
    1.97 -					 const char *group_name);
    1.98 -gboolean msn_userlist_rem_buddy_from_group(MsnUserList *userlist,
    1.99 -					   const char *who,
   1.100 -					   const char *group_name);
   1.101 -
   1.102 -void msn_userlist_add_buddy_to_list(MsnUserList *userlist, const char *who,
   1.103 -				    MsnListId list_id);
   1.104 -void msn_userlist_rem_buddy_from_list(MsnUserList *userlist, const char *who,
   1.105 -				      MsnListId list_id);
   1.106 -
   1.107 -void msn_userlist_load(MsnSession *session);
   1.108 -
   1.109 -#endif /* _MSN_USERLIST_H_ */