2021-07-13 22:24:30 -07:00
|
|
|
#ifndef TOAST_H
|
|
|
|
#define TOAST_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "wifidialog.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class toast;
|
|
|
|
}
|
|
|
|
|
|
|
|
class toast : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-04-04 21:47:15 -07:00
|
|
|
QString className = this->metaObject()->className();
|
2021-07-13 22:24:30 -07:00
|
|
|
explicit toast(QWidget *parent = nullptr);
|
|
|
|
~toast();
|
|
|
|
void centerToast();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::toast *ui;
|
|
|
|
wifiDialog *wifiDialogWindow;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void showWifiDialog(int networksFound);
|
2021-07-14 15:23:54 -07:00
|
|
|
void exitSlot(int exitCode);
|
|
|
|
void refreshScreenNative();
|
|
|
|
void updateWifiIcon(int mode);
|
|
|
|
void showToastNative(QString messageToDisplay);
|
|
|
|
void closeIndefiniteToastNative();
|
2021-07-13 22:24:30 -07:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void updateWifiIconSig(int mode);
|
2021-07-14 15:23:54 -07:00
|
|
|
void refreshScreen();
|
|
|
|
void showToast(QString messageToDisplay);
|
|
|
|
void closeIndefiniteToast();
|
2021-07-13 22:24:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TOAST_H
|