swift
Loading...
Searching...
No Matches
main.cpp
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4#include <cstdlib>
5
6#include <QApplication>
7#include <QtGlobal>
8
10#include "gui/guiapplication.h"
11#include "misc/crashhandler.h"
12#include "misc/icons.h"
13#include "swiftdata.h"
15
16using namespace swift::misc;
17using namespace swift::core;
18using namespace swift::core::db;
19using namespace swift::gui;
20
21int main(int argc, char *argv[])
22{
23 QApplication qa(argc, argv);
24 Q_UNUSED(qa)
25
27
28 int r = 0;
29 {
30 // CGuiApplication a(CApplicationInfo::swiftMappingTool(), CApplicationInfo::MappingTool,
31 // CIcons::swiftDatabase48());
32 CSwiftDataApplication a; // application with contexts
34 {
35 return EXIT_FAILURE;
36 }
40
41 if (!a.start())
42 {
44 return EXIT_FAILURE;
45 }
46 CSwiftData w;
47 w.show();
48 r = a.exec();
49 }
50 return r;
51}
Specialized GUI application for swift pilot client.
swift data entry control (aka mapping tool)
Definition swiftdata.h:38
swift::misc::CStatusMessageList initAndStartWebDataServices(CWebReaderFlags::WebReader webReader, const db::CDatabaseReaderConfigList &dbReaderConfig)
Init web data services and start them.
bool parseCommandLineArgsAndLoadSetup()
Combined function that does a startup check, parses the command line arguments and loads the setup.
virtual bool start()
Start services, if not yet parsed call CApplication::parse.
int exec()
Finishes initialization and executes the event loop.
@ AllSwiftDbReaders
all swift data
static CDatabaseReaderConfigList forMappingTool()
Init for mapping tool.
void splashScreen(const QPixmap &pixmap)
Add a splash screen based on resource, empty means remove splash screen.
void gracefulShutdown()
Graceful shutdown.
void init()
Initialize and start crashpad handler process.
static CCrashHandler * instance()
Get singleton instance.
static const QPixmap & swiftDatabase256()
swift icon
Classes interacting with the swift database (aka "datastore").
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
GUI related classes.
Free functions in swift::misc.
void show()