summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h')
-rw-r--r--kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
index 264ed725..cab9312f 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
@@ -26,9 +26,9 @@
namespace buzz {
-class tqStatus {
+class Status {
public:
- tqStatus() :
+ Status() :
pri_(0),
show_(SHOW_NONE),
available_(false),
@@ -39,7 +39,7 @@ public:
is_google_client_(false),
feedback_probation_(false) {};
- ~tqStatus() {}
+ ~Status() {}
// These are arranged in "priority order", i.e., if we see
// two statuses at the same priority but with different Shows,
@@ -86,7 +86,7 @@ public:
void set_feedback_probation(bool f) { feedback_probation_ = f; }
void set_sent_time(const std::string& time) { sent_time_ = time; }
- void UpdateWith(const tqStatus & new_value) {
+ void UpdateWith(const Status & new_value) {
if (!new_value.know_capabilities()) {
bool k = know_capabilities();
bool i = is_google_client();
@@ -105,15 +105,15 @@ public:
}
}
- bool HasQuiettqStatus() const {
+ bool HasQuietStatus() const {
if (status_.empty())
return false;
- return !(QuiettqStatus().empty());
+ return !(QuietStatus().empty());
}
// Knowledge of other clients' silly automatic status strings -
// Don't show these.
- std::string QuiettqStatus() const {
+ std::string QuietStatus() const {
if (jid_.resource().find("Psi") != std::string::npos) {
if (status_ == "Online" ||
status_.find("Auto Status") != std::string::npos)
@@ -123,18 +123,18 @@ public:
if (status_ == "Sorry, I ran out for a bit!")
return STR_EMPTY;
}
- return TrimtqStatus(status_);
+ return TrimStatus(status_);
}
- std::string ExplicittqStatus() const {
- std::string result = QuiettqStatus();
+ std::string ExplicitStatus() const {
+ std::string result = QuietStatus();
if (result.empty()) {
- result = ShowtqStatus();
+ result = ShowStatus();
}
return result;
}
- std::string ShowtqStatus() const {
+ std::string ShowStatus() const {
std::string result;
if (!available()) {
result = "Offline";
@@ -159,7 +159,7 @@ public:
return result;
}
- static std::string TrimtqStatus(const std::string & st) {
+ static std::string TrimStatus(const std::string & st) {
std::string s(st);
int j = 0;
bool collapsing = true;