diff --git a/declarative/declarative.pro b/declarative/declarative.pro index dd7c01a..df985eb 100644 --- a/declarative/declarative.pro +++ b/declarative/declarative.pro @@ -21,7 +21,10 @@ SOURCES += plugin.cpp \ declarativessufeaturemodel.cpp \ declarativessudeviceinfo.cpp -qmldir.files = qmldir *.qml *.js +qmldir.files = qmldir *.qml *.js plugins.qmltypes qmldir.path = $$target.path INSTALLS += target qmldir + +qmltypes.commands = qmlplugindump -nonrelocatable Nemo.Ssu 1.0 > $$PWD/plugins.qmltypes +QMAKE_EXTRA_TARGETS += qmltypes diff --git a/declarative/plugins.qmltypes b/declarative/plugins.qmltypes new file mode 100644 index 0000000..ed8087e --- /dev/null +++ b/declarative/plugins.qmltypes @@ -0,0 +1,398 @@ +import QtQuick.tooling 1.2 + +// This file describes the plugin-supplied types contained in the library. +// It is used for QML tooling purposes only. +// +// This file was auto-generated by: +// 'qmlplugindump -nonrelocatable Nemo.Ssu 1.0' + +Module { + dependencies: [] + Component { + name: "DeclarativeSsuDeviceInfo" + prototype: "QObject" + exports: ["Nemo.Ssu/DeviceInfo 1.1"] + isCreatable: false + isSingleton: true + exportMetaObjectRevisions: [0] + Enum { + name: "DisplayType" + values: { + "DeviceManufacturer": 0, + "DeviceModel": 1, + "DeviceDesignation": 2 + } + } + Method { name: "deviceFamily"; type: "string" } + Method { + name: "deviceVariant" + type: "string" + Parameter { name: "fallback"; type: "bool" } + } + Method { name: "deviceVariant"; type: "string" } + Method { name: "deviceModel"; type: "string" } + Method { + name: "displayName" + type: "string" + Parameter { name: "type"; type: "int" } + } + } + Component { + name: "DeclarativeSsuFeatureModel" + prototype: "SsuFeatureModel" + exports: ["Nemo.Ssu/FeatureModel 1.0"] + exportMetaObjectRevisions: [0] + Method { + name: "get" + type: "QJSValue" + Parameter { name: "index"; type: "int" } + } + } + Component { + name: "QAbstractItemModel" + prototype: "QObject" + Enum { + name: "LayoutChangeHint" + values: { + "NoLayoutChangeHint": 0, + "VerticalSortHint": 1, + "HorizontalSortHint": 2 + } + } + Signal { + name: "dataChanged" + Parameter { name: "topLeft"; type: "QModelIndex" } + Parameter { name: "bottomRight"; type: "QModelIndex" } + Parameter { name: "roles"; type: "QVector" } + } + Signal { + name: "dataChanged" + Parameter { name: "topLeft"; type: "QModelIndex" } + Parameter { name: "bottomRight"; type: "QModelIndex" } + } + Signal { + name: "headerDataChanged" + Parameter { name: "orientation"; type: "Qt::Orientation" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "layoutChanged" + Parameter { name: "parents"; type: "QList" } + Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" } + } + Signal { + name: "layoutChanged" + Parameter { name: "parents"; type: "QList" } + } + Signal { name: "layoutChanged" } + Signal { + name: "layoutAboutToBeChanged" + Parameter { name: "parents"; type: "QList" } + Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" } + } + Signal { + name: "layoutAboutToBeChanged" + Parameter { name: "parents"; type: "QList" } + } + Signal { name: "layoutAboutToBeChanged" } + Signal { + name: "rowsAboutToBeInserted" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "rowsInserted" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "rowsAboutToBeRemoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "rowsRemoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "columnsAboutToBeInserted" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "columnsInserted" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "columnsAboutToBeRemoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { + name: "columnsRemoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "first"; type: "int" } + Parameter { name: "last"; type: "int" } + } + Signal { name: "modelAboutToBeReset" } + Signal { name: "modelReset" } + Signal { + name: "rowsAboutToBeMoved" + Parameter { name: "sourceParent"; type: "QModelIndex" } + Parameter { name: "sourceStart"; type: "int" } + Parameter { name: "sourceEnd"; type: "int" } + Parameter { name: "destinationParent"; type: "QModelIndex" } + Parameter { name: "destinationRow"; type: "int" } + } + Signal { + name: "rowsMoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "start"; type: "int" } + Parameter { name: "end"; type: "int" } + Parameter { name: "destination"; type: "QModelIndex" } + Parameter { name: "row"; type: "int" } + } + Signal { + name: "columnsAboutToBeMoved" + Parameter { name: "sourceParent"; type: "QModelIndex" } + Parameter { name: "sourceStart"; type: "int" } + Parameter { name: "sourceEnd"; type: "int" } + Parameter { name: "destinationParent"; type: "QModelIndex" } + Parameter { name: "destinationColumn"; type: "int" } + } + Signal { + name: "columnsMoved" + Parameter { name: "parent"; type: "QModelIndex" } + Parameter { name: "start"; type: "int" } + Parameter { name: "end"; type: "int" } + Parameter { name: "destination"; type: "QModelIndex" } + Parameter { name: "column"; type: "int" } + } + Method { name: "submit"; type: "bool" } + Method { name: "revert" } + Method { + name: "hasIndex" + type: "bool" + Parameter { name: "row"; type: "int" } + Parameter { name: "column"; type: "int" } + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { + name: "hasIndex" + type: "bool" + Parameter { name: "row"; type: "int" } + Parameter { name: "column"; type: "int" } + } + Method { + name: "index" + type: "QModelIndex" + Parameter { name: "row"; type: "int" } + Parameter { name: "column"; type: "int" } + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { + name: "index" + type: "QModelIndex" + Parameter { name: "row"; type: "int" } + Parameter { name: "column"; type: "int" } + } + Method { + name: "parent" + type: "QModelIndex" + Parameter { name: "child"; type: "QModelIndex" } + } + Method { + name: "sibling" + type: "QModelIndex" + Parameter { name: "row"; type: "int" } + Parameter { name: "column"; type: "int" } + Parameter { name: "idx"; type: "QModelIndex" } + } + Method { + name: "rowCount" + type: "int" + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { name: "rowCount"; type: "int" } + Method { + name: "columnCount" + type: "int" + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { name: "columnCount"; type: "int" } + Method { + name: "hasChildren" + type: "bool" + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { name: "hasChildren"; type: "bool" } + Method { + name: "data" + type: "QVariant" + Parameter { name: "index"; type: "QModelIndex" } + Parameter { name: "role"; type: "int" } + } + Method { + name: "data" + type: "QVariant" + Parameter { name: "index"; type: "QModelIndex" } + } + Method { + name: "setData" + type: "bool" + Parameter { name: "index"; type: "QModelIndex" } + Parameter { name: "value"; type: "QVariant" } + Parameter { name: "role"; type: "int" } + } + Method { + name: "setData" + type: "bool" + Parameter { name: "index"; type: "QModelIndex" } + Parameter { name: "value"; type: "QVariant" } + } + Method { + name: "headerData" + type: "QVariant" + Parameter { name: "section"; type: "int" } + Parameter { name: "orientation"; type: "Qt::Orientation" } + Parameter { name: "role"; type: "int" } + } + Method { + name: "headerData" + type: "QVariant" + Parameter { name: "section"; type: "int" } + Parameter { name: "orientation"; type: "Qt::Orientation" } + } + Method { + name: "fetchMore" + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { + name: "canFetchMore" + type: "bool" + Parameter { name: "parent"; type: "QModelIndex" } + } + Method { + name: "flags" + type: "Qt::ItemFlags" + Parameter { name: "index"; type: "QModelIndex" } + } + Method { + name: "match" + type: "QModelIndexList" + Parameter { name: "start"; type: "QModelIndex" } + Parameter { name: "role"; type: "int" } + Parameter { name: "value"; type: "QVariant" } + Parameter { name: "hits"; type: "int" } + Parameter { name: "flags"; type: "Qt::MatchFlags" } + } + Method { + name: "match" + type: "QModelIndexList" + Parameter { name: "start"; type: "QModelIndex" } + Parameter { name: "role"; type: "int" } + Parameter { name: "value"; type: "QVariant" } + Parameter { name: "hits"; type: "int" } + } + Method { + name: "match" + type: "QModelIndexList" + Parameter { name: "start"; type: "QModelIndex" } + Parameter { name: "role"; type: "int" } + Parameter { name: "value"; type: "QVariant" } + } + } + Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" } + Component { + name: "Ssu" + prototype: "QObject" + exports: ["Nemo.Ssu/Ssu 1.1"] + exportMetaObjectRevisions: [0] + Enum { + name: "DeviceModeFlags" + values: { + "DisableRepoManager": 1, + "RndMode": 2, + "ReleaseMode": 4, + "LenientMode": 8, + "UpdateMode": 16, + "AppInstallMode": 32 + } + } + Property { name: "registered"; type: "bool"; isReadonly: true } + Property { name: "deviceMode"; type: "DeviceModeFlags"; isReadonly: true } + Property { name: "domain"; type: "string"; isReadonly: true } + Signal { name: "done" } + Signal { name: "registrationStatusChanged" } + Signal { name: "credentialsChanged" } + Method { + name: "sendRegistration" + Parameter { name: "username"; type: "string" } + Parameter { name: "password"; type: "string" } + } + Method { + name: "updateCredentials" + Parameter { name: "force"; type: "bool" } + } + Method { name: "updateCredentials" } + Method { name: "updateStoreCredentials" } + Method { name: "error"; type: "bool" } + Method { name: "lastError"; type: "string" } + Method { name: "unregister" } + Method { name: "flavour"; type: "string" } + Method { name: "deviceMode"; type: "DeviceModeFlags" } + Method { name: "domain"; type: "string" } + Method { name: "isRegistered"; type: "bool" } + Method { name: "lastCredentialsUpdate"; type: "QDateTime" } + Method { + name: "release" + type: "string" + Parameter { name: "rnd"; type: "bool" } + } + Method { name: "release"; type: "string" } + Method { + name: "setDeviceMode" + Parameter { name: "mode"; type: "DeviceModeFlags" } + Parameter { name: "editMode"; type: "EditMode" } + } + Method { + name: "setDeviceMode" + Parameter { name: "mode"; type: "DeviceModeFlags" } + } + Method { + name: "setFlavour" + Parameter { name: "flavour"; type: "string" } + } + Method { + name: "setRelease" + Parameter { name: "release"; type: "string" } + Parameter { name: "rnd"; type: "bool" } + } + Method { + name: "setRelease" + Parameter { name: "release"; type: "string" } + } + Method { + name: "setDomain" + Parameter { name: "domain"; type: "string" } + } + Method { name: "useSslVerify"; type: "bool" } + } + Component { + name: "SsuFeatureModel" + prototype: "QAbstractListModel" + Property { name: "count"; type: "int"; isReadonly: true } + Method { name: "reload" } + Method { name: "count"; type: "int" } + } +} diff --git a/declarative/qmldir b/declarative/qmldir index 1d870c6..4df09c2 100644 --- a/declarative/qmldir +++ b/declarative/qmldir @@ -1,2 +1,3 @@ module Nemo.Ssu -plugin declarativessu \ No newline at end of file +plugin declarativessu +typeinfo plugins.qmltypes