#include "../src2/applicationlauncher.h"
#include "../src2/statusbarmodel.h"
#include "../src2/applicationmodel.h"
+#include "../src2/usermanagement.h"
+
+void noOutput(QtMsgType, const QMessageLogContext &, const QString &)
+{
+}
int main(int argc, char *argv[])
{
parser.setApplicationDescription("AGL HomeScreen - see wwww... for more details");
parser.addHelpOption();
parser.addVersionOption();
+ QCommandLineOption quietOption(QStringList() << "q" << "quiet",
+ QCoreApplication::translate("main", "Be quiet. No outputs."));
+ parser.addOption(quietOption);
parser.process(a);
+ if (parser.isSet(quietOption))
+ {
+ qInstallMessageHandler(noOutput);
+ }
+
qDBusRegisterMetaType<AppInfo>();
qDBusRegisterMetaType<QList<AppInfo> >();
qmlRegisterType<StatusBarModel>("HomeScreen", 1, 0, "StatusBarModel");
QQmlApplicationEngine engine;
-
LayoutHandler* layoutHandler = new LayoutHandler();
HomeScreenControlInterface* hsci = new HomeScreenControlInterface();
engine.rootContext()->setContextProperty("layoutHandler", layoutHandler);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
+ QObject *home = engine.rootObjects().first()->findChild<QObject *>("Home");
+ QObject *shortcutArea = engine.rootObjects().first()->findChild<QObject *>("ShortcutArea");
+ QObject *statusArea = engine.rootObjects().first()->findChild<QObject *>("StatusArea");
+ UserManagement userManagement(home, shortcutArea, statusArea);
+ Q_UNUSED(userManagement);
return a.exec();
}