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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;