KWayland

main.cpp
1 /*
2  SPDX-FileCopyrightText: 2016 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #include "testserver.h"
7 
8 #include <QCoreApplication>
9 
10 int main(int argc, char *argv[])
11 {
12  QCoreApplication a(argc, argv);
13  auto arguments = QCoreApplication::arguments();
14  // get rid of our own application path
15  arguments.removeFirst();
16  if (arguments.size() < 1) {
17  return 1;
18  }
19 
20  TestServer *server = new TestServer(&a);
21  server->init();
22  server->startTestApp(arguments.takeFirst(), arguments);
23 
24  return a.exec();
25 }
QStringList arguments()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.