diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
commit | 089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch) | |
tree | ce014fb2326a80fcfafa2362b7ff88486aa17c96 /kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp | |
parent | 83677e35509b4dafac63b76995652bdf3b49f209 (diff) | |
download | tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp')
-rw-r--r-- | kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp index 9e742d10..5700c343 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp @@ -697,7 +697,7 @@ bool Message::fromStanza(const Stanza &s, int timeZoneOffset) d->spooled = true; } else { - d->timeStamp = TQDateTime::tqcurrentDateTime(); + d->timeStamp = TQDateTime::currentDateTime(); d->spooled = false; } @@ -801,100 +801,100 @@ bool Subscription::fromString(const TQString &s) //--------------------------------------------------------------------------- -// tqStatus +// Status //--------------------------------------------------------------------------- -tqStatus::tqStatus(const TQString &show, const TQString &status, int priority, bool available) +Status::Status(const TQString &show, const TQString &status, int priority, bool available) { v_isAvailable = available; v_show = show; v_status = status; v_priority = priority; - v_timeStamp = TQDateTime::tqcurrentDateTime(); + v_timeStamp = TQDateTime::currentDateTime(); v_isInvisible = false; ecode = -1; } -tqStatus::~tqStatus() +Status::~Status() { } -bool tqStatus::hasError() const +bool Status::hasError() const { return (ecode != -1); } -void tqStatus::setError(int code, const TQString &str) +void Status::setError(int code, const TQString &str) { ecode = code; estr = str; } -void tqStatus::setIsAvailable(bool available) +void Status::setIsAvailable(bool available) { v_isAvailable = available; } -void tqStatus::setIsInvisible(bool invisible) +void Status::setIsInvisible(bool invisible) { v_isInvisible = invisible; } -void tqStatus::setPriority(int x) +void Status::setPriority(int x) { v_priority = x; } -void tqStatus::setShow(const TQString & _show) +void Status::setShow(const TQString & _show) { v_show = _show; } -void tqStatus::settqStatus(const TQString & _status) +void Status::setStatus(const TQString & _status) { v_status = _status; } -void tqStatus::setTimeStamp(const TQDateTime & _timestamp) +void Status::setTimeStamp(const TQDateTime & _timestamp) { v_timeStamp = _timestamp; } -void tqStatus::setKeyID(const TQString &key) +void Status::setKeyID(const TQString &key) { v_key = key; } -void tqStatus::setXSigned(const TQString &s) +void Status::setXSigned(const TQString &s) { v_xsigned = s; } -void tqStatus::setSongTitle(const TQString & _songtitle) +void Status::setSongTitle(const TQString & _songtitle) { v_songTitle = _songtitle; } -void tqStatus::setCapsNode(const TQString & _capsNode) +void Status::setCapsNode(const TQString & _capsNode) { v_capsNode = _capsNode; } -void tqStatus::setCapsVersion(const TQString & _capsVersion) +void Status::setCapsVersion(const TQString & _capsVersion) { v_capsVersion = _capsVersion; } -void tqStatus::setCapsExt(const TQString & _capsExt) +void Status::setCapsExt(const TQString & _capsExt) { v_capsExt = _capsExt; } -bool tqStatus::isAvailable() const +bool Status::isAvailable() const { return v_isAvailable; } -bool tqStatus::isAway() const +bool Status::isAway() const { if(v_show == "away" || v_show == "xa" || v_show == "dnd") return true; @@ -902,66 +902,66 @@ bool tqStatus::isAway() const return false; } -bool tqStatus::isInvisible() const +bool Status::isInvisible() const { return v_isInvisible; } -int tqStatus::priority() const +int Status::priority() const { return v_priority; } -const TQString & tqStatus::show() const +const TQString & Status::show() const { return v_show; } -const TQString & tqStatus::status() const +const TQString & Status::status() const { return v_status; } -TQDateTime tqStatus::timeStamp() const +TQDateTime Status::timeStamp() const { return v_timeStamp; } -const TQString & tqStatus::keyID() const +const TQString & Status::keyID() const { return v_key; } -const TQString & tqStatus::xsigned() const +const TQString & Status::xsigned() const { return v_xsigned; } -const TQString & tqStatus::songTitle() const +const TQString & Status::songTitle() const { return v_songTitle; } -const TQString & tqStatus::capsNode() const +const TQString & Status::capsNode() const { return v_capsNode; } -const TQString & tqStatus::capsVersion() const +const TQString & Status::capsVersion() const { return v_capsVersion; } -const TQString & tqStatus::capsExt() const +const TQString & Status::capsExt() const { return v_capsExt; } -int tqStatus::errorCode() const +int Status::errorCode() const { return ecode; } -const TQString & tqStatus::errorString() const +const TQString & Status::errorString() const { return estr; } @@ -970,7 +970,7 @@ const TQString & tqStatus::errorString() const //--------------------------------------------------------------------------- // Resource //--------------------------------------------------------------------------- -Resource::Resource(const TQString &name, const tqStatus &stat) +Resource::Resource(const TQString &name, const Status &stat) { v_name = name; v_status = stat; @@ -990,7 +990,7 @@ int Resource::priority() const return v_status.priority(); } -const tqStatus & Resource::status() const +const Status & Resource::status() const { return v_status; } @@ -1000,7 +1000,7 @@ void Resource::setName(const TQString & _name) v_name = _name; } -void Resource::settqStatus(const tqStatus & _status) +void Resource::setStatus(const Status & _status) { v_status = _status; } |