reservedtimepopup.h
566 Bytes
#ifndef RESERVEDTIMEPOPUP_H
#define RESERVEDTIMEPOPUP_H
#include <QWidget>
#include <QTimer>
#include <QDateTime>
namespace Ui {
class ReservedTimePopup;
}
class ReservedTimePopup : public QWidget
{
Q_OBJECT
public:
explicit ReservedTimePopup(QWidget *parent, QDateTime target);
~ReservedTimePopup();
private:
Ui::ReservedTimePopup *ui;
QDateTime target;
QTimer checkTimeTimer;
private slots:
void checkTime();
void on_cancelButton_clicked();
signals:
void timeout();
void canceled();
};
#endif // RESERVEDTIMEPOPUP_H