@ -7,6 +7,7 @@
# include "network/UdpDataSender.h"
# include "network/UdpDataSender.h"
# include "model/DatabaseManager.h"
# include "model/DatabaseManager.h"
# define US_HOME_PATH "US_HOME"
# define CONNECT_LED(NAME) \
# define CONNECT_LED(NAME) \
connect ( panel , SIGNAL ( NAME # # LedChanged ( char ) ) , this , SLOT ( NAME # # LedHandle ( char ) ) ) ;
connect ( panel , SIGNAL ( NAME # # LedChanged ( char ) ) , this , SLOT ( NAME # # LedHandle ( char ) ) ) ;
@ -21,8 +22,7 @@ MainViewModel::MainViewModel(QObject* parent) : ViewModel(parent)
connect ( network , & UdpDataSender : : dataReady , panel , & Console : : newData ) ;
connect ( network , & UdpDataSender : : dataReady , panel , & Console : : newData ) ;
connect ( network , & UdpDataSender : : probeSlotsDataReady , panel , & Console : : newData ) ;
connect ( network , & UdpDataSender : : probeSlotsDataReady , panel , & Console : : newData ) ;
//Read probe ids from the database
QString databasePath = QString ( " %1/%2 " ) . arg ( qgetenv ( US_HOME_PATH ) , _dbPath ) ;
QString databasePath = " ../../../US_Home/database/ProbeProperties.db " ;
DatabaseManager manager ( databasePath ) ;
DatabaseManager manager ( databasePath ) ;
QList < QVariant > globalNames = manager . getProbeNames ( ) ;
QList < QVariant > globalNames = manager . getProbeNames ( ) ;