summary refs log tree commit diff
path: root/include/LogoutDialog.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-06-02 18:04:51 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-06-02 18:04:51 +0300
commitb8c8fed655bd54b9bc805fd599577e87a239788d (patch)
tree070faafcc3921f2e14db26d882df83d65ee4e811 /include/LogoutDialog.h
parentDon't mark messages from local user as unread (diff)
downloadnheko-b8c8fed655bd54b9bc805fd599577e87a239788d.tar.xz
Show confirmation dialog on logout
Minor stylistic refactoring

closes #29
Diffstat (limited to 'include/LogoutDialog.h')
-rw-r--r--include/LogoutDialog.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/LogoutDialog.h b/include/LogoutDialog.h
new file mode 100644

index 00000000..a2d313c7 --- /dev/null +++ b/include/LogoutDialog.h
@@ -0,0 +1,36 @@ +/* + * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + +#include <QFrame> + +#include "FlatButton.h" + +class LogoutDialog : public QFrame +{ + Q_OBJECT +public: + explicit LogoutDialog(QWidget *parent = nullptr); + +signals: + void closing(bool isLoggingOut); + +private: + FlatButton *confirmBtn_; + FlatButton *cancelBtn_; +};