Skip to content
wifidialog.h 1.02 KiB
Newer Older
Nicolas Mailloux's avatar
Nicolas Mailloux committed
#ifndef WIFIDIALOG_H
#define WIFIDIALOG_H

#include <QDialog>
#include <QModelIndex>

#include "generaldialog.h"
Nicolas Mailloux's avatar
Nicolas Mailloux committed

namespace Ui {
class wifiDialog;
}

class wifiDialog : public QDialog
{
    Q_OBJECT

public:
    explicit wifiDialog(QWidget *parent = nullptr);
    ~wifiDialog();
    QString wifiNetworksList;
    QString itemText;
    QModelIndex index;
    void checkWifiNetworks();
    void printWifiNetworks();
    void centerDialog();
Nicolas Mailloux's avatar
Nicolas Mailloux committed

private:
    Ui::wifiDialog *ui;
    QTimer * wifiListTimer;
    generalDialog * generalDialogWindow;

signals:
    void wifiNetworksListReady(int networksFound);
    void quit(int exitCode);
    void refreshScreen();
    void updateWifiIconSig(int mode);
    void showToast(QString messageToDisplay);
    void closeIndefiniteToast();

private slots:
    void on_cancelBtn_clicked();
    void on_connectBtn_clicked();
    void refreshScreenNative();
    void updateWifiIcon(int mode);
    void showToastNative(QString messageToDisplay);
    void closeIndefiniteToastNative();
Nicolas Mailloux's avatar
Nicolas Mailloux committed
};

#endif // WIFIDIALOG_H