File indexing completed on 2024-06-16 04:50:21
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2010 Volker Krause <vkrause@kde.org> * 0003 * * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later * 0005 ***************************************************************************/ 0006 0007 #include "bridgeconnection.h" 0008 #include "bridgeserver.h" 0009 0010 #include "shared/akapplication.h" 0011 0012 #include <QDebug> 0013 0014 int main(int argc, char **argv) 0015 { 0016 AkCoreApplication app(argc, argv); 0017 app.setDescription(QStringLiteral("Akonadi Remote Debugging Server\nUse for debugging only.")); 0018 app.parseCommandLine(); 0019 try { 0020 new BridgeServer<AkonadiBridgeConnection>(31415); 0021 new BridgeServer<DBusBridgeConnection>(31416); 0022 return app.exec(); 0023 } catch (const std::exception &e) { 0024 qDebug("Caught exception: %s", e.what()); 0025 return EXIT_FAILURE; 0026 } catch (...) { 0027 qDebug("Caught unknown exception - fix the program!"); 0028 return EXIT_FAILURE; 0029 } 0030 }