summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/iris/include/im.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/iris/include/im.h')
-rw-r--r--kopete/protocols/jabber/libiris/iris/include/im.h388
1 files changed, 194 insertions, 194 deletions
diff --git a/kopete/protocols/jabber/libiris/iris/include/im.h b/kopete/protocols/jabber/libiris/iris/include/im.h
index 170338fc..f4905057 100644
--- a/kopete/protocols/jabber/libiris/iris/include/im.h
+++ b/kopete/protocols/jabber/libiris/iris/include/im.h
@@ -21,8 +21,8 @@
#ifndef XMPP_IM_H
#define XMPP_IM_H
-#include<qdatetime.h>
-#include<qvaluelist.h>
+#include<tqdatetime.h>
+#include<tqvaluelist.h>
#include"xmpp.h"
namespace XMPP
@@ -30,24 +30,24 @@ namespace XMPP
class Url
{
public:
- Url(const QString &url="", const QString &desc="");
+ Url(const TQString &url="", const TQString &desc="");
Url(const Url &);
Url & operator=(const Url &);
~Url();
- QString url() const;
- QString desc() const;
+ TQString url() const;
+ TQString desc() const;
- void setUrl(const QString &);
- void setDesc(const QString &);
+ void setUrl(const TQString &);
+ void setDesc(const TQString &);
private:
class Private;
Private *d;
};
- typedef QValueList<Url> UrlList;
- typedef QMap<QString, QString> StringMap;
+ typedef TQValueList<Url> UrlList;
+ typedef TQMap<TQString, TQString> StringMap;
typedef enum { OfflineEvent, DeliveredEvent, DisplayedEvent,
ComposingEvent, CancelEvent, InactiveEvent, GoneEvent } MsgEvent;
@@ -61,29 +61,29 @@ namespace XMPP
Jid to() const;
Jid from() const;
- QString id() const;
- QString type() const;
- QString lang() const;
- QString subject(const QString &lang="") const;
- QString body(const QString &lang="") const;
- QString xHTMLBody(const QString &lang="") const;
- QString thread() const;
+ TQString id() const;
+ TQString type() const;
+ TQString lang() const;
+ TQString subject(const TQString &lang="") const;
+ TQString body(const TQString &lang="") const;
+ TQString xHTMLBody(const TQString &lang="") const;
+ TQString thread() const;
Stanza::Error error() const;
void setTo(const Jid &j);
void setFrom(const Jid &j);
- void setId(const QString &s);
- void setType(const QString &s);
- void setLang(const QString &s);
- void setSubject(const QString &s, const QString &lang="");
- void setBody(const QString &s, const QString &lang="");
- void setXHTMLBody(const QString &s, const QString &lang="", const QString &attr = "");
- void setThread(const QString &s);
+ void setId(const TQString &s);
+ void setType(const TQString &s);
+ void setLang(const TQString &s);
+ void setSubject(const TQString &s, const TQString &lang="");
+ void setBody(const TQString &s, const TQString &lang="");
+ void setXHTMLBody(const TQString &s, const TQString &lang="", const TQString &attr = "");
+ void setThread(const TQString &s);
void setError(const Stanza::Error &err);
// JEP-0091
- QDateTime timeStamp() const;
- void setTimeStamp(const QDateTime &ts);
+ TQDateTime timeStamp() const;
+ void setTimeStamp(const TQDateTime &ts);
// JEP-0066
UrlList urlList() const;
@@ -92,19 +92,19 @@ namespace XMPP
void setUrlList(const UrlList &list);
// JEP-0022
- QString eventId() const;
- void setEventId(const QString& id);
+ TQString eventId() const;
+ void setEventId(const TQString& id);
bool containsEvents() const;
bool containsEvent(MsgEvent e) const;
void addEvent(MsgEvent e);
// JEP-0027
- QString xencrypted() const;
- void setXEncrypted(const QString &s);
+ TQString xencrypted() const;
+ void setXEncrypted(const TQString &s);
// Obsolete invitation
- QString invite() const;
- void setInvite(const QString &s);
+ TQString invite() const;
+ void setInvite(const TQString &s);
// for compatibility. delete me later
bool spooled() const;
@@ -129,8 +129,8 @@ namespace XMPP
int type() const;
- QString toString() const;
- bool fromString(const QString &);
+ TQString toString() const;
+ bool fromString(const TQString &);
private:
SubType value;
@@ -139,56 +139,56 @@ namespace XMPP
class Status
{
public:
- Status(const QString &show="", const QString &status="", int priority=0, bool available=true);
+ Status(const TQString &show="", const TQString &status="", int priority=0, bool available=true);
~Status();
int priority() const;
- const QString & show() const;
- const QString & status() const;
- QDateTime timeStamp() const;
- const QString & keyID() const;
+ const TQString & show() const;
+ const TQString & status() const;
+ TQDateTime timeStamp() const;
+ const TQString & keyID() const;
bool isAvailable() const;
bool isAway() const;
bool isInvisible() const;
bool hasError() const;
int errorCode() const;
- const QString & errorString() const;
+ const TQString & errorString() const;
- const QString & xsigned() const;
- const QString & songTitle() const;
- const QString & capsNode() const;
- const QString & capsVersion() const;
- const QString & capsExt() const;
+ const TQString & xsigned() const;
+ const TQString & songTitle() const;
+ const TQString & capsNode() const;
+ const TQString & capsVersion() const;
+ const TQString & capsExt() const;
void setPriority(int);
- void setShow(const QString &);
- void setStatus(const QString &);
- void setTimeStamp(const QDateTime &);
- void setKeyID(const QString &);
+ void setShow(const TQString &);
+ void setStatus(const TQString &);
+ void setTimeStamp(const TQDateTime &);
+ void setKeyID(const TQString &);
void setIsAvailable(bool);
void setIsInvisible(bool);
- void setError(int, const QString &);
- void setCapsNode(const QString&);
- void setCapsVersion(const QString&);
- void setCapsExt(const QString&);
+ void setError(int, const TQString &);
+ void setCapsNode(const TQString&);
+ void setCapsVersion(const TQString&);
+ void setCapsExt(const TQString&);
- void setXSigned(const QString &);
- void setSongTitle(const QString &);
+ void setXSigned(const TQString &);
+ void setSongTitle(const TQString &);
private:
int v_priority;
- QString v_show, v_status, v_key;
- QDateTime v_timeStamp;
+ TQString v_show, v_status, v_key;
+ TQDateTime v_timeStamp;
bool v_isAvailable;
bool v_isInvisible;
- QString v_xsigned;
+ TQString v_xsigned;
// gabber song extension
- QString v_songTitle;
- QString v_capsNode, v_capsVersion, v_capsExt;
+ TQString v_songTitle;
+ TQString v_capsNode, v_capsVersion, v_capsExt;
int ecode;
- QString estr;
+ TQString estr;
class Private;
Private *d;
@@ -197,33 +197,33 @@ namespace XMPP
class Resource
{
public:
- Resource(const QString &name="", const Status &s=Status());
+ Resource(const TQString &name="", const Status &s=Status());
~Resource();
- const QString & name() const;
+ const TQString & name() const;
int priority() const;
const Status & status() const;
- void setName(const QString &);
+ void setName(const TQString &);
void setStatus(const Status &);
private:
- QString v_name;
+ TQString v_name;
Status v_status;
class ResourcePrivate *d;
};
- class ResourceList : public QValueList<Resource>
+ class ResourceList : public TQValueList<Resource>
{
public:
ResourceList();
~ResourceList();
- ResourceList::Iterator find(const QString &);
+ ResourceList::Iterator find(const TQString &);
ResourceList::Iterator priority();
- ResourceList::ConstIterator find(const QString &) const;
+ ResourceList::ConstIterator find(const TQString &) const;
ResourceList::ConstIterator priority() const;
private:
@@ -237,37 +237,37 @@ namespace XMPP
virtual ~RosterItem();
const Jid & jid() const;
- const QString & name() const;
- const QStringList & groups() const;
+ const TQString & name() const;
+ const TQStringList & groups() const;
const Subscription & subscription() const;
- const QString & ask() const;
+ const TQString & ask() const;
bool isPush() const;
- bool inGroup(const QString &) const;
+ bool inGroup(const TQString &) const;
virtual void setJid(const Jid &);
- void setName(const QString &);
- void setGroups(const QStringList &);
+ void setName(const TQString &);
+ void setGroups(const TQStringList &);
void setSubscription(const Subscription &);
- void setAsk(const QString &);
+ void setAsk(const TQString &);
void setIsPush(bool);
- bool addGroup(const QString &);
- bool removeGroup(const QString &);
+ bool addGroup(const TQString &);
+ bool removeGroup(const TQString &);
- QDomElement toXml(QDomDocument *) const;
- bool fromXml(const QDomElement &);
+ TQDomElement toXml(TQDomDocument *) const;
+ bool fromXml(const TQDomElement &);
private:
Jid v_jid;
- QString v_name;
- QStringList v_groups;
+ TQString v_name;
+ TQStringList v_groups;
Subscription v_subscription;
- QString v_ask;
+ TQString v_ask;
bool v_push;
class RosterItemPrivate *d;
};
- class Roster : public QValueList<RosterItem>
+ class Roster : public TQValueList<RosterItem>
{
public:
Roster();
@@ -284,12 +284,12 @@ namespace XMPP
{
public:
Features();
- Features(const QStringList &);
- Features(const QString &);
+ Features(const TQStringList &);
+ Features(const TQString &);
~Features();
- QStringList list() const; // actual featurelist
- void setList(const QStringList &);
+ TQStringList list() const; // actual featurelist
+ void setList(const TQStringList &);
// features
bool canRegister() const;
@@ -317,19 +317,19 @@ namespace XMPP
};
// useful functions
- bool test(const QStringList &) const;
+ bool test(const TQStringList &) const;
- QString name() const;
- static QString name(long id);
- static QString name(const QString &feature);
+ TQString name() const;
+ static TQString name(long id);
+ static TQString name(const TQString &feature);
long id() const;
- static long id(const QString &feature);
- static QString feature(long id);
+ static long id(const TQString &feature);
+ static TQString feature(long id);
class FeatureName;
private:
- QStringList _list;
+ TQStringList _list;
};
class AgentItem
@@ -338,24 +338,24 @@ namespace XMPP
AgentItem() { }
const Jid & jid() const { return v_jid; }
- const QString & name() const { return v_name; }
- const QString & category() const { return v_category; }
- const QString & type() const { return v_type; }
+ const TQString & name() const { return v_name; }
+ const TQString & category() const { return v_category; }
+ const TQString & type() const { return v_type; }
const Features & features() const { return v_features; }
void setJid(const Jid &j) { v_jid = j; }
- void setName(const QString &n) { v_name = n; }
- void setCategory(const QString &c) { v_category = c; }
- void setType(const QString &t) { v_type = t; }
+ void setName(const TQString &n) { v_name = n; }
+ void setCategory(const TQString &c) { v_category = c; }
+ void setType(const TQString &t) { v_type = t; }
void setFeatures(const Features &f) { v_features = f; }
private:
Jid v_jid;
- QString v_name, v_category, v_type;
+ TQString v_name, v_category, v_type;
Features v_features;
};
- typedef QValueList<AgentItem> AgentList;
+ typedef TQValueList<AgentItem> AgentList;
class DiscoItem
{
@@ -364,12 +364,12 @@ namespace XMPP
~DiscoItem();
const Jid &jid() const;
- const QString &node() const;
- const QString &name() const;
+ const TQString &node() const;
+ const TQString &name() const;
void setJid(const Jid &);
- void setName(const QString &);
- void setNode(const QString &);
+ void setName(const TQString &);
+ void setNode(const TQString &);
enum Action {
None = 0,
@@ -385,19 +385,19 @@ namespace XMPP
struct Identity
{
- QString category;
- QString name;
- QString type;
+ TQString category;
+ TQString name;
+ TQString type;
};
- typedef QValueList<Identity> Identities;
+ typedef TQValueList<Identity> Identities;
const Identities &identities() const;
void setIdentities(const Identities &);
// some useful helper functions
- static Action string2action(QString s);
- static QString action2string(Action a);
+ static Action string2action(TQString s);
+ static TQString action2string(Action a);
DiscoItem & operator= (const DiscoItem &);
DiscoItem(const DiscoItem &);
@@ -411,51 +411,51 @@ namespace XMPP
Private *d;
};
- typedef QValueList<DiscoItem> DiscoList;
+ typedef TQValueList<DiscoItem> DiscoList;
class FormField
{
public:
enum { username, nick, password, name, first, last, email, address, city, state, zip, phone, url, date, misc };
- FormField(const QString &type="", const QString &value="");
+ FormField(const TQString &type="", const TQString &value="");
~FormField();
int type() const;
- QString fieldName() const;
- QString realName() const;
+ TQString fieldName() const;
+ TQString realName() const;
bool isSecret() const;
- const QString & value() const;
+ const TQString & value() const;
void setType(int);
- bool setType(const QString &);
- void setValue(const QString &);
+ bool setType(const TQString &);
+ void setValue(const TQString &);
private:
- int tagNameToType(const QString &) const;
- QString typeToTagName(int) const;
+ int tagNameToType(const TQString &) const;
+ TQString typeToTagName(int) const;
int v_type;
- QString v_value;
+ TQString v_value;
class Private;
Private *d;
};
- class Form : public QValueList<FormField>
+ class Form : public TQValueList<FormField>
{
public:
Form(const Jid &j="");
~Form();
Jid jid() const;
- QString instructions() const;
- QString key() const;
+ TQString instructions() const;
+ TQString key() const;
void setJid(const Jid &);
- void setInstructions(const QString &);
- void setKey(const QString &);
+ void setInstructions(const TQString &);
+ void setKey(const TQString &);
private:
Jid v_jid;
- QString v_instructions, v_key;
+ TQString v_instructions, v_key;
class Private;
Private *d;
@@ -468,20 +468,20 @@ namespace XMPP
~SearchResult();
const Jid & jid() const;
- const QString & nick() const;
- const QString & first() const;
- const QString & last() const;
- const QString & email() const;
+ const TQString & nick() const;
+ const TQString & first() const;
+ const TQString & last() const;
+ const TQString & email() const;
void setJid(const Jid &);
- void setNick(const QString &);
- void setFirst(const QString &);
- void setLast(const QString &);
- void setEmail(const QString &);
+ void setNick(const TQString &);
+ void setFirst(const TQString &);
+ void setLast(const TQString &);
+ void setEmail(const TQString &);
private:
Jid v_jid;
- QString v_nick, v_first, v_last, v_email;
+ TQString v_nick, v_first, v_last, v_email;
};
class Client;
@@ -503,15 +503,15 @@ namespace XMPP
Task *parent() const;
Client *client() const;
- QDomDocument *doc() const;
- QString id() const;
+ TQDomDocument *doc() const;
+ TQString id() const;
bool success() const;
int statusCode() const;
- const QString & statusString() const;
+ const TQString & statusString() const;
void go(bool autoDelete=false);
- virtual bool take(const QDomElement &);
+ virtual bool take(const TQDomElement &);
void safeDelete();
signals:
@@ -520,13 +520,13 @@ namespace XMPP
protected:
virtual void onGo();
virtual void onDisconnect();
- void send(const QDomElement &);
- void setSuccess(int code=0, const QString &str="");
- void setError(const QDomElement &);
- void setError(int code=0, const QString &str="");
+ void send(const TQDomElement &);
+ void setSuccess(int code=0, const TQString &str="");
+ void setError(const TQDomElement &);
+ void setError(int code=0, const TQString &str="");
void debug(const char *, ...);
- void debug(const QString &);
- bool iqVerify(const QDomElement &x, const Jid &to, const QString &id, const QString &xmlns="");
+ void debug(const TQString &);
+ bool iqVerify(const TQDomElement &x, const Jid &to, const TQString &id, const TQString &xmlns="");
private slots:
void clientDisconnected();
@@ -544,60 +544,60 @@ namespace XMPP
Q_OBJECT
public:
- Client(QObject *parent=0);
+ Client(TQObject *parent=0);
~Client();
bool isActive() const;
void connectToServer(ClientStream *s, const Jid &j, bool auth=true);
- void start(const QString &host, const QString &user, const QString &pass, const QString &resource);
+ void start(const TQString &host, const TQString &user, const TQString &pass, const TQString &resource);
void close(bool fast=false);
Stream & stream();
const LiveRoster & roster() const;
const ResourceList & resourceList() const;
- void send(const QDomElement &);
- void send(const QString &);
+ void send(const TQDomElement &);
+ void send(const TQString &);
- QString host() const;
- QString user() const;
- QString pass() const;
- QString resource() const;
+ TQString host() const;
+ TQString user() const;
+ TQString pass() const;
+ TQString resource() const;
Jid jid() const;
void rosterRequest();
void sendMessage(const Message &);
- void sendSubscription(const Jid &, const QString &);
+ void sendSubscription(const Jid &, const TQString &);
void setPresence(const Status &);
- void debug(const QString &);
- QString genUniqueId();
+ void debug(const TQString &);
+ TQString genUniqueId();
Task *rootTask();
- QDomDocument *doc() const;
+ TQDomDocument *doc() const;
- QString OSName() const;
- QString timeZone() const;
+ TQString OSName() const;
+ TQString timeZone() const;
int timeZoneOffset() const;
- QString clientName() const;
- QString clientVersion() const;
- QString capsNode() const;
- QString capsVersion() const;
- QString capsExt() const;
-
- void setOSName(const QString &);
- void setTimeZone(const QString &, int);
- void setClientName(const QString &);
- void setClientVersion(const QString &);
- void setCapsNode(const QString &);
- void setCapsVersion(const QString &);
+ TQString clientName() const;
+ TQString clientVersion() const;
+ TQString capsNode() const;
+ TQString capsVersion() const;
+ TQString capsExt() const;
+
+ void setOSName(const TQString &);
+ void setTimeZone(const TQString &, int);
+ void setClientName(const TQString &);
+ void setClientVersion(const TQString &);
+ void setCapsNode(const TQString &);
+ void setCapsVersion(const TQString &);
void setIdentity(DiscoItem::Identity);
DiscoItem::Identity identity();
- void addExtension(const QString& ext, const Features& f);
- void removeExtension(const QString& ext);
- const Features& extension(const QString& ext) const;
- QStringList extensions() const;
+ void addExtension(const TQString& ext, const Features& f);
+ void removeExtension(const TQString& ext);
+ const Features& extension(const TQString& ext) const;
+ TQStringList extensions() const;
S5BManager *s5bManager() const;
IBBManager *ibbManager() const;
@@ -606,32 +606,32 @@ namespace XMPP
void setFileTransferEnabled(bool b);
FileTransferManager *fileTransferManager() const;
- bool groupChatJoin(const QString &host, const QString &room, const QString &nick);
- bool groupChatJoin(const QString &host, const QString &room, const QString &nick, const QString &password);
- void groupChatSetStatus(const QString &host, const QString &room, const Status &);
- void groupChatChangeNick(const QString &host, const QString &room, const QString &nick, const Status &);
- void groupChatLeave(const QString &host, const QString &room);
+ bool groupChatJoin(const TQString &host, const TQString &room, const TQString &nick);
+ bool groupChatJoin(const TQString &host, const TQString &room, const TQString &nick, const TQString &password);
+ void groupChatSetStatus(const TQString &host, const TQString &room, const Status &);
+ void groupChatChangeNick(const TQString &host, const TQString &room, const TQString &nick, const Status &);
+ void groupChatLeave(const TQString &host, const TQString &room);
signals:
void activated();
void disconnected();
- //void authFinished(bool, int, const QString &);
- void rosterRequestFinished(bool, int, const QString &);
+ //void authFinished(bool, int, const TQString &);
+ void rosterRequestFinished(bool, int, const TQString &);
void rosterItemAdded(const RosterItem &);
void rosterItemUpdated(const RosterItem &);
void rosterItemRemoved(const RosterItem &);
void resourceAvailable(const Jid &, const Resource &);
void resourceUnavailable(const Jid &, const Resource &);
- void presenceError(const Jid &, int, const QString &);
- void subscription(const Jid &, const QString &);
+ void presenceError(const Jid &, int, const TQString &);
+ void subscription(const Jid &, const TQString &);
void messageReceived(const Message &);
- void debugText(const QString &);
- void xmlIncoming(const QString &);
- void xmlOutgoing(const QString &);
+ void debugText(const TQString &);
+ void xmlIncoming(const TQString &);
+ void xmlOutgoing(const TQString &);
void groupChatJoined(const Jid &);
void groupChatLeft(const Jid &);
void groupChatPresence(const Jid &, const Status &);
- void groupChatError(const Jid &, int, const QString &);
+ void groupChatError(const Jid &, int, const TQString &);
void incomingJidLink();
@@ -643,13 +643,13 @@ namespace XMPP
//void streamCloseFinished();
void streamError(int);
void streamReadyRead();
- void streamIncomingXml(const QString &);
- void streamOutgoingXml(const QString &);
+ void streamIncomingXml(const TQString &);
+ void streamOutgoingXml(const TQString &);
void slotRosterRequestFinished();
// basic daemons
- void ppSubscription(const Jid &, const QString &);
+ void ppSubscription(const Jid &, const TQString &);
void ppPresence(const Jid &, const Status &);
void pmMessage(const Message &);
void prRoster(const Roster &);
@@ -661,7 +661,7 @@ namespace XMPP
class GroupChat;
private:
void cleanup();
- void distribute(const QDomElement &);
+ void distribute(const TQDomElement &);
void importRoster(const Roster &);
void importRosterItem(const RosterItem &);
void updateSelfPresence(const Jid &, const Status &);
@@ -702,7 +702,7 @@ namespace XMPP
LiveRosterItemPrivate *d;
};
- class LiveRoster : public QValueList<LiveRosterItem>
+ class LiveRoster : public TQValueList<LiveRosterItem>
{
public:
LiveRoster();