-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
72 lines (65 loc) · 2.37 KB
/
main.cpp
File metadata and controls
72 lines (65 loc) · 2.37 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
*
Copyright (C) 2016 Gabriele Salvato
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "gamedirector.h"
/*!
* \mainpage The Score Panels
* \section intro Introduction
*
* This is the Server-Side of the "Score Panels System" aimed to replace
* the very basics score displays adopted in many sport halls.
*
* You can have many clients running and they will be all handled by
* this Server.
*
* It realize a ScorePanel Server that can be run, at present,
* from Linux (tested on UBUNTU 18.04), Raspbian (tested on Raspberry
* Pi3B with Raspbian) or Android.
*
* It does not require any configuration apart to guarantee that the
* computer is connected to the same network of the "Score Panels".
*
*
* \section install Installation
* For Ubuntu or Raspberry you have to simply copy the executable(s)
* from the following url:
* <a href="https://github.com/salvato/ScorePanel_Executables"> link to the Apps</a>
*
* The program depends on some qt5 libraries that can be already installed and on some other that can be missing.
* To check which libraries are missing you may issue the following command:
*
* <pre>ldd ./scoreController</pre>
*
* If you want to show Slides and/or Movies in your controlled Score Panels, you
* have to create two directories in which place the files. At present only
* jpeg, png and mp4 formats are allowed.
*
* \section Another Section
* \subsection sub1 A subsection: How to
*
*/
int
main(int argc, char *argv[]) {
//qputenv("QT_MEDIA_BACKEND", "d3d11va");
int iresult = 0;
QString sVersion = QString("1.2");
QApplication::setApplicationVersion(sVersion);
// Create the main application
auto* pApp = new GameDirector(argc, argv);
// Start the event loop and waits unil exit() is called
iresult = pApp->exec();
delete pApp;
return iresult;
}