Fix QML revisions registration for 5.6.
And update plugins.qmltypes file. Change-Id: I9b3cbeda4c8a0ce88a88f5a16fae6834dc8363d7 Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com> Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -70,8 +70,8 @@ public:
|
||||
qmlRegisterType<QDeclarativeAttenuationModelInverse>(uri, 1, 0, "AttenuationModelInverse");
|
||||
|
||||
// Dynamically adding audio engine related objects is only supported through revision 1
|
||||
qmlRegisterRevision<QDeclarativeAudioEngine, 1>(uri, 1, 1);
|
||||
qmlRegisterRevision<QDeclarativeSound, 1>(uri, 1, 1);
|
||||
qmlRegisterType<QDeclarativeAudioEngine, 1>(uri, 1, 1, "AudioEngine");
|
||||
qmlRegisterType<QDeclarativeSound, 1>(uri, 1, 1, "Sound");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import QtQuick.tooling 1.1
|
||||
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 with the command 'qmlplugindump -notrelocatable QtAudioEngine 1.0'.
|
||||
// This file was auto-generated by:
|
||||
// 'qmlplugindump -nonrelocatable QtAudioEngine 1.0'
|
||||
|
||||
Module {
|
||||
dependencies: []
|
||||
Component {
|
||||
name: "QDeclarativeAttenuationModel"
|
||||
prototype: "QObject"
|
||||
@@ -50,8 +52,11 @@ Module {
|
||||
name: "QDeclarativeAudioEngine"
|
||||
defaultProperty: "bank"
|
||||
prototype: "QObject"
|
||||
exports: ["QtAudioEngine/AudioEngine 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
exports: [
|
||||
"QtAudioEngine/AudioEngine 1.0",
|
||||
"QtAudioEngine/AudioEngine 1.1"
|
||||
]
|
||||
exportMetaObjectRevisions: [0, 1]
|
||||
Property { name: "bank"; type: "QObject"; isList: true; isReadonly: true }
|
||||
Property { name: "categories"; type: "QObject"; isReadonly: true; isPointer: true }
|
||||
Property { name: "samples"; type: "QObject"; isReadonly: true; isPointer: true }
|
||||
@@ -70,6 +75,26 @@ Module {
|
||||
Signal { name: "liveInstanceCountChanged" }
|
||||
Signal { name: "isLoadingChanged" }
|
||||
Signal { name: "finishedLoading" }
|
||||
Method {
|
||||
name: "addAudioSample"
|
||||
revision: 1
|
||||
Parameter { type: "QDeclarativeAudioSample"; isPointer: true }
|
||||
}
|
||||
Method {
|
||||
name: "addSound"
|
||||
revision: 1
|
||||
Parameter { type: "QDeclarativeSound"; isPointer: true }
|
||||
}
|
||||
Method {
|
||||
name: "addAudioCategory"
|
||||
revision: 1
|
||||
Parameter { type: "QDeclarativeAudioCategory"; isPointer: true }
|
||||
}
|
||||
Method {
|
||||
name: "addAttenuationModel"
|
||||
revision: 1
|
||||
Parameter { type: "QDeclarativeAttenuationModel"; isPointer: true }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QDeclarativeAudioListener"
|
||||
@@ -111,8 +136,8 @@ Module {
|
||||
name: "QDeclarativeSound"
|
||||
defaultProperty: "playVariationlist"
|
||||
prototype: "QObject"
|
||||
exports: ["QtAudioEngine/Sound 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
exports: ["QtAudioEngine/Sound 1.0", "QtAudioEngine/Sound 1.1"]
|
||||
exportMetaObjectRevisions: [0, 1]
|
||||
Enum {
|
||||
name: "PlayType"
|
||||
values: {
|
||||
@@ -196,6 +221,11 @@ Module {
|
||||
Parameter { name: "pitch"; type: "double" }
|
||||
}
|
||||
Method { name: "newInstance"; type: "QDeclarativeSoundInstance*" }
|
||||
Method {
|
||||
name: "addPlayVariation"
|
||||
revision: 1
|
||||
Parameter { type: "QDeclarativePlayVariation"; isPointer: true }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QDeclarativeSoundCone"
|
||||
|
||||
@@ -116,7 +116,8 @@ public:
|
||||
qmlRegisterRevision<QDeclarativeCamera, 2>(uri, 5, 5);
|
||||
|
||||
// 5.6 types
|
||||
qmlRegisterRevision<QDeclarativeAudio, 1>(uri, 5, 6);
|
||||
qmlRegisterType<QDeclarativeAudio, 1>(uri, 5, 6, "Audio");
|
||||
qmlRegisterType<QDeclarativeAudio, 1>(uri, 5, 6, "MediaPlayer");
|
||||
qmlRegisterType<QDeclarativePlaylist>(uri, 5, 6, "Playlist");
|
||||
qmlRegisterType<QDeclarativePlaylistItem>(uri, 5, 6, "PlaylistItem");
|
||||
|
||||
|
||||
@@ -146,8 +146,13 @@ Module {
|
||||
Component {
|
||||
name: "QDeclarativeAudio"
|
||||
prototype: "QObject"
|
||||
exports: ["QtMultimedia/Audio 5.0", "QtMultimedia/MediaPlayer 5.0"]
|
||||
exportMetaObjectRevisions: [0, 0]
|
||||
exports: [
|
||||
"QtMultimedia/Audio 5.0",
|
||||
"QtMultimedia/Audio 5.6",
|
||||
"QtMultimedia/MediaPlayer 5.0",
|
||||
"QtMultimedia/MediaPlayer 5.6"
|
||||
]
|
||||
exportMetaObjectRevisions: [0, 1, 0, 1]
|
||||
Enum {
|
||||
name: "Status"
|
||||
values: {
|
||||
@@ -212,6 +217,7 @@ Module {
|
||||
}
|
||||
}
|
||||
Property { name: "source"; type: "QUrl" }
|
||||
Property { name: "playlist"; revision: 1; type: "QDeclarativePlaylist"; isPointer: true }
|
||||
Property { name: "loops"; type: "int" }
|
||||
Property { name: "playbackState"; type: "PlaybackState"; isReadonly: true }
|
||||
Property { name: "autoPlay"; type: "bool" }
|
||||
@@ -237,6 +243,7 @@ Module {
|
||||
Property { name: "mediaObject"; type: "QObject"; isReadonly: true; isPointer: true }
|
||||
Property { name: "availability"; type: "Availability"; isReadonly: true }
|
||||
Property { name: "audioRole"; revision: 1; type: "AudioRole" }
|
||||
Signal { name: "playlistChanged"; revision: 1 }
|
||||
Signal { name: "loopCountChanged" }
|
||||
Signal { name: "paused" }
|
||||
Signal { name: "stopped" }
|
||||
@@ -1228,6 +1235,137 @@ Module {
|
||||
Property { name: "defaultCamera"; type: "QJSValue"; isReadonly: true }
|
||||
Property { name: "availableCameras"; type: "QJSValue"; isReadonly: true }
|
||||
}
|
||||
Component {
|
||||
name: "QDeclarativePlaylist"
|
||||
defaultProperty: "items"
|
||||
prototype: "QAbstractListModel"
|
||||
exports: ["QtMultimedia/Playlist 5.6"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Enum {
|
||||
name: "PlaybackMode"
|
||||
values: {
|
||||
"CurrentItemOnce": 0,
|
||||
"CurrentItemInLoop": 1,
|
||||
"Sequential": 2,
|
||||
"Loop": 3,
|
||||
"Random": 4
|
||||
}
|
||||
}
|
||||
Enum {
|
||||
name: "Error"
|
||||
values: {
|
||||
"NoError": 0,
|
||||
"FormatError": 1,
|
||||
"FormatNotSupportedError": 2,
|
||||
"NetworkError": 3,
|
||||
"AccessDeniedError": 4
|
||||
}
|
||||
}
|
||||
Property { name: "playbackMode"; type: "PlaybackMode" }
|
||||
Property { name: "currentItemSource"; type: "QUrl"; isReadonly: true }
|
||||
Property { name: "currentIndex"; type: "int" }
|
||||
Property { name: "itemCount"; type: "int"; isReadonly: true }
|
||||
Property { name: "readOnly"; type: "bool"; isReadonly: true }
|
||||
Property { name: "error"; type: "Error"; isReadonly: true }
|
||||
Property { name: "errorString"; type: "string"; isReadonly: true }
|
||||
Property { name: "items"; type: "QDeclarativePlaylistItem"; isList: true; isReadonly: true }
|
||||
Signal {
|
||||
name: "itemAboutToBeInserted"
|
||||
Parameter { name: "start"; type: "int" }
|
||||
Parameter { name: "end"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "itemInserted"
|
||||
Parameter { name: "start"; type: "int" }
|
||||
Parameter { name: "end"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "itemAboutToBeRemoved"
|
||||
Parameter { name: "start"; type: "int" }
|
||||
Parameter { name: "end"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "itemRemoved"
|
||||
Parameter { name: "start"; type: "int" }
|
||||
Parameter { name: "end"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "itemChanged"
|
||||
Parameter { name: "start"; type: "int" }
|
||||
Parameter { name: "end"; type: "int" }
|
||||
}
|
||||
Signal { name: "loaded" }
|
||||
Signal { name: "loadFailed" }
|
||||
Signal {
|
||||
name: "error"
|
||||
Parameter { name: "error"; type: "QDeclarativePlaylist::Error" }
|
||||
Parameter { name: "errorString"; type: "string" }
|
||||
}
|
||||
Method {
|
||||
name: "itemSource"
|
||||
type: "QUrl"
|
||||
Parameter { name: "index"; type: "int" }
|
||||
}
|
||||
Method {
|
||||
name: "nextIndex"
|
||||
type: "int"
|
||||
Parameter { name: "steps"; type: "int" }
|
||||
}
|
||||
Method { name: "nextIndex"; type: "int" }
|
||||
Method {
|
||||
name: "previousIndex"
|
||||
type: "int"
|
||||
Parameter { name: "steps"; type: "int" }
|
||||
}
|
||||
Method { name: "previousIndex"; type: "int" }
|
||||
Method { name: "next" }
|
||||
Method { name: "previous" }
|
||||
Method { name: "shuffle" }
|
||||
Method {
|
||||
name: "load"
|
||||
Parameter { name: "location"; type: "QUrl" }
|
||||
Parameter { name: "format"; type: "string" }
|
||||
}
|
||||
Method {
|
||||
name: "load"
|
||||
Parameter { name: "location"; type: "QUrl" }
|
||||
}
|
||||
Method {
|
||||
name: "save"
|
||||
type: "bool"
|
||||
Parameter { name: "location"; type: "QUrl" }
|
||||
Parameter { name: "format"; type: "string" }
|
||||
}
|
||||
Method {
|
||||
name: "save"
|
||||
type: "bool"
|
||||
Parameter { name: "location"; type: "QUrl" }
|
||||
}
|
||||
Method {
|
||||
name: "addItem"
|
||||
type: "bool"
|
||||
Parameter { name: "source"; type: "QUrl" }
|
||||
}
|
||||
Method {
|
||||
name: "insertItem"
|
||||
type: "bool"
|
||||
Parameter { name: "index"; type: "int" }
|
||||
Parameter { name: "source"; type: "QUrl" }
|
||||
}
|
||||
Method {
|
||||
name: "removeItem"
|
||||
type: "bool"
|
||||
Parameter { name: "index"; type: "int" }
|
||||
}
|
||||
Method { name: "clear"; type: "bool" }
|
||||
}
|
||||
Component {
|
||||
name: "QDeclarativePlaylistItem"
|
||||
prototype: "QObject"
|
||||
exports: ["QtMultimedia/PlaylistItem 5.6"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "source"; type: "QUrl" }
|
||||
}
|
||||
Component {
|
||||
name: "QDeclarativeRadio"
|
||||
prototype: "QObject"
|
||||
|
||||
Reference in New Issue
Block a user