print the gpservice logs

This commit is contained in:
Kevin Yue 2022-03-03 21:30:33 +08:00
parent e6383916c7
commit 11dc5920ef
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@ GPClient::GPClient(QWidget *parent, IVpn *vpn)
QObject *ov = dynamic_cast<QObject*>(vpn); QObject *ov = dynamic_cast<QObject*>(vpn);
connect(ov, SIGNAL(connected()), this, SLOT(onVPNConnected())); connect(ov, SIGNAL(connected()), this, SLOT(onVPNConnected()));
connect(ov, SIGNAL(disconnected()), this, SLOT(onVPNDisconnected())); connect(ov, SIGNAL(disconnected()), this, SLOT(onVPNDisconnected()));
connect(ov, SIGNAL(error(const &QString)), this, SLOT(onVPNError(const QString&))); connect(ov, SIGNAL(error(QString)), this, SLOT(onVPNError(QString)));
connect(ov, SIGNAL(logAvailable(const &QString)), this, SLOT(onVPNLogAvailable(const QString&))); connect(ov, SIGNAL(logAvailable(QString)), this, SLOT(onVPNLogAvailable(QString)));
// Initiallize the context menu of system tray. // Initiallize the context menu of system tray.
initSystemTrayIcon(); initSystemTrayIcon();

View File

@ -27,7 +27,7 @@ public:
signals: // SIGNALS signals: // SIGNALS
void connected(); void connected();
void disconnected(); void disconnected();
void error(const QString &errorMessage); void error(QString errorMessage);
void logAvailable(const QString &log); void logAvailable(QString log);
}; };
#endif #endif