#include "main.h" using namespace std; extern ZigateBackend zigateBkd; int debugLevel = DEBUG | INFO | WARNING | ERROR; //ResponseList responseList; SerialManager serialManager; QMap 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; }