aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/statusWidget.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
commitda88f5f0bb5e73bc69bf7ed3962691622b1ae4f9 (patch)
treec3686f7649785a2bfcc2c637a1588acdb8a721e8 /examples/GuiClient/statusWidget.h
parent3431f5a37174b7eb8490672686db68df2b48e35f (diff)
downloadqxmpp-da88f5f0bb5e73bc69bf7ed3962691622b1ae4f9.tar.gz
add Gui Client example
Diffstat (limited to 'examples/GuiClient/statusWidget.h')
-rw-r--r--examples/GuiClient/statusWidget.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/GuiClient/statusWidget.h b/examples/GuiClient/statusWidget.h
new file mode 100644
index 00000000..17609342
--- /dev/null
+++ b/examples/GuiClient/statusWidget.h
@@ -0,0 +1,29 @@
+#ifndef STATUSWIDGET_H
+#define STATUSWIDGET_H
+#include "ui_statusWidget.h"
+#include "QXmppPresence.h"
+
+class statusWidget : public QWidget, public Ui::statusWidgetClass
+{
+ Q_OBJECT
+
+public:
+ statusWidget(QWidget* parent = 0);
+ void setDisplayName(const QString& name);
+ void setStatusText(const QString& statusText);
+ void setPresenceAndStatusType(QXmppPresence::Type presenceType,
+ QXmppPresence::Status::Type statusType);
+ void setAvatar(const QImage&);
+
+private slots:
+ void presenceMenuTriggered();
+ void avatarSelection();
+
+signals:
+ void statusTextChanged(const QString&);
+ void presenceTypeChanged(QXmppPresence::Type);
+ void presenceStatusTypeChanged(QXmppPresence::Status::Type);
+ void avatarChanged(const QImage&);
+};
+
+#endif // STATUSWIDGET_H