-
Giacomo Strangolino authored8693ab75
main.cpp 1.05 KiB
#include <quapplication.h>
#include "acdc-delay.h"
// cumbia
#include <cumbiapool.h>
#include <cuthreadfactoryimpl.h>
#include <qthreadseventbridgefactory.h>
// cumbia
#define VERSION "1.0"
int main(int argc, char *argv[])
{
QuApplication qu_app( argc, argv );
qu_app.setOrganizationName("Elettra");
qu_app.setApplicationName("Acdcdelay");
QString version(VERSION);
qu_app.setApplicationVersion(version);
qu_app.setProperty("author", "Giacomo");
qu_app.setProperty("mail", "giacomo.strangolino@elettra.eu");
qu_app.setProperty("phone", "375 8073");
qu_app.setProperty("office", "T2PT025");
qu_app.setProperty("hwReferent", "$HW_REFERENT$"); /* name of the referent that provides the device server */
CumbiaPool *cu_p = new CumbiaPool();
Acdcdelay *w = new Acdcdelay(cu_p, NULL);
w->show();
// exec application loop
int ret = qu_app.exec();
// delete resources and return
delete w;
for(std::string n : cu_p->names())
if(cu_p->get(n))
delete cu_p->get(n);
return ret;
}