Debian Codegraph @

online-accounts/lib/qml/Lomiri/OnlineAccounts/plugin.cpp

raw symbols SCIP
1 /*
2 * This file is part of OnlineAccountsModule
3 *
4 * Copyright (C) 2015 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License version 3, as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "plugin.h"cxx . . $ `<file>/online-accounts/lib/qml/Lomiri/OnlineAccounts/plugin.h`/
22
23 #include "account.h"cxx . . $ `<file>/online-accounts/lib/qml/Lomiri/OnlineAccounts/account.h`/
24 #include "account_model.h"cxx . . $ `<file>/online-accounts/lib/qml/Lomiri/OnlineAccounts/account_model.h`/
25
26 #include <QDebug>
27 #include <QQmlComponent>
28 #ifdef LOMIRI_ONLINEACCOUNTS_UBUNTU_COMPAT
29 #include <QLoggingCategory>
30
31 Q_LOGGING_CATEGORY(ldCategory, "lomiri.deprecations", QtWarningMsg)
32 #endif
33
34 using namespace OnlineAccountsModule;
35
36 void Plugincxx . . $ OnlineAccountsModule/Plugin#::registerTypescxx . . $ OnlineAccountsModule/Plugin#registerTypes(85c52e162fed56f9).(const char* uri)
37 {
38 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;
39
40 qmlRegisterTypecxx . . $ qmlRegisterType(f18a5d83a8a5ac9a).<AccountModelcxx . . $ OnlineAccountsModule/AccountModel#>(uri, 2, 0, "AccountModel");
41 qmlRegisterUncreatableTypecxx . . $ qmlRegisterUncreatableType(1cba59732ddb4f3e).<Accountcxx . . $ OnlineAccountsModule/Account#>(uri, 2, 0, "Account",
42 "Cannot be created from QML"cxx . . $ QString#QString(85c52e162fed56f9).);
43 qmlRegisterUncreatableTypecxx . . $ qmlRegisterUncreatableType(1cba59732ddb4f3e).<OnlineAccountscxx . . $ OnlineAccounts/::Servicecxx . . $ OnlineAccounts/Service#>(uri, 2, 0, "Service",
44 "Cannot be created from QML"cxx . . $ QString#QString(85c52e162fed56f9).);
45
46 #ifdef LOMIRI_ONLINEACCOUNTS_UBUNTU_COMPAT
47 if (uri == QLatin1String("Ubuntu.OnlineAccounts")) {
48 qCDebug(ldCategory, "Use of the Ubuntu.OnlineAccounts namespace is "
49 "deprecated, please consider updating your "
50 "applications to import Lomiri.OnlineAccounts "
51 "instead.");
52 }
53 #endif
54 }