mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
40 lines
736 B
C++
40 lines
736 B
C++
#ifndef TOAST_H
|
|
#define TOAST_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "wifidialog.h"
|
|
|
|
namespace Ui {
|
|
class toast;
|
|
}
|
|
|
|
class toast : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit toast(QWidget *parent = nullptr);
|
|
~toast();
|
|
void centerToast();
|
|
|
|
private:
|
|
Ui::toast *ui;
|
|
wifiDialog *wifiDialogWindow;
|
|
|
|
private slots:
|
|
void showWifiDialog(int networksFound);
|
|
void exitSlot(int exitCode);
|
|
void refreshScreenNative();
|
|
void updateWifiIcon(int mode);
|
|
void showToastNative(QString messageToDisplay);
|
|
void closeIndefiniteToastNative();
|
|
|
|
signals:
|
|
void updateWifiIconSig(int mode);
|
|
void refreshScreen();
|
|
void showToast(QString messageToDisplay);
|
|
void closeIndefiniteToast();
|
|
};
|
|
|
|
#endif // TOAST_H
|