wpa_gui: Convert strings to use tr() in user-visible text
[mech_eap.git] / wpa_supplicant / wpa_gui-qt4 / wpagui.h
index 5aa7a9a..a9b8cd3 100644 (file)
@@ -18,6 +18,7 @@
 #include <QSystemTrayIcon>
 #include <QObject>
 #include "ui_wpagui.h"
+#include "addinterface.h"
 
 class UserDataRequest;
 
@@ -27,7 +28,7 @@ class WpaGui : public QMainWindow, public Ui::WpaGui
        Q_OBJECT
 
 public:
-       WpaGui(QWidget *parent = 0, const char *name = 0,
+       WpaGui(QApplication *app, QWidget *parent = 0, const char *name = 0,
               Qt::WFlags fl = 0);
        ~WpaGui();
 
@@ -39,6 +40,9 @@ public:
        virtual void disableNetwork(const QString &sel);
        virtual int getNetworkDisabled(const QString &sel);
        void setBssFromScan(const QString &bssid);
+#ifndef QT_NO_SESSIONMANAGER
+       void saveState();
+#endif
 
 public slots:
        virtual void parse_argv();
@@ -73,11 +77,17 @@ public slots:
                                     int sec, const QString &msg);
        virtual void showTrayStatus();
        virtual void wpsDialog();
+       virtual void peersDialog();
        virtual void tabChanged(int index);
        virtual void wpsPbc();
        virtual void wpsGeneratePin();
        virtual void wpsApPinChanged(const QString &text);
        virtual void wpsApPin();
+#ifdef CONFIG_NATIVE_WINDOWS
+       virtual void startService();
+       virtual void stopService();
+#endif /* CONFIG_NATIVE_WINDOWS */
+       virtual void addInterface();
 
 protected slots:
        virtual void languageChange();
@@ -86,6 +96,7 @@ protected slots:
 
 private:
        ScanResults *scanres;
+       Peers *peers;
        bool networkMayHaveChanged;
        char *ctrl_iface;
        EventHistory *eh;
@@ -118,6 +129,21 @@ private:
        QString bssFromScan;
 
        void stopWpsRun(bool success);
+
+#ifdef CONFIG_NATIVE_WINDOWS
+       QAction *fileStartServiceAction;
+       QAction *fileStopServiceAction;
+
+       bool serviceRunning();
+#endif /* CONFIG_NATIVE_WINDOWS */
+
+       QAction *addInterfaceAction;
+       AddInterface *add_iface;
+
+       bool connectedToService;
+
+       QApplication *app;
+       bool inTray;
 };
 
 #endif /* WPAGUI_H */