summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtNameWidget.h')
-rw-r--r--Swift/QtUI/QtNameWidget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtNameWidget.h b/Swift/QtUI/QtNameWidget.h
index 3225879..460cc9a 100644
--- a/Swift/QtUI/QtNameWidget.h
+++ b/Swift/QtUI/QtNameWidget.h
@@ -1,8 +1,8 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2014 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#pragma once
@@ -17,12 +17,13 @@ namespace Swift {
public:
QtNameWidget(SettingsProvider* settings, QWidget *parent);
void setNick(const QString& text);
void setJID(const QString& jid);
+ void setOnline(const bool isOnline);
signals:
void onChangeNickRequest();
private:
void updateText();
@@ -36,9 +37,10 @@ namespace Swift {
SettingsProvider* settings;
Mode mode;
QtElidingLabel* textLabel;
QString jid;
QString nick;
+ bool isOnline_;
};
}