Support custom parameters (#76)

* Add the setting icon

* Add support for custom parameters

* Ignore auto generated files

* Update README.md
This commit is contained in:
Kevin Yue
2021-08-15 12:47:02 +08:00
committed by GitHub
parent c8942984a8
commit b4f9cfae67
13 changed files with 221 additions and 6 deletions

View File

@@ -3,10 +3,12 @@
#include "gpservice_interface.h"
#include "portalconfigresponse.h"
#include "settingsdialog.h"
#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QPushButton>
QT_BEGIN_NAMESPACE
namespace Ui { class GPClient; }
@@ -23,6 +25,9 @@ public:
void activate();
private slots:
void onSettingsButtonClicked();
void onSettingsAccepted();
void on_connectButton_clicked();
void on_portalInput_returnPressed();
void on_portalInput_editingFinished();
@@ -62,10 +67,15 @@ private:
QAction *clearAction;
QAction *quitAction;
SettingsDialog *settingsDialog;
QPushButton *settingsButton;
bool isQuickConnect { false };
bool isSwitchingGateway { false };
PortalConfigResponse portalConfig;
void setupSettings();
void initSystemTrayIcon();
void initVpnStatus();
void populateGatewayMenu();