Akonadi

rds/main.cpp
1 /***************************************************************************
2  * SPDX-FileCopyrightText: 2010 Volker Krause <[email protected]> *
3  * *
4  * SPDX-License-Identifier: LGPL-2.0-or-later *
5  ***************************************************************************/
6 
7 #include "bridgeconnection.h"
8 #include "bridgeserver.h"
9 
10 #include <shared/akapplication.h>
11 
12 #include <QDebug>
13 
14 int main(int argc, char **argv)
15 {
16  AkCoreApplication app(argc, argv);
17  app.setDescription(QStringLiteral("Akonadi Remote Debugging Server\nUse for debugging only."));
18  app.parseCommandLine();
19  try {
20  new BridgeServer<AkonadiBridgeConnection>(31415);
21  new BridgeServer<DBusBridgeConnection>(31416);
22  return app.exec();
23  } catch (const std::exception &e) {
24  qDebug("Caught exception: %s", e.what());
25  return EXIT_FAILURE;
26  } catch (...) {
27  qDebug("Caught unknown exception - fix the program!");
28  return EXIT_FAILURE;
29  }
30 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.