-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
36 lines (35 loc) · 1003 Bytes
/
main.cpp
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
/**
* @file main.cpp
* @brief Main source file
* @author mnxoid
*
* Copyright 2014 by mnxoid,
*
* This software is the confidential and proprietary information
* of mnxoid ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with mnxoid.
**/
#include <QApplication>
#include "mainwindow.h"
#include "windowmanager.h"
#include <X11/Xlib.h>
#include "cameracapture.h"
WindowManager WMgr; //!< WindowManager instance
int isCapturing = 0; //!< Determines, whether capturing session is active
CameraCapture* cc; //!< CameraCapture instance
int session = 0; //!< Connection SESSION_ID
int main(int argc, char *argv[])
{
XInitThreads();
QApplication a(argc, argv);
MainWindow w;
AdminScreen as;
UserScreen us;
ExUserScreen xu;
GoodsMgmtScreen gs;
w.show();
WMgr.Init(&w,&as,&us,&xu,&gs);
return a.exec();
}