Skip to content
toast.h 736 B
Newer Older
#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();