| 1 | /* |
| 2 | * Copyright (C) 2014 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of OnlineAccountsPlugin. |
| 7 | * |
| 8 | * OnlineAccountsClient is free software: you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU Lesser General Public License as |
| 10 | * published by the Free Software Foundation, either version 3 of the |
| 11 | * License, or (at your option) any later version. |
| 12 | * |
| 13 | * OnlineAccountsClient is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Lesser General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public License |
| 19 | * along with OnlineAccountsClient. If not, see |
| 20 | * <http://www.gnu.org/licenses/>. |
| 21 | */ |
| 22 | |
| 23 | #include "plugin.h"cxx . . $ `<file>/online-accounts-plugins/lib/module/plugin.h`/ |
| 24 | |
| 25 | #include "config.hpp"cxx . . $ `<file>/build/online-accounts-plugins/lib/module/config.hpp`/ |
| 26 | #include "qml-loopback-server.h"cxx . . $ `<file>/online-accounts-plugins/lib/module/qml-loopback-server.h`/ |
| 27 | |
| 28 | #include <libintl.h> |
| 29 | #include <LomiriOnlineAccountsPlugin/application-manager.h>cxx . . $ `<file>/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/application-manager.h`/ |
| 30 | #include <LomiriOnlineAccountsPlugin/request-handler.h>cxx . . $ `<file>/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/request-handler.h`/ |
| 31 | #include <QDebug> |
| 32 | #include <QQmlComponent> |
| 33 | #include <QQmlContext> |
| 34 | #include <QQmlEngine> |
| 35 | |
| 36 | using namespace OnlineAccountsPlugin; |
| 37 | |
| 38 | void Plugincxx . . $ OnlineAccountsPlugin/Plugin#::initializeEnginecxx . . $ OnlineAccountsPlugin/Plugin#initializeEngine(68a49fb6b837e584).(QQmlEnginecxx . . $ QQmlEngine# *engine, const char *uri) |
| 39 | { |
| 40 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(uri); |
| 41 | |
| 42 | stdcxx . . $ std/::stringcxx . . $ std/string# localeDir = i18nDirectorycxx . . $ i18nDirectory(4365c3963150523e).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 43 | bindtextdomain("lomiri-online-accounts", localeDir.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 44 | bind_textdomain_codeset("lomiri-online-accounts", "UTF-8"); |
| 45 | |
| 46 | QQmlContextcxx . . $ QQmlContext#* context = engine->rootContextcxx . . $ QQmlEngine#rootContext(84d4a38f80cd3330).(); |
| 47 | context->setContextPropertycxx . . $ QQmlContext#setContextProperty(6b24f83d17022bd9).("ApplicationManager"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 48 | OnlineAccountsUicxx . . $ OnlineAccountsUi/::ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::instancecxx . . $ OnlineAccountsUi/ApplicationManager#instance(e61827766a1125e9).()); |
| 49 | } |
| 50 | |
| 51 | void Plugincxx . . $ OnlineAccountsPlugin/Plugin#::registerTypescxx . . $ OnlineAccountsPlugin/Plugin#registerTypes(85c52e162fed56f9).(const char *uri) |
| 52 | { |
| 53 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). uri; |
| 54 | |
| 55 | qmlRegisterTypecxx . . $ qmlRegisterType(f18a5d83a8a5ac9a).<SignOnUicxx . . $ SignOnUi/::RequestHandlercxx . . $ SignOnUi/RequestHandler#>(uri, 1, 0, "RequestHandler"); |
| 56 | qmlRegisterTypecxx . . $ qmlRegisterType(f18a5d83a8a5ac9a).<QmlLoopbackServercxx . . $ OnlineAccountsPlugin/QmlLoopbackServer#>(uri, 1, 0, "LoopbackServer"); |
| 57 | } |