Added linux build and some UI minor fixes

This commit is contained in:
Yury Shuvakin
2025-07-03 21:13:16 +09:00
parent 6cf2010c08
commit 978f6ee04d
9 changed files with 44 additions and 35 deletions

View File

@@ -23,7 +23,6 @@
#include "SocketCanDriver.h"
#include "SocketCanInterface.h"
#include <core/Backend.h>
#include <driver/GenericCanSetupPage.h>
#include <sys/socket.h>
#include <linux/if.h>
@@ -38,10 +37,8 @@
#include <string.h>
SocketCanDriver::SocketCanDriver(Backend &backend)
: CanDriver(backend),
setupPage(new GenericCanSetupPage())
: CanDriver(backend)
{
QObject::connect(&backend, SIGNAL(onSetupDialogCreated(SetupDialog&)), setupPage, SLOT(onSetupDialogCreated(SetupDialog&)));
}
SocketCanDriver::~SocketCanDriver() {

View File

@@ -27,7 +27,6 @@
class SocketCanInterface;
class SetupDialogInterfacePage;
class GenericCanSetupPage;
class SocketCanDriver: public CanDriver {
public:
@@ -39,5 +38,4 @@ public:
private:
SocketCanInterface *createOrUpdateInterface(int index, QString name);
GenericCanSetupPage *setupPage;
};

View File

@@ -8,5 +8,5 @@ HEADERS += \
$$PWD/SocketCanInterface.h \
$$PWD/SocketCanDriver.h
FORMS +=
INCLUDEPATH += /usr/include/libnl3
LIBS += -lnl-3 -lnl-route-3