代码拉取完成,页面将自动刷新
/*
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。