defuze.me
Client
|
00001 #ifndef AUTHVIEW_H 00002 #define AUTHVIEW_H 00003 00004 #include <QWidget> 00005 #include <QCloseEvent> 00006 #include "remoteevent.hpp" 00007 00008 namespace Ui { 00009 class AuthView; 00010 } 00011 00012 namespace Network { 00017 class AuthView : public QWidget 00018 { 00019 Q_OBJECT 00020 00021 public: 00022 explicit AuthView(const RemoteEvent& event); 00023 ~AuthView(); 00024 00025 protected: 00026 void closeEvent(QCloseEvent *close_event); 00027 00028 private slots: 00029 void on_button_accept_clicked(); 00030 void on_button_reject_clicked(); 00031 00032 signals: 00033 void answered(RemoteSock*, unsigned, bool, bool); 00034 00035 private: 00036 Ui::AuthView *ui; 00037 bool accept, permanent; 00038 RemoteSock *remote; 00039 unsigned msgid; 00040 }; 00041 } 00042 00043 #endif // AUTHVIEW_H