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