/* * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class QtSubscriptionRequestWindow : public QDialog { Q_OBJECT public: static QtSubscriptionRequestWindow* getWindow(std::shared_ptr event, QWidget* parent = nullptr); ~QtSubscriptionRequestWindow(); std::shared_ptr getEvent(); private slots: void handleYes(); void handleNo(); void handleDefer(); private: QtSubscriptionRequestWindow(std::shared_ptr event, QWidget* parent = nullptr); static QList windows_; std::shared_ptr event_; /*QPushButton* yesButton_; QPushButton* noButton_; QPushButton* deferButton_;*/ }; }