1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__zigbeemanager/main.cpp

36 lines
783 B
C++
Raw Normal View History

2023-04-08 15:06:36 +02:00
#include "main.h"
using namespace std;
2023-04-20 13:42:00 +02:00
extern ZigateBackend zigateBkd;
2023-04-08 15:06:36 +02:00
int debugLevel = DEBUG | INFO | WARNING | ERROR;
2023-04-20 13:42:00 +02:00
//ResponseList responseList;
2023-04-29 15:15:19 +02:00
SerialManager serialManager;
QMap <QString, BackEnds> backends;
2023-04-08 15:06:36 +02:00
int main(int argc, char *argv[])
{
2023-04-29 15:15:19 +02:00
QApplication a(argc, argv);
2023-04-08 15:06:36 +02:00
QCoreApplication::setOrganizationName("zigbeemanager");
QCoreApplication::setApplicationName("zigbeemanager");
2023-04-20 13:42:00 +02:00
initBackends();
2023-04-29 15:15:19 +02:00
//QObject::connect(&zigateBkd, SIGNAL(readyRead()), &zigateBkd, SLOT(getData()));
return a.exec();
2023-04-08 15:06:36 +02:00
}
2023-04-20 13:42:00 +02:00
bool initBackends()
{
2023-04-29 15:15:19 +02:00
/* foreach (backend, backends)
{
temp = new ResponseProperties();
temp->manager = &defaultManager;
responseListIndex.insert(var, temp) ;
}*/
2023-04-20 13:42:00 +02:00
zigateBkd.initBackend();
return false;
}