updated linux build
This commit is contained in:
parent
26524dd93a
commit
9997fa8f3e
24 changed files with 3257 additions and 7 deletions
38
service/server/router_linux.h
Normal file
38
service/server/router_linux.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef ROUTERLINUX_H
|
||||
#define ROUTERLINUX_H
|
||||
|
||||
#include <QTimer>
|
||||
#include <QString>
|
||||
#include <QSettings>
|
||||
#include <QHash>
|
||||
#include <QDebug>
|
||||
#include <QObject>
|
||||
|
||||
/**
|
||||
* @brief The Router class - General class for handling ip routing
|
||||
*/
|
||||
class RouterLinux : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static RouterLinux& Instance();
|
||||
|
||||
bool routeAdd(const QString &ip, const QString &gw, const int &sock);
|
||||
int routeAddList(const QString &gw, const QStringList &ips);
|
||||
bool clearSavedRoutes();
|
||||
bool routeDelete(const QString &ip, const QString &gw, const int &sock);
|
||||
bool routeDeleteList(const QString &gw, const QStringList &ips);
|
||||
void flushDns();
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
RouterLinux() {}
|
||||
RouterLinux(RouterLinux const &) = delete;
|
||||
RouterLinux& operator= (RouterLinux const&) = delete;
|
||||
|
||||
QList<QString> m_addedRoutes;
|
||||
};
|
||||
|
||||
#endif // ROUTERLINUX_H
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue