Refactoring/service logging functional (#793)

This commit is contained in:
Garegin Harutyunyan
2024-08-08 19:13:49 +04:00
committed by GitHub
parent 1343d10aa7
commit 264d77463d
8 changed files with 38 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ class IpcInterface
SLOT( void cleanUp() );
SLOT( void setLogsEnabled(bool enabled) );
SLOT( void clearLogs() );
SLOT( bool createTun(const QString &dev, const QString &subnet) );
SLOT( bool deleteTun(const QString &dev) );

View File

@@ -162,6 +162,10 @@ void IpcServer::cleanUp()
Logger::cleanUp();
}
void IpcServer::clearLogs() {
Logger::clearLogs();
}
bool IpcServer::createTun(const QString &dev, const QString &subnet)
{
return Router::createTun(dev, subnet);

View File

@@ -26,6 +26,7 @@ public:
virtual bool checkAndInstallDriver() override;
virtual QStringList getTapList() override;
virtual void cleanUp() override;
virtual void clearLogs() override;
virtual void setLogsEnabled(bool enabled) override;
virtual bool createTun(const QString &dev, const QString &subnet) override;
virtual bool deleteTun(const QString &dev) override;