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/jingle/libjingle/talk/examples/call/presenceouttask.cc | |
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/jingle/libjingle/talk/examples/call/presenceouttask.cc')
-rw-r--r-- | kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc index 7fd68120..a15a6c83 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc @@ -42,27 +42,27 @@ bool ToString(const T &t, return !oss.fail(); } -XmppReturntqStatus -PresenceOutTask::Send(const tqStatus & s) { +XmppReturnStatus +PresenceOutTask::Send(const Status & s) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; - stanza_.reset(TranslatetqStatus(s)); + stanza_.reset(TranslateStatus(s)); return XMPP_RETURN_OK; } -XmppReturntqStatus -PresenceOutTask::SendDirected(const Jid & j, const tqStatus & s) { +XmppReturnStatus +PresenceOutTask::SendDirected(const Jid & j, const Status & s) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; - XmlElement * presence = TranslatetqStatus(s); + XmlElement * presence = TranslateStatus(s); presence->AddAttr(TQN_TO, j.Str()); stanza_.reset(presence); return XMPP_RETURN_OK; } -XmppReturntqStatus PresenceOutTask::SendProbe(const Jid & jid) { +XmppReturnStatus PresenceOutTask::SendProbe(const Jid & jid) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; @@ -82,7 +82,7 @@ PresenceOutTask::ProcessStart() { } XmlElement * -PresenceOutTask::TranslatetqStatus(const tqStatus & s) { +PresenceOutTask::TranslateStatus(const Status & s) { XmlElement * result = new XmlElement(TQN_PRESENCE); if (!s.available()) { result->AddAttr(TQN_TYPE, STR_UNAVAILABLE); @@ -92,19 +92,19 @@ PresenceOutTask::TranslatetqStatus(const tqStatus & s) { result->AddAttr(TQN_TYPE, STR_INVISIBLE); } - if (s.show() != tqStatus::SHOW_ONLINE && s.show() != tqStatus::SHOW_OFFLINE) { + if (s.show() != Status::SHOW_ONLINE && s.show() != Status::SHOW_OFFLINE) { result->AddElement(new XmlElement(TQN_SHOW)); switch (s.show()) { default: result->AddText(STR_SHOW_AWAY, 1); break; - case tqStatus::SHOW_XA: + case Status::SHOW_XA: result->AddText(STR_SHOW_XA, 1); break; - case tqStatus::SHOW_DND: + case Status::SHOW_DND: result->AddText(STR_SHOW_DND, 1); break; - case tqStatus::SHOW_CHAT: + case Status::SHOW_CHAT: result->AddText(STR_SHOW_CHAT, 1); break; } |