Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Main Page
Namespaces
Classes
Files
File List
File Members
client
main.cpp
Go to the documentation of this file.
1
#include "
toolbar/toolbar.h
"
2
#include "
clientapp/clientapp.h
"
3
#include "
util/util.h
"
4
5
// Remove when we don't support Ubuntu 20.04 anymore
6
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
7
#define endl Qt::endl
8
#endif
9
10
/* instantiates the ClientApp, handles some extra parameters and starts the
11
* main-loop of ClientApp */
12
int
main
(
int
argc,
char
** argv)
13
{
14
15
ClientApp
app(argc, argv);
16
17
/* here we handle the arguments that were not handled by ClientApp */
18
for
(
const
auto
&a : app.
arguments
()) {
19
if
(a ==
"--usage"
|| a ==
"--help"
) {
20
qStdout
() <<
"Usage: pvsclient [--exam-mode] [--auto|--session=xxx|\"\"]"
<<
endl
;
21
exit(0);
22
}
else
if
(a.contains(
"pvsclient"
)) {
23
/* do nothing */
24
}
else
{
25
qStdout
() <<
"Unknown argument: "
<< a <<
endl
;
26
exit(1);
27
}
28
}
29
return
ClientApp::exec();
30
}
ClientApp
Definition:
clientapp.h:22
toolbar.h
ClientApp::arguments
virtual QStringList arguments()
Definition:
clientapp.cpp:79
endl
#define endl
Definition:
main.cpp:7
clientapp.h
util.h
qStdout
QTextStream & qStdout()
Definition:
util.h:17
main
int main(int argc, char **argv)
Definition:
main.cpp:12
Generated on Tue Jul 9 2024 12:00:03 for Pool Video Switch v2 by
1.8.8