diff options
Diffstat (limited to 'HomeScreenAppFrameworkBinderAGL')
-rw-r--r-- | HomeScreenAppFrameworkBinderAGL/src/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/HomeScreenAppFrameworkBinderAGL/src/main.cpp b/HomeScreenAppFrameworkBinderAGL/src/main.cpp index 81f6ec9..2d88537 100644 --- a/HomeScreenAppFrameworkBinderAGL/src/main.cpp +++ b/HomeScreenAppFrameworkBinderAGL/src/main.cpp @@ -15,19 +15,23 @@ */ #include <QCoreApplication> +#include <QCommandLineParser> #include "homescreenappframeworkbinderagl.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - // used for application settings (QSettings) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreenAppFrameworkBinderAGL"); - QCoreApplication::setApplicationVersion("0.6.0"); + QCoreApplication::setApplicationVersion("0.7.0"); - qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str()); + QCommandLineParser parser; + parser.setApplicationDescription("AGL Application Framwork Proxy - see wwww... for more details"); + parser.addHelpOption(); + parser.addVersionOption(); + parser.process(a); qDBusRegisterMetaType<AppInfo>(); qDBusRegisterMetaType<QList<AppInfo> >(); |