mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
* add inih * add configuration file for gpservice * Disable the UI configuration for extra args * remove VERSION_SUFFIX * remove ppa-publish.sh * Use Git repo as the source for PKGBUILD * remove VERSION_SUFFIX * Use Git repo as the source for PKGBUILD * add .install for PKGBUILD * add configuration file * Fix cmake * Fix cmake * Disable snap job * update AUR packaging * Disable the UI configuration for extra args * improve packaging script * update README.md * restart gpservice after package upgrading
25 lines
627 B
C++
25 lines
627 B
C++
#ifndef VPN_H
|
|
#define VPN_H
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QString>
|
|
|
|
class IVpn
|
|
{
|
|
public:
|
|
virtual ~IVpn() = default;
|
|
|
|
virtual void connect(const QString &preferredServer, const QList<QString> &servers, const QString &username, const QString &passwd) = 0;
|
|
virtual void disconnect() = 0;
|
|
virtual int status() = 0;
|
|
|
|
// signals: // SIGNALS
|
|
// virtual void connected();
|
|
// virtual void disconnected();
|
|
// virtual void error(const QString &errorMessage);
|
|
// virtual void logAvailable(const QString &log);
|
|
};
|
|
|
|
Q_DECLARE_INTERFACE(IVpn, "IVpn") // define this out of namespace scope
|
|
|
|
#endif
|