44 lines
763 B
C++
Executable File
44 lines
763 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <AssetManagement/asm.hpp>
|
|
|
|
class QTimer;
|
|
|
|
namespace Ui { class LogoutInformationDialog; }
|
|
|
|
namespace LtsLogin
|
|
{
|
|
|
|
class LogoutInformationDialog : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
LogoutInformationDialog(int timeOut, AssetManagement::ShutdownAction shutdownAction, QWidget *parent = nullptr);
|
|
~LogoutInformationDialog();
|
|
|
|
private slots:
|
|
void onTimerTimeout();
|
|
void acceptClicked();
|
|
void closeClicked();
|
|
|
|
private:
|
|
void setText(const QString &text);
|
|
void setCloseButtonText(int secsLeft);
|
|
|
|
Ui::LogoutInformationDialog *m_ui;
|
|
QTimer *m_timer;
|
|
int m_timeOut;
|
|
int m_secsLeft;
|
|
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override final;
|
|
};
|
|
|
|
}
|