mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Add support to switch gateway
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -i gpservice_adaptor.h -a :gpservice_adaptor.cpp gpservice.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
*/
|
||||
|
||||
#include "gpservice_adaptor.h"
|
||||
#include <QtCore/QMetaObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
|
||||
/*
|
||||
* Implementation of adaptor class GPServiceAdaptor
|
||||
*/
|
||||
|
||||
GPServiceAdaptor::GPServiceAdaptor(QObject *parent)
|
||||
: QDBusAbstractAdaptor(parent)
|
||||
{
|
||||
// constructor
|
||||
setAutoRelaySignals(true);
|
||||
}
|
||||
|
||||
GPServiceAdaptor::~GPServiceAdaptor()
|
||||
{
|
||||
// destructor
|
||||
}
|
||||
|
||||
void GPServiceAdaptor::connect(const QString &server, const QString &username, const QString &passwd)
|
||||
{
|
||||
// handle method call com.yuezk.qt.GPService.connect
|
||||
QMetaObject::invokeMethod(parent(), "connect", Q_ARG(QString, server), Q_ARG(QString, username), Q_ARG(QString, passwd));
|
||||
}
|
||||
|
||||
void GPServiceAdaptor::disconnect()
|
||||
{
|
||||
// handle method call com.yuezk.qt.GPService.disconnect
|
||||
QMetaObject::invokeMethod(parent(), "disconnect");
|
||||
}
|
||||
|
||||
int GPServiceAdaptor::status()
|
||||
{
|
||||
// handle method call com.yuezk.qt.GPService.status
|
||||
int out0;
|
||||
QMetaObject::invokeMethod(parent(), "status", Q_RETURN_ARG(int, out0));
|
||||
return out0;
|
||||
}
|
||||
|
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -a gpservice_adaptor.h: gpservice.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
* before re-generating it.
|
||||
*/
|
||||
|
||||
#ifndef GPSERVICE_ADAPTOR_H
|
||||
#define GPSERVICE_ADAPTOR_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QByteArray;
|
||||
template<class T> class QList;
|
||||
template<class Key, class Value> class QMap;
|
||||
class QString;
|
||||
class QStringList;
|
||||
class QVariant;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
/*
|
||||
* Adaptor class for interface com.yuezk.qt.GPService
|
||||
*/
|
||||
class GPServiceAdaptor: public QDBusAbstractAdaptor
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "com.yuezk.qt.GPService")
|
||||
Q_CLASSINFO("D-Bus Introspection", ""
|
||||
" <interface name=\"com.yuezk.qt.GPService\">\n"
|
||||
" <signal name=\"connected\"/>\n"
|
||||
" <signal name=\"disconnected\"/>\n"
|
||||
" <signal name=\"logAvailable\">\n"
|
||||
" <arg type=\"s\" name=\"log\"/>\n"
|
||||
" </signal>\n"
|
||||
" <method name=\"connect\">\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"server\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"username\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"passwd\"/>\n"
|
||||
" </method>\n"
|
||||
" <method name=\"disconnect\"/>\n"
|
||||
" <method name=\"status\">\n"
|
||||
" <arg direction=\"out\" type=\"i\"/>\n"
|
||||
" </method>\n"
|
||||
" </interface>\n"
|
||||
"")
|
||||
public:
|
||||
GPServiceAdaptor(QObject *parent);
|
||||
virtual ~GPServiceAdaptor();
|
||||
|
||||
public: // PROPERTIES
|
||||
public Q_SLOTS: // METHODS
|
||||
void connect(const QString &server, const QString &username, const QString &passwd);
|
||||
void disconnect();
|
||||
int status();
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void connected();
|
||||
void disconnected();
|
||||
void logAvailable(const QString &log);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user