summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-09-15 15:22:07 +0200
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-09-15 14:36:40 +0000
commit0b192ce23ef38ef1f1b8d3dd5d2cfc386c9e5a36 (patch)
tree1925d3253ccc49d9d307987d215fecd958ce9c20 /src
parentda6d287e46c107586af07e55043abb4d2a9b2d9e (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/imports/audioengine/audioengine.cpp4
-rw-r--r--src/imports/audioengine/plugins.qmltypes42
-rw-r--r--src/imports/multimedia/multimedia.cpp3
-rw-r--r--src/imports/multimedia/plugins.qmltypes142
4 files changed, 180 insertions, 11 deletions
diff --git a/src/imports/audioengine/audioengine.cpp b/src/imports/audioengine/audioengine.cpp
index 4d29528f9..aa2d195c5 100644
--- a/src/imports/audioengine/audioengine.cpp
+++ b/src/imports/audioengine/audioengine.cpp
@@ -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");
}
};
diff --git a/src/imports/audioengine/plugins.qmltypes b/src/imports/audioengine/plugins.qmltypes
index 8c6267bda..22fad073a 100644
--- a/src/imports/audioengine/plugins.qmltypes
+++ b/src/imports/audioengine/plugins.qmltypes
@@ -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"
diff --git a/src/imports/multimedia/multimedia.cpp b/src/imports/multimedia/multimedia.cpp
index 4dcb7c61e..f61f97253 100644
--- a/src/imports/multimedia/multimedia.cpp
+++ b/src/imports/multimedia/multimedia.cpp
@@ -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");
diff --git a/src/imports/multimedia/plugins.qmltypes b/src/imports/multimedia/plugins.qmltypes
index 11d423f24..4d529dece 100644
--- a/src/imports/multimedia/plugins.qmltypes
+++ b/src/imports/multimedia/plugins.qmltypes
@@ -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" }
@@ -1229,6 +1236,137 @@ Module {
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"
exports: ["QtMultimedia/Radio 5.0"]