libpurple/protocols/qq/qq_base.h

Mon, 15 Sep 2008 02:59:23 +0000

author
SHiNE CsyFeK <csyfek@gmail.com>
date
Mon, 15 Sep 2008 02:59:23 +0000
changeset 24019
c0801ae3c886
parent 24018
91f0294f2377
child 24300
aa3947bf4a6a
permissions
-rw-r--r--

applied changes from f12c8903079425d7850fa183df0b3f937b2952be
through 8cebefbc6cd5d84acb69c74e69e8821f11dd225d

Backport of 8cebefbc6cd5d84acb69c74e69e8821f11dd225d to avoid having other changes overwritten.

2008.08.16 - ccpaging <ecc_hy(at)hotmail.com>
* Rename group to room. If you used pidginqq before, this may create a new room with same title, you may
delete old one
* Replace purple_debug with purple_debug_info, purple_debug_warning, purple_debug_error
* Add server notice and server new, and two options to turn on/off
* Minor modify for reducing transaction's debug infor
* Minor modifies for system notice and QQ news.
* Add 4 new strings need translate compare with p10.



committer: Daniel Atallah <datallah@pidgin.im>

/**
 * file qq_base.h
 *
 * purple
 *
 * Purple 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., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 */

#ifndef _QQ_BASE_H_
#define _QQ_BASE_H_

#include <glib.h>
#include "connection.h"

#define QQ_TOKEN_REPLY_OK 	0x00

#define QQ_LOGIN_REPLY_OK							0x00
#define QQ_LOGIN_REPLY_REDIRECT				0x01
#define QQ_LOGIN_REPLY_ERR_PWD					0x05
#define QQ_LOGIN_REPLY_NEED_REACTIVE		0x06
#define QQ_LOGIN_REPLY_REDIRECT_EX			0x0A
#define QQ_LOGIN_REPLY_ERR_MISC				0xff	/* defined by myself */

#define QQ_LOGIN_MODE_NORMAL        0x0a
#define QQ_LOGIN_MODE_AWAY	    0x1e
#define QQ_LOGIN_MODE_HIDDEN        0x28

#define QQ_UPDATE_ONLINE_INTERVAL   300	/* in sec */

void qq_send_packet_token(PurpleConnection *gc);
guint8 qq_process_token_reply(PurpleConnection *gc, guint8 *buf, gint buf_len);

void qq_send_packet_login(PurpleConnection *gc);
guint8 qq_process_login_reply( PurpleConnection *gc, guint8 *data, gint data_len);

void qq_send_packet_logout(PurpleConnection *gc);

void qq_send_packet_keep_alive(PurpleConnection *gc);
gboolean qq_process_keep_alive(guint8 *data, gint data_len, PurpleConnection *gc);
#endif

mercurial