5 Star 4 Fork 4

zhjun5337 / kopete-qq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qqprotocol.h 3.24 KB
一键复制 编辑 原始数据 按行查看 历史
zhjun5337 提交于 2014-07-16 21:27 . Merge old to master
/*
qqprotocol.h - Kopete Webqq Protocol
Copyright (c) 2014 by Jun Zhang <jun.zhang@i-soft.com.cn>
Copyright (c) 2003 by Will Stephenson <will@stevello.free-online.co.uk>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This library 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. *
* *
*************************************************************************
*/
#ifndef TESTBEDPROTOCOL_H
#define TESTBEDPROTOCOL_H
#include <kopeteprotocol.h>
#include <QVariant>
/**
* Encapsulates the generic actions associated with this protocol
* @author Will Stephenson
*/
class WebqqProtocol : public Kopete::Protocol
{
Q_OBJECT
public:
WebqqProtocol(QObject *parent, const QVariantList &args);
~WebqqProtocol();
//Online Statuses, respect to Lwqq status
const Kopete::OnlineStatus WebqqLogout;
const Kopete::OnlineStatus WebqqOnline;
const Kopete::OnlineStatus WebqqOffline;
const Kopete::OnlineStatus WebqqAway;
const Kopete::OnlineStatus WebqqHidden;
const Kopete::OnlineStatus WebqqBusy;
const Kopete::OnlineStatus WebqqCallme;
//const Kopete::OnlineStatus WebqqInvisible;
/*used to indicate connecting*/
const Kopete::OnlineStatus WebqqConnecting;
/*property*/
const Kopete::PropertyTmpl iconCheckSum;
const Kopete::PropertyTmpl propNick;
const Kopete::PropertyTmpl propLongNick;
const Kopete::PropertyTmpl propGender;
const Kopete::PropertyTmpl propBirthday;
const Kopete::PropertyTmpl propProvince;
const Kopete::PropertyTmpl propPhone;
const Kopete::PropertyTmpl propSchool;
const Kopete::PropertyTmpl propEmail;
const Kopete::PropertyTmpl propXingzuo;
const Kopete::PropertyTmpl propCountry;
const Kopete::PropertyTmpl propCity;
const Kopete::PropertyTmpl propMobile;
const Kopete::PropertyTmpl propPage;
const Kopete::PropertyTmpl propJob;
const Kopete::PropertyTmpl propPersonal;
/**
* Convert the serialised data back into a WebqqContact and add this
* to its Kopete::MetaContact
*/
virtual Kopete::Contact *deserializeContact(
Kopete::MetaContact *metaContact,
const QMap< QString, QString > & serializedData,
const QMap< QString, QString > & addressBookData
);
/**
* Generate the widget needed to add WebqqContacts
*/
virtual AddContactPage * createAddContactWidget( QWidget *parent, Kopete::Account *account );
/**
* Generate the widget needed to add/edit accounts for this protocol
*/
virtual KopeteEditAccountWidget * createEditAccountWidget( Kopete::Account *account, QWidget *parent );
/**
* Generate a WebqqAccount
*/
virtual Kopete::Account * createNewAccount( const QString &accountId );
/**
* Access the instance of this protocol
*/
static WebqqProtocol *protocol();
protected:
static WebqqProtocol *s_protocol;
};
#endif
C++
1
https://gitee.com/zhjun5337/kopete-qq.git
git@gitee.com:zhjun5337/kopete-qq.git
zhjun5337
kopete-qq
kopete-qq
master

搜索帮助