summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.h')
-rw-r--r--Swift/QtUI/QtRosterHeader.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h
new file mode 100644
index 0000000..94b7249
--- /dev/null
+++ b/Swift/QtUI/QtRosterHeader.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <QWidget>
+#include <QLabel>
+#include <QPixmap>
+#include <QTextEdit>
+#include <QSize>
+#include <QToolBar>
+
+#include "Swiften/Elements/StatusShow.h"
+
+namespace Swift {
+ class QtStatusWidget;
+
+ class QtRosterHeader : public QWidget {
+ Q_OBJECT
+ public:
+ QtRosterHeader(QWidget* parent = NULL);
+ void setAvatar(const QString& path);
+ void setName(const QString& name);
+ void setStatusText(const QString& statusMessage);
+ QSize sizeHint() const;
+ signals:
+ void onChangeStatusRequest(StatusShow::Type showType, const QString &statusMessage);
+ private:
+ QLabel* avatarLabel_;
+ QLabel* nameLabel_;
+ QTextEdit* statusEdit_;
+ QToolBar* toolBar_;
+ QtStatusWidget* statusWidget_;
+ };
+}