on xenial help sign in
Fix class name and some compile warnings
d08666fMichael Terry
plugins/AccountsService/plugin.cpp+1−1
@@ -29,7 +29,7 @@ static QObject *service_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
29 return new AccountsService();
29 return new AccountsService();
30}
30}
31
31
32−void LightDMPlugin::registerTypes(const char *uri)
32+void AccountsServicePlugin::registerTypes(const char *uri)
33{
33{
34 Q_ASSERT(uri == QLatin1String("AccountsService"));
34 Q_ASSERT(uri == QLatin1String("AccountsService"));
35 qmlRegisterSingletonType<AccountsService>(uri, 0, 1, "AccountsService", service_provider);
35 qmlRegisterSingletonType<AccountsService>(uri, 0, 1, "AccountsService", service_provider);
plugins/AccountsService/plugin.h+1−1
@@ -23,7 +23,7 @@
23#include <QtQml/QQmlEngine>
23#include <QtQml/QQmlEngine>
24#include <QtQml/QQmlExtensionPlugin>
24#include <QtQml/QQmlExtensionPlugin>
25
25
26−class LightDMPlugin : public QQmlExtensionPlugin
26+class AccountsServicePlugin : public QQmlExtensionPlugin
27{
27{
28 Q_OBJECT
28 Q_OBJECT
29 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
29 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
tests/mocks/AccountsService/AccountsService.cpp+2−2
@@ -23,11 +23,11 @@ AccountsService::AccountsService(QObject* parent)
23{
23{
24}
24}
25
25
26−QVariant AccountsService::getUserProperty(const QString &user, const QString &property)
26+QVariant AccountsService::getUserProperty(const QString &, const QString &)
27{
27{
28 return QVariant(false);
28 return QVariant(false);
29}
29}
30
30
31−void AccountsService::setUserProperty(const QString &user, const QString &property, const QVariant &value)
31+void AccountsService::setUserProperty(const QString &, const QString &, const QVariant &)
32{
32{
33}
33}