disable the removing buddy from old group step in moving a buddy.
This should make moving a buddy end up with the buddy in both groups.
That obviously sucks, but also sucks much less than removing the buddy,
like we currently do. Hopefully I'll find time to fix this right.
/**
* @file switchboard.h MSN switchboard functions
*
* gaim
*
* Gaim is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _MSN_SWITCHBOARD_H_
#define _MSN_SWITCHBOARD_H_
typedefstruct_MsnSwitchBoardMsnSwitchBoard;
#include"conversation.h"
#include"msg.h"
#include"user.h"
#include"servconn.h"
#include"slplink.h"
/**
* A switchboard error.
*/
typedefenum
{
MSN_SB_ERROR_NONE,/**< No error. */
MSN_SB_ERROR_CAL,/**< The user could not join (answer the call). */
MSN_SB_ERROR_OFFLINE,/**< The account is offline. */
MSN_SB_ERROR_USER_OFFLINE,/**< The user to call is offline. */
MSN_SB_ERROR_CONNECTION,/**< There was a connection error. */
MSN_SB_ERROR_UNKNOWN/**< An unknown error occurred. */
}MsnSBErrorType;
/**
* A switchboard flag.
*/
typedefenum
{
MSN_SB_FLAG_IM=0x01,/**< This switchboard is being used for a conversation. */
MSN_SB_FLAG_FT=0x02,/**< This switchboard is being used for file transfer. */
}MsnSBFlag;
/**
* A switchboard.
*
* A place where a bunch of users send messages to the rest of the users.
*/
struct_MsnSwitchBoard
{
MsnSession*session;
MsnServConn*servconn;
MsnCmdProc*cmdproc;
char*im_user;
MsnSBFlagflag;
char*auth_key;
char*session_id;
GaimConversation*conv;/**< The conversation that displays the
messages of this switchboard, or @c NULL if
this is a helper switchboard. */
gbooleanempty;/**< A flag that states if the swithcboard has no
users in it. */
gbooleaninvited;/**< A flag that states if we were invited to the
switchboard. */
gbooleanready;/**< A flag that states if this switchboard is
ready to be used. */
gbooleanclosed;/**< A flag that states if the switchboard has
been closed by the user. */
gbooleandestroying;/**< A flag that states if the switchboard is
alredy on the process of destruction. */
intcurrent_users;
inttotal_users;
GList*users;
intchat_id;
GQueue*msg_queue;/**< Queue of messages to send. */
GList*ack_list;/**< List of messages waiting for an ack. */
MsnSBErrorTypeerror;/**< The error that occurred in this switchboard
(if applicable). */
MsnSlpLink*slplink;/**< The slplink that is using this switchboard. */
};
/**
* Initialize the variables for switchboard creation.