#include "appLogReaderApp.h" #include "MainViewModel.h" #include appLogReaderApp::appLogReaderApp(QObject *parent) : CoreApp(parent) { QCoreApplication::setApplicationName(QStringLiteral("appLogReader")); QCoreApplication::setApplicationVersion(QStringLiteral("1.0.0")); QCoreApplication::setOrganizationName(QStringLiteral("Example Organization")); } void appLogReaderApp::performRegistrations() { //if you are using a qt resource (e.g. "applogreadercore.qrc"), initialize it here Q_INIT_RESOURCE(applogreadercore); } int appLogReaderApp::startApp(const QStringList &arguments) { QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(); //add more options //shows help or version automatically if(!autoParse(parser, arguments)) return EXIT_SUCCESS; //show a viewmodel to complete the startup show(); return EXIT_SUCCESS; }