-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
47 lines (36 loc) · 1.31 KB
/
Copy pathmain.cpp
File metadata and controls
47 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "mainwindow.h"
#include <QApplication>
#include "ioservicepool.h"
#include <boost/asio.hpp>
#include "tcpclient.h"
#include "messagehandler.h"
#include "deviceinteractor.h"
#include "qtdeviceinteractor.h"
#include "qtdevicepresenter.h"
#include "qtsettingsdeviceconfigurationstore.h"
#include "qtserverpresenter.h"
#include "serverinteractor.h"
#include "qtserverinteractor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QApplication::setApplicationName("OSC Bridge 2");
QApplication::setOrganizationName("Raghav Narula Software Co.");
MainWindow Window;
boost::asio::io_service IOService;
IOServicePool IOPool(&IOService, 2);
IOPool.Start();
QTSettingsDeviceConfigurationStore Store;
QTDevicePresenter Presenter(Window);
DeviceInteractor Interactor(Presenter, Store);
QTDeviceInteractor QTInteractor(Interactor, Window, IOService);
// Interactor.InitFromStore(IOService);
MessageHandler MessageHandler(IOService, Interactor);
QTServerPresenter ServerPresenter(Window);
ServerInteractor SInteractor(ServerPresenter, Store);
QTServerInteractor QTSInteractor(SInteractor, Window, IOService, MessageHandler);
// SInteractor.InitFromStore(IOService, MessageHandler);
Window.InitFromStore(Store);
Window.show();
return a.exec();
}