5#include <QCommandLineParser>
36int main(
int argc,
char *argv[])
53 if (installMode) initDbCacheFromResourceFileIfRequired(a);
63 const int res = a.
exec();
64 if (res != EXIT_SUCCESS || !launcher.shouldStartAppDetached())
69 const bool s = launcher.startDetached();
70 return s ? EXIT_SUCCESS : EXIT_FAILURE;
swift::misc::CStatusMessageList startCoreFacadeWithoutContexts()
Starts the core facade without any contexts.
bool isParserOptionSet(const QString &option) const
Delegates to QCommandLineParser::isSet.
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.
void addDBusAddressOption()
CMD line argument for DBus address.
bool hasWebDataServices() const
Web data services available?
bool addParserOption(const QCommandLineOption &option)
virtual bool start()
Start services, if not yet parsed call CApplication::parse.
CWebDataServices * getWebDataServices() const
Get the web data services.
int exec()
Finishes initialization and executes the event loop.
Encapsulates reading data from web sources.
QDateTime getLatestDbEntityCacheTimestamp() const
Latest DB object timestamp, or null if there is no such timestamp.
swift::misc::CStatusMessageList initDbCachesFromLocalResourceFiles(bool inBackground)
Init caches from local DB files.
@ AllSwiftDbReaders
all swift data
static CDatabaseReaderConfigList forLauncher()
Init for launcher.
GUI application, a specialized version of swift::core::CApplication for GUI applications.
void gracefulShutdown()
Graceful shutdown.
static const QString & swiftLauncher()
Name of swift launcher.
static const QPixmap & swiftLauncher1024()
swift icon
Classes interacting with the swift database (aka "datastore").
Backend services of the swift project, like dealing with the network or the simulators.
Free functions in swift::misc.
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
QDateTime currentDateTimeUtc()
bool isValid() const const