summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSubscriptionRequestWindow.h')
-rw-r--r--Swift/QtUI/QtSubscriptionRequestWindow.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSubscriptionRequestWindow.h b/Swift/QtUI/QtSubscriptionRequestWindow.h
new file mode 100644
index 0000000..692b45b
--- /dev/null
+++ b/Swift/QtUI/QtSubscriptionRequestWindow.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include <QDialog>
+
+#include <boost/shared_ptr.hpp>
+
+#include "Swiften/Events/SubscriptionRequestEvent.h"
+
+namespace Swift {
+ class QtSubscriptionRequestWindow : public QDialog {
+ Q_OBJECT
+ public:
+ static QtSubscriptionRequestWindow* getWindow(boost::shared_ptr<SubscriptionRequestEvent> event, QWidget* parent = 0);
+ ~QtSubscriptionRequestWindow();
+ boost::shared_ptr<SubscriptionRequestEvent> getEvent();
+ private slots:
+ void handleYes();
+ void handleNo();
+ void handleDefer();
+ private:
+ QtSubscriptionRequestWindow(boost::shared_ptr<SubscriptionRequestEvent> event, QWidget* parent = 0);
+ static QList<QtSubscriptionRequestWindow*> windows_;
+ boost::shared_ptr<SubscriptionRequestEvent> event_;
+ /*QPushButton* yesButton_;
+ QPushButton* noButton_;
+ QPushButton* deferButton_;*/
+ };
+}