File indexing completed on 2024-04-21 04:56:31
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Aleix Pol <aleixpol@kde.org> 0003 * SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <admin@leinir.dk> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "kaccountsdeclarativeplugin.h" 0009 0010 #include "accountsmodel.h" 0011 #include "providersmodel.h" 0012 #include "servicesmodel.h" 0013 0014 #include "accountservicetogglejob.h" 0015 #include "changeaccountdisplaynamejob.h" 0016 #include "createaccountjob.h" 0017 #include "removeaccountjob.h" 0018 0019 #include <qqml.h> 0020 0021 void KAccountsDeclarativePlugin::registerTypes(const char *uri) 0022 { 0023 // Version 1.0 0024 // Consider this registration deprecated - use the one named ...Job below instead 0025 qmlRegisterType<KAccounts::CreateAccountJob>(uri, 1, 0, "CreateAccount"); 0026 0027 // Version 1.1 0028 // Consider this registration deprecated - use the one named ...Job below instead 0029 qmlRegisterType<KAccounts::AccountServiceToggleJob>(uri, 1, 1, "AccountServiceToggle"); 0030 0031 // Version 1.2 0032 qmlRegisterType<KAccounts::AccountsModel>(uri, 1, 2, "AccountsModel"); 0033 qmlRegisterType<KAccounts::ProvidersModel>(uri, 1, 2, "ProvidersModel"); 0034 qmlRegisterType<KAccounts::ServicesModel>(uri, 1, 2, "ServicesModel"); 0035 0036 qmlRegisterType<KAccounts::AccountServiceToggleJob>(uri, 1, 2, "AccountServiceToggleJob"); 0037 qmlRegisterType<KAccounts::ChangeAccountDisplayNameJob>(uri, 1, 2, "ChangeAccountDisplayNameJob"); 0038 qmlRegisterType<KAccounts::CreateAccountJob>(uri, 1, 2, "CreateAccountJob"); 0039 qmlRegisterType<KAccounts::RemoveAccountJob>(uri, 1, 2, "RemoveAccountJob"); 0040 }