QmlJS: Switch to new format for QML meta data.

This commit is contained in:
Christian Kamm
2011-02-08 13:22:34 +01:00
parent dd1de1b82f
commit 2ec429e8ce
30 changed files with 10091 additions and 7080 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<type name="QmlProject.Project">
<exports>
<export module="QmlProject" version="1.0" type="Project"/>
<export module="QmlProject" version="1.1" type="Project"/>
</exports>
<property name="sourceDirectory" type="string"/>
<property name="mainFile" type="string"/>
<property name="importPaths" type="string" isList="true"/>
<property name="content" type="QmlProjectItem" isList="true"/>
</type>
<type name="QmlProjectItem">
</type>
<type name="FileFilterBaseItem" extends="QmlProjectItem">
<property name="directory" type="string"/>
<property name="recursive" type="bool"/>
<property name="paths" type="string" isList="true"/>
<property name="files" type="string" isList="true"/>
</type>
<type name="QmlProject.QmlFiles" extends="FileFilterBaseItem">
<exports>
<export module="QmlProject" version="1.0" type="QmlFiles"/>
<export module="QmlProject" version="1.1" type="QmlFiles"/>
</exports>
</type>
<type name="QmlProject.JavaScriptFiles" extends="FileFilterBaseItem">
<exports>
<export module="QmlProject" version="1.0" type="JavaScriptFiles"/>
<export module="QmlProject" version="1.1" type="JavaScriptFiles"/>
</exports>
<property name="filter" type="string"/>
</type>
<type name="QmlProject.ImageFiles" extends="FileFilterBaseItem">
<exports>
<export module="QmlProject" version="1.0" type="ImageFiles"/>
<export module="QmlProject" version="1.1" type="ImageFiles"/>
</exports>
<property name="filter" type="string"/>
</type>
<type name="QmlProject.CssFiles" extends="FileFilterBaseItem">
<exports>
<export module="QmlProject" version="1.0" type="CssFiles"/>
<export module="QmlProject" version="1.1" type="CssFiles"/>
</exports>
<property name="filter" type="string"/>
</type>
<type name="QmlProject.Files" extends="FileFilterBaseItem">
<exports>
<export module="QmlProject" version="1.1" type="Files"/>
</exports>
<property name="filter" type="string"/>
</type>
</module>

View File

@@ -0,0 +1,72 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QmlProject.Project"
exports: [
"QmlProject/Project 1.0",
"QmlProject/Project 1.1"
]
Property { name: "sourceDirectory"; type: "string" }
Property { name: "mainFile"; type: "string" }
Property { name: "importPaths"; type: "string"; isList: true }
Property { name: "content"; type: "QmlProjectItem"; isList: true }
}
Component {
name: "QmlProjectItem"
}
Component {
name: "FileFilterBaseItem"
prototype: "QmlProjectItem"
Property { name: "directory"; type: "string" }
Property { name: "recursive"; type: "string" }
Property { name: "paths"; type: "string"; isList: true }
Property { name: "files"; type: "string"; isList: true }
}
Component {
name: "QmlProject.QmlFiles"
prototype: "FileFilterBaseItem"
exports: [
"QmlProject/QmlFiles 1.0",
"QmlProject/QmlFiles 1.1"
]
}
Component {
name: "QmlProject.JavaScriptFiles"
prototype: "FileFilterBaseItem"
exports: [
"QmlProject/JavaScriptFiles 1.0",
"QmlProject/JavaScriptFiles 1.1"
]
Property { name: "filter"; type: "string" }
}
Component {
name: "QmlProject.ImageFiles"
prototype: "FileFilterBaseItem"
exports: [
"QmlProject/ImageFiles 1.0",
"QmlProject/ImageFiles 1.1"
]
Property { name: "filter"; type: "string" }
}
Component {
name: "QmlProject.CssFiles"
prototype: "FileFilterBaseItem"
exports: [
"QmlProject/CssFiles 1.0",
"QmlProject/CssFiles 1.1"
]
Property { name: "filter"; type: "string" }
}
Component {
name: "QmlProject.Files"
prototype: "FileFilterBaseItem"
exports: [
"QmlProject/Files 1.1"
]
Property { name: "filter"; type: "string" }
}
}

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<type name="QDeclarativeViewer.Screen">
<exports>
<export module="QDeclarativeViewer" version="1.0" type="Screen"/>
</exports>
<enum name="Orientation">
<enumerator name="UnknownOrientation" value="0"/>
<enumerator name="Portrait" value="1"/>
<enumerator name="Landscape" value="2"/>
</enum>
<property name="orientation" type="Orientation"/>
</type>
</module>

View File

@@ -0,0 +1,22 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeViewer.Screen"
exports: [
"QDeclarativeViewer/Screen 1.0"
]
Enum {
name: "Orientation"
values: {
"UnknownOrientation": 0,
"Portrait": 1,
"Landscape": 2
}
}
Property { name: "orientation"; type: "Orientation" }
}
}

View File

@@ -0,0 +1,141 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAbstractItemModel"
prototype: "QObject"
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" }
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" }
}
Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" }
Component {
name: "QDeclarativeFolderListModel"
prototype: "QAbstractListModel"
exports: [
"Qt.labs.folderlistmodel/FolderListModel 1.0"
]
Enum {
name: "SortField"
values: {
"Unsorted": 0,
"Name": 1,
"Time": 2,
"Size": 3,
"Type": 4
}
}
Property { name: "folder"; type: "QUrl" }
Property { name: "parentFolder"; type: "QUrl"; isReadonly: true }
Property { name: "nameFilters"; type: "QStringList" }
Property { name: "sortField"; type: "SortField" }
Property { name: "sortReversed"; type: "bool" }
Property { name: "showDirs"; type: "bool" }
Property { name: "showDotAndDotDot"; type: "bool" }
Property { name: "showOnlyReadable"; type: "bool" }
Property { name: "count"; type: "int"; isReadonly: true }
Signal { name: "folderChanged" }
Method {
name: "isFolder"
type: "bool"
Parameter { name: "index"; type: "int" }
}
}
}

View File

@@ -0,0 +1,112 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeGestureArea"
defaultProperty: "data"
prototype: "QDeclarativeItem"
exports: [
"Qt.labs.gestures/GestureArea 1.0"
]
Property { name: "gesture"; type: "QGesture"; isReadonly: true; isPointer: true }
}
Component {
name: "QGesture"
prototype: "QObject"
exports: [
"Qt.labs.gestures/Gesture 1.0"
]
Property { name: "state"; type: "Qt::GestureState"; isReadonly: true }
Property { name: "gestureType"; type: "Qt::GestureType"; isReadonly: true }
Property { name: "gestureCancelPolicy"; type: "QGesture::GestureCancelPolicy" }
Property { name: "hotSpot"; type: "QPointF" }
Property { name: "hasHotSpot"; type: "bool"; isReadonly: true }
}
Component {
name: "QPanGesture"
prototype: "QGesture"
exports: [
"Qt.labs.gestures/PanGesture 1.0"
]
Property { name: "lastOffset"; type: "QPointF" }
Property { name: "offset"; type: "QPointF" }
Property { name: "delta"; type: "QPointF"; isReadonly: true }
Property { name: "acceleration"; type: "qreal" }
Property { name: "horizontalVelocity"; type: "qreal" }
Property { name: "verticalVelocity"; type: "qreal" }
}
Component {
name: "QPinchGesture"
prototype: "QGesture"
exports: [
"Qt.labs.gestures/PinchGesture 1.0"
]
Enum {
name: "ChangeFlag"
values: {
"ScaleFactorChanged": 1,
"RotationAngleChanged": 2,
"CenterPointChanged": 4
}
}
Enum {
name: "ChangeFlags"
values: {
"ScaleFactorChanged": 1,
"RotationAngleChanged": 2,
"CenterPointChanged": 4
}
}
Property { name: "totalChangeFlags"; type: "ChangeFlags" }
Property { name: "changeFlags"; type: "ChangeFlags" }
Property { name: "totalScaleFactor"; type: "qreal" }
Property { name: "lastScaleFactor"; type: "qreal" }
Property { name: "scaleFactor"; type: "qreal" }
Property { name: "totalRotationAngle"; type: "qreal" }
Property { name: "lastRotationAngle"; type: "qreal" }
Property { name: "rotationAngle"; type: "qreal" }
Property { name: "startCenterPoint"; type: "QPointF" }
Property { name: "lastCenterPoint"; type: "QPointF" }
Property { name: "centerPoint"; type: "QPointF" }
}
Component {
name: "QSwipeGesture"
prototype: "QGesture"
exports: [
"Qt.labs.gestures/SwipeGesture 1.0"
]
Enum {
name: "SwipeDirection"
values: {
"NoDirection": 0,
"Left": 1,
"Right": 2,
"Up": 3,
"Down": 4
}
}
Property { name: "horizontalDirection"; type: "SwipeDirection"; isReadonly: true }
Property { name: "verticalDirection"; type: "SwipeDirection"; isReadonly: true }
Property { name: "swipeAngle"; type: "qreal" }
Property { name: "velocity"; type: "qreal" }
}
Component {
name: "QTapAndHoldGesture"
prototype: "QGesture"
exports: [
"Qt.labs.gestures/TapAndHoldGesture 1.0"
]
Property { name: "position"; type: "QPointF" }
}
Component {
name: "QTapGesture"
prototype: "QGesture"
exports: [
"Qt.labs.gestures/TapGesture 1.0"
]
Property { name: "position"; type: "QPointF" }
}
}

View File

@@ -0,0 +1,91 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeParticleMotion"
prototype: "QObject"
exports: [
"Qt.labs.particles/ParticleMotion 1.0"
]
}
Component {
name: "QDeclarativeParticleMotionGravity"
prototype: "QDeclarativeParticleMotion"
exports: [
"Qt.labs.particles/ParticleMotionGravity 1.0"
]
Property { name: "xattractor"; type: "qreal" }
Property { name: "yattractor"; type: "qreal" }
Property { name: "acceleration"; type: "qreal" }
Signal { name: "xattractorChanged" }
Signal { name: "yattractorChanged" }
Signal { name: "accelerationChanged" }
}
Component {
name: "QDeclarativeParticleMotionLinear"
prototype: "QDeclarativeParticleMotion"
exports: [
"Qt.labs.particles/ParticleMotionLinear 1.0"
]
}
Component {
name: "QDeclarativeParticleMotionWander"
prototype: "QDeclarativeParticleMotion"
exports: [
"Qt.labs.particles/ParticleMotionWander 1.0"
]
Property { name: "xvariance"; type: "qreal" }
Property { name: "yvariance"; type: "qreal" }
Property { name: "pace"; type: "qreal" }
Signal { name: "xvarianceChanged" }
Signal { name: "yvarianceChanged" }
Signal { name: "paceChanged" }
}
Component {
name: "QDeclarativeParticles"
defaultProperty: "motion"
prototype: "QDeclarativeItem"
exports: [
"Qt.labs.particles/Particles 1.0"
]
Property { name: "source"; type: "QUrl" }
Property { name: "count"; type: "int" }
Property { name: "emissionRate"; type: "int" }
Property { name: "emissionVariance"; type: "qreal" }
Property { name: "lifeSpan"; type: "int" }
Property { name: "lifeSpanDeviation"; type: "int" }
Property { name: "fadeInDuration"; type: "int" }
Property { name: "fadeOutDuration"; type: "int" }
Property { name: "angle"; type: "qreal" }
Property { name: "angleDeviation"; type: "qreal" }
Property { name: "velocity"; type: "qreal" }
Property { name: "velocityDeviation"; type: "qreal" }
Property { name: "motion"; type: "QDeclarativeParticleMotion"; isPointer: true }
Signal { name: "sourceChanged" }
Signal { name: "countChanged" }
Signal { name: "emissionRateChanged" }
Signal { name: "emissionVarianceChanged" }
Signal { name: "lifeSpanChanged" }
Signal { name: "lifeSpanDeviationChanged" }
Signal { name: "fadeInDurationChanged" }
Signal { name: "fadeOutDurationChanged" }
Signal { name: "angleChanged" }
Signal { name: "angleDeviationChanged" }
Signal { name: "velocityChanged" }
Signal { name: "velocityDeviationChanged" }
Signal { name: "emittingChanged" }
Signal { name: "motionChanged" }
Method {
name: "burst"
Parameter { name: "count"; type: "int" }
Parameter { name: "emissionRate"; type: "int" }
}
Method {
name: "burst"
Parameter { name: "count"; type: "int" }
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,240 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeFeedback"
prototype: "QObject"
exports: [
"QtMobility.feedback/Feedback 1.1"
]
Enum {
name: "Duration"
values: {
"Infinite": -1
}
}
Enum {
name: "State"
values: {
"Stopped": 0,
"Paused": 1,
"Running": 2,
"Loading": 3
}
}
Enum {
name: "ErrorType"
values: {
"UnknownError": 0,
"DeviceBusy": 1
}
}
}
Component {
name: "QDeclarativeFileEffect"
prototype: "QFeedbackFileEffect"
exports: [
"QtMobility.feedback/FileEffect 1.1"
]
Property { name: "running"; type: "bool" }
Property { name: "paused"; type: "bool" }
Signal { name: "runningChanged" }
Signal { name: "pausedChanged" }
Method { name: "updateState" }
}
Component {
name: "QDeclarativeHapticsEffect"
prototype: "QFeedbackHapticsEffect"
exports: [
"QtMobility.feedback/HapticsEffect 1.1"
]
Property { name: "actuators"; type: "QFeedbackActuator"; isList: true; isReadonly: true }
Property { name: "running"; type: "bool" }
Property { name: "paused"; type: "bool" }
Signal { name: "runningChanged" }
Signal { name: "pausedChanged" }
Signal { name: "actuatorsChanged" }
Method { name: "updateState" }
}
Component {
name: "QDeclarativeThemeEffect"
prototype: "QObject"
exports: [
"QtMobility.feedback/ThemeEffect 1.1"
]
Enum {
name: "ThemeEffect"
values: {
"Basic": 0,
"Sensitive": 1,
"BasicButton": 2,
"SensitiveButton": 3,
"BasicKeypad": 4,
"SensitiveKeypad": 5,
"BasicSlider": 6,
"SensitiveSlider": 7,
"BasicItem": 8,
"SensitiveItem": 9,
"ItemScroll": 10,
"ItemPick": 11,
"ItemDrop": 12,
"ItemMoveOver": 13,
"BounceEffect": 14,
"CheckBox": 15,
"MultipleCheckBox": 16,
"Editor": 17,
"TextSelection": 18,
"BlankSelection": 19,
"LineSelection": 20,
"EmptyLineSelection": 21,
"PopUp": 22,
"PopupOpen": 23,
"PopupClose": 24,
"Flick": 25,
"StopFlick": 26,
"MultiPointTouchActivate": 27,
"RotateStep": 28,
"LongPress": 29,
"PositiveTacticon": 30,
"NeutralTacticon": 31,
"NegativeTacticon": 32,
"NumberOfThemeEffects": 33,
"ThemeUser": 65535
}
}
Property { name: "supported"; type: "bool"; isReadonly: true }
Property { name: "effect"; type: "ThemeEffect" }
Signal { name: "effectChanged" }
Method { name: "play" }
}
Component {
name: "QFeedbackActuator"
prototype: "QObject"
exports: [
"QtMobility.feedback/Actuator 1.1"
]
Enum {
name: "Capability"
values: {
"Envelope": 0,
"Period": 1
}
}
Enum {
name: "State"
values: {
"Busy": 0,
"Ready": 1,
"Unknown": 2
}
}
Property { name: "id"; type: "int"; isReadonly: true }
Property { name: "name"; type: "string"; isReadonly: true }
Property { name: "state"; type: "QFeedbackActuator::State"; isReadonly: true }
Property { name: "valid"; type: "bool"; isReadonly: true }
Property { name: "enabled"; type: "bool" }
Signal { name: "enabledChanged" }
Method {
name: "isCapabilitySupported"
type: "bool"
Parameter { type: "Capability" }
}
}
Component {
name: "QFeedbackEffect"
prototype: "QObject"
Enum {
name: "ThemeEffect"
values: {
"ThemeBasic": 0,
"ThemeSensitive": 1,
"ThemeBasicButton": 2,
"ThemeSensitiveButton": 3,
"ThemeBasicKeypad": 4,
"ThemeSensitiveKeypad": 5,
"ThemeBasicSlider": 6,
"ThemeSensitiveSlider": 7,
"ThemeBasicItem": 8,
"ThemeSensitiveItem": 9,
"ThemeItemScroll": 10,
"ThemeItemPick": 11,
"ThemeItemDrop": 12,
"ThemeItemMoveOver": 13,
"ThemeBounceEffect": 14,
"ThemeCheckBox": 15,
"ThemeMultipleCheckBox": 16,
"ThemeEditor": 17,
"ThemeTextSelection": 18,
"ThemeBlankSelection": 19,
"ThemeLineSelection": 20,
"ThemeEmptyLineSelection": 21,
"ThemePopUp": 22,
"ThemePopupOpen": 23,
"ThemePopupClose": 24,
"ThemeFlick": 25,
"ThemeStopFlick": 26,
"ThemeMultiPointTouchActivate": 27,
"ThemeRotateStep": 28,
"ThemeLongPress": 29,
"ThemePositiveTacticon": 30,
"ThemeNeutralTacticon": 31,
"ThemeNegativeTacticon": 32,
"NumberOfThemeEffects": 33,
"ThemeUser": 65535
}
}
Enum {
name: "Duration"
values: {
"Infinite": -1
}
}
Enum {
name: "State"
values: {
"Stopped": 0,
"Paused": 1,
"Running": 2,
"Loading": 3
}
}
Enum {
name: "ErrorType"
values: {
"UnknownError": 0,
"DeviceBusy": 1
}
}
Property { name: "duration"; type: "int"; isReadonly: true }
Property { name: "state"; type: "State"; isReadonly: true }
Signal {
name: "error"
Parameter { type: "QFeedbackEffect::ErrorType" }
}
Signal { name: "stateChanged" }
Method { name: "start" }
Method { name: "stop" }
Method { name: "pause" }
}
Component {
name: "QFeedbackFileEffect"
prototype: "QFeedbackEffect"
Property { name: "loaded"; type: "bool" }
Property { name: "source"; type: "QUrl" }
}
Component {
name: "QFeedbackHapticsEffect"
prototype: "QFeedbackEffect"
Property { name: "duration"; type: "int" }
Property { name: "intensity"; type: "qreal" }
Property { name: "attackTime"; type: "int" }
Property { name: "attackIntensity"; type: "qreal" }
Property { name: "fadeTime"; type: "int" }
Property { name: "fadeIntensity"; type: "int" }
Property { name: "period"; type: "int" }
Property { name: "actuator"; type: "QFeedbackActuator"; isPointer: true }
}
}

View File

@@ -0,0 +1,414 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAbstractItemModel"
prototype: "QObject"
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" }
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" }
}
Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" }
Component {
name: "QDeclarativeDocumentGallery"
prototype: "QObject"
exports: [
"QtMobility.gallery/DocumentGallery 1.1"
]
Enum {
name: "ItemType"
values: {
"InvalidType": 0,
"File": 1,
"Folder": 2,
"Document": 3,
"Text": 4,
"Audio": 5,
"Image": 6,
"Video": 7,
"Playlist": 8,
"Artist": 9,
"AlbumArtist": 10,
"Album": 11,
"AudioGenre": 12,
"PhotoAlbum": 13
}
}
}
Component {
name: "QDeclarativeDocumentGalleryItem"
prototype: "QDeclarativeGalleryItem"
exports: [
"QtMobility.gallery/DocumentGalleryItem 1.1"
]
Property { name: "itemType"; type: "QDeclarativeDocumentGallery::ItemType"; isReadonly: true }
Signal { name: "itemTypeChanged" }
}
Component {
name: "QDeclarativeDocumentGalleryModel"
prototype: "QDeclarativeGalleryQueryModel"
exports: [
"QtMobility.gallery/DocumentGalleryModel 1.1"
]
Property { name: "rootType"; type: "QDeclarativeDocumentGallery::ItemType" }
Signal { name: "rootTypeChanged" }
}
Component {
name: "QDeclarativeDocumentGalleryType"
prototype: "QDeclarativeGalleryType"
exports: [
"QtMobility.gallery/DocumentGalleryType 1.1"
]
Property { name: "itemType"; type: "QDeclarativeDocumentGallery::ItemType" }
Signal { name: "itemTypeChanged" }
}
Component {
name: "QDeclarativeGalleryContainsFilter"
prototype: "QDeclarativeGalleryStringFilter"
exports: [
"QtMobility.gallery/GalleryContainsFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryEndsWithFilter"
prototype: "QDeclarativeGalleryStringFilter"
exports: [
"QtMobility.gallery/GalleryEndsWithFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryEqualsFilter"
prototype: "QDeclarativeGalleryValueFilter"
exports: [
"QtMobility.gallery/GalleryEqualsFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryFilterBase"
prototype: "QObject"
Signal { name: "filterChanged" }
}
Component {
name: "QDeclarativeGalleryFilterGroup"
defaultProperty: "filters"
prototype: "QDeclarativeGalleryFilterBase"
Property {
name: "filters"
type: "QDeclarativeGalleryFilterBase"
isList: true
isReadonly: true
}
}
Component {
name: "QDeclarativeGalleryFilterIntersection"
defaultProperty: "filters"
prototype: "QDeclarativeGalleryFilterGroup"
exports: [
"QtMobility.gallery/GalleryFilterIntersection 1.1"
]
}
Component {
name: "QDeclarativeGalleryFilterUnion"
defaultProperty: "filters"
prototype: "QDeclarativeGalleryFilterGroup"
exports: [
"QtMobility.gallery/GalleryFilterUnion 1.1"
]
}
Component {
name: "QDeclarativeGalleryGreaterThanEqualsFilter"
prototype: "QDeclarativeGalleryValueFilter"
exports: [
"QtMobility.gallery/GalleryGreaterThanEqualsFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryGreaterThanFilter"
prototype: "QDeclarativeGalleryValueFilter"
exports: [
"QtMobility.gallery/GalleryGreaterThanFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryItem"
prototype: "QObject"
Enum {
name: "Status"
values: {
"Null": 0,
"Active": 1,
"Canceling": 2,
"Canceled": 3,
"Idle": 4,
"Finished": 5,
"Error": 6
}
}
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "progress"; type: "qreal"; isReadonly: true }
Property { name: "properties"; type: "QStringList" }
Property { name: "autoUpdate"; type: "bool" }
Property { name: "item"; type: "QVariant" }
Property { name: "available"; type: "bool"; isReadonly: true }
Property { name: "itemUrl"; type: "QUrl"; isReadonly: true }
Property { name: "metaData"; type: "QObject"; isReadonly: true; isPointer: true }
Signal { name: "statusChanged" }
Signal { name: "progressChanged" }
Signal { name: "availableChanged" }
Signal { name: "metaDataChanged" }
Signal { name: "galleryChanged" }
Signal { name: "propertyNamesChanged" }
Signal { name: "autoUpdateChanged" }
Signal { name: "itemIdChanged" }
Method { name: "reload" }
Method { name: "cancel" }
Method { name: "clear" }
}
Component {
name: "QDeclarativeGalleryLessThanEqualsFilter"
prototype: "QDeclarativeGalleryValueFilter"
exports: [
"QtMobility.gallery/GalleryLessThanEqualsFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryLessThanFilter"
prototype: "QDeclarativeGalleryValueFilter"
exports: [
"QtMobility.gallery/GalleryLessThanFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryQueryModel"
prototype: "QAbstractListModel"
Enum {
name: "Status"
values: {
"Null": 0,
"Active": 1,
"Canceling": 2,
"Canceled": 3,
"Idle": 4,
"Finished": 5,
"Error": 6
}
}
Enum {
name: "Scope"
values: {
"AllDescendants": 0,
"DirectDescendants": 1
}
}
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "progress"; type: "qreal"; isReadonly: true }
Property { name: "properties"; type: "QStringList" }
Property { name: "sortProperties"; type: "QStringList" }
Property { name: "autoUpdate"; type: "bool" }
Property { name: "rootItem"; type: "QVariant" }
Property { name: "scope"; type: "Scope" }
Property { name: "offset"; type: "int" }
Property { name: "limit"; type: "int" }
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "filter"; type: "QDeclarativeGalleryFilterBase"; isPointer: true }
Signal { name: "statusChanged" }
Signal { name: "progressChanged" }
Signal { name: "propertyNamesChanged" }
Signal { name: "sortPropertyNamesChanged" }
Signal { name: "autoUpdateChanged" }
Signal { name: "rootItemChanged" }
Signal { name: "scopeChanged" }
Signal { name: "filterChanged" }
Signal { name: "offsetChanged" }
Signal { name: "limitChanged" }
Signal { name: "countChanged" }
Method { name: "reload" }
Method { name: "cancel" }
Method { name: "clear" }
Method {
name: "get"
type: "QScriptValue"
Parameter { name: "index"; type: "QScriptValue" }
}
Method {
name: "property"
type: "QVariant"
Parameter { name: "index"; type: "int" }
Parameter { name: "property"; type: "string" }
}
Method {
name: "set"
Parameter { name: "index"; type: "int" }
Parameter { name: "value"; type: "QScriptValue" }
}
Method {
name: "setProperty"
Parameter { name: "index"; type: "int" }
Parameter { name: "property"; type: "string" }
Parameter { name: "value"; type: "QVariant" }
}
}
Component {
name: "QDeclarativeGalleryStartsWithFilter"
prototype: "QDeclarativeGalleryStringFilter"
exports: [
"QtMobility.gallery/GalleryStartsWithFilter 1.1"
]
}
Component {
name: "QDeclarativeGalleryStringFilter"
prototype: "QDeclarativeGalleryFilterBase"
Property { name: "property"; type: "string" }
Property { name: "value"; type: "string" }
Property { name: "negated"; type: "bool" }
Signal { name: "propertyNameChanged" }
Signal { name: "valueChanged" }
Signal { name: "negatedChanged" }
}
Component {
name: "QDeclarativeGalleryType"
prototype: "QObject"
Enum {
name: "Status"
values: {
"Null": 0,
"Active": 1,
"Canceling": 2,
"Canceled": 3,
"Idle": 4,
"Finished": 5,
"Error": 6
}
}
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "progress"; type: "qreal"; isReadonly: true }
Property { name: "properties"; type: "QStringList" }
Property { name: "autoUpdate"; type: "bool" }
Property { name: "available"; type: "bool"; isReadonly: true }
Property { name: "metaData"; type: "QObject"; isReadonly: true; isPointer: true }
Signal { name: "statusChanged" }
Signal { name: "progressChanged" }
Signal { name: "availableChanged" }
Signal { name: "metaDataChanged" }
Signal { name: "galleryChanged" }
Signal { name: "propertyNamesChanged" }
Signal { name: "autoUpdateChanged" }
Method { name: "reload" }
Method { name: "cancel" }
Method { name: "clear" }
}
Component {
name: "QDeclarativeGalleryValueFilter"
prototype: "QDeclarativeGalleryFilterBase"
Property { name: "property"; type: "string" }
Property { name: "value"; type: "QVariant" }
Property { name: "negated"; type: "bool" }
Signal { name: "propertyNameChanged" }
Signal { name: "valueChanged" }
Signal { name: "negatedChanged" }
}
Component {
name: "QDeclarativeGalleryWildcardFilter"
prototype: "QDeclarativeGalleryStringFilter"
exports: [
"QtMobility.gallery/GalleryWildcardFilter 1.1"
]
}
}

View File

@@ -0,0 +1,916 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAbstractItemModel"
prototype: "QObject"
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" }
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" }
}
Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" }
Component {
name: "QDeclarativeCoordinate"
prototype: "QObject"
exports: [
"QtMobility.location/Coordinate 1.1"
]
Property { name: "latitude"; type: "double" }
Property { name: "longitude"; type: "double" }
Property { name: "altitude"; type: "double" }
Signal {
name: "latitudeChanged"
Parameter { name: "latitude"; type: "double" }
}
Signal {
name: "longitudeChanged"
Parameter { name: "longitude"; type: "double" }
}
Signal {
name: "altitudeChanged"
Parameter { name: "altitude"; type: "double" }
}
Method {
name: "distanceTo"
type: "qreal"
Parameter { name: "coordinate"; type: "QObject"; isPointer: true }
}
}
Component {
name: "QDeclarativeGeoAddress"
prototype: "QObject"
exports: [
"QtMobility.location/Address 1.1"
]
Property { name: "country"; type: "string" }
Property { name: "countryCode"; type: "string" }
Property { name: "state"; type: "string" }
Property { name: "county"; type: "string" }
Property { name: "city"; type: "string" }
Property { name: "district"; type: "string" }
Property { name: "street"; type: "string" }
Property { name: "postcode"; type: "string" }
Signal { name: "countryChanged" }
Signal { name: "countryCodeChanged" }
Signal { name: "stateChanged" }
Signal { name: "countyChanged" }
Signal { name: "cityChanged" }
Signal { name: "districtChanged" }
Signal { name: "streetChanged" }
Signal { name: "postcodeChanged" }
}
Component {
name: "QDeclarativeGeoBoundingBox"
prototype: "QObject"
exports: [
"QtMobility.location/BoundingBox 1.1"
]
Property { name: "bottomLeft"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "bottomRight"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "topLeft"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "topRight"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "height"; type: "double" }
Property { name: "width"; type: "double" }
Signal { name: "bottomLeftChanged" }
Signal { name: "bottomRightChanged" }
Signal { name: "topLeftChanged" }
Signal { name: "topRightChanged" }
Signal { name: "centerChanged" }
Signal { name: "heightChanged" }
Signal { name: "widthChanged" }
}
Component {
name: "QDeclarativeGeoMapCircleObject"
prototype: "QGeoMapCircleObject"
exports: [
"QtMobility.location/MapCircle 1.1"
]
Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "color"; type: "QColor" }
Property {
name: "border"
type: "QDeclarativeGeoMapObjectBorder"
isReadonly: true
isPointer: true
}
Signal {
name: "declarativeCenterChanged"
Parameter { name: "center"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "colorChanged"
Parameter { name: "color"; type: "QColor" }
}
}
Component {
name: "QDeclarativeGeoMapObject"
defaultProperty: "objects"
prototype: "QGeoMapGroupObject"
exports: [
"QtMobility.location/MapGroup 1.1"
]
Property { name: "objects"; type: "QGeoMapObject"; isList: true; isReadonly: true }
}
Component {
name: "QDeclarativeGeoMapPixmapObject"
prototype: "QGeoMapPixmapObject"
exports: [
"QtMobility.location/MapImage 1.1"
]
Enum {
name: "Status"
values: {
"Null": 0,
"Ready": 1,
"Loading": 2,
"Error": 3
}
}
Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "source"; type: "QUrl" }
Property { name: "status"; type: "Status"; isReadonly: true }
Signal {
name: "declarativeCoordinateChanged"
Parameter { name: "coordinate"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "sourceChanged"
Parameter { name: "source"; type: "QUrl" }
}
Signal {
name: "statusChanged"
Parameter { name: "status"; type: "QDeclarativeGeoMapPixmapObject::Status" }
}
}
Component {
name: "QDeclarativeGeoMapPolygonObject"
defaultProperty: "path"
prototype: "QGeoMapPolygonObject"
exports: [
"QtMobility.location/MapPolygon 1.1"
]
Property { name: "path"; type: "QDeclarativeCoordinate"; isList: true; isReadonly: true }
Property { name: "color"; type: "QColor" }
Property {
name: "border"
type: "QDeclarativeGeoMapObjectBorder"
isReadonly: true
isPointer: true
}
Signal {
name: "colorChanged"
Parameter { name: "color"; type: "QColor" }
}
}
Component {
name: "QDeclarativeGeoMapPolylineObject"
defaultProperty: "path"
prototype: "QGeoMapPolylineObject"
exports: [
"QtMobility.location/MapPolyline 1.1"
]
Property { name: "path"; type: "QDeclarativeCoordinate"; isList: true; isReadonly: true }
Property {
name: "border"
type: "QDeclarativeGeoMapObjectBorder"
isReadonly: true
isPointer: true
}
}
Component {
name: "QDeclarativeGeoMapRectangleObject"
prototype: "QGeoMapRectangleObject"
exports: [
"QtMobility.location/MapRectangle 1.1"
]
Property { name: "topLeft"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "bottomRight"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "color"; type: "QColor" }
Property {
name: "border"
type: "QDeclarativeGeoMapObjectBorder"
isReadonly: true
isPointer: true
}
Signal {
name: "declarativeTopLeftChanged"
Parameter { name: "center"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "declarativeBottomRightChanged"
Parameter { name: "center"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "colorChanged"
Parameter { name: "color"; type: "QColor" }
}
}
Component {
name: "QDeclarativeGeoMapTextObject"
prototype: "QGeoMapTextObject"
exports: [
"QtMobility.location/MapText 1.1"
]
Enum {
name: "HorizontalAlignment"
values: {
"AlignHCenter": 4,
"AlignLeft": 1,
"AlignRight": 2
}
}
Enum {
name: "VerticalAlignment"
values: {
"AlignVCenter": 128,
"AlignTop": 32,
"AlignBottom": 64
}
}
Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "color"; type: "QColor" }
Property { name: "horizontalAlignment"; type: "HorizontalAlignment" }
Property { name: "verticalAlignment"; type: "VerticalAlignment" }
Signal {
name: "declarativeCoordinateChanged"
Parameter { name: "coordinate"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "colorChanged"
Parameter { name: "color"; type: "QColor" }
}
Signal {
name: "horizontalAlignmentChanged"
Parameter { name: "alignment"; type: "HorizontalAlignment" }
}
Signal {
name: "verticalAlignmentChanged"
Parameter { name: "alignment"; type: "VerticalAlignment" }
}
}
Component {
name: "QDeclarativeGeoPlace"
prototype: "QObject"
exports: [
"QtMobility.location/Place 1.1"
]
Property { name: "viewport"; type: "QDeclarativeGeoBoundingBox"; isPointer: true }
Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "address"; type: "QDeclarativeGeoAddress"; isPointer: true }
Signal { name: "viewportChanged" }
Signal { name: "coordinateChanged" }
Signal { name: "addressChanged" }
}
Component {
name: "QDeclarativeGeoSearchModel"
prototype: "QAbstractListModel"
Property { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true }
Property { name: "error"; type: "string"; isReadonly: true }
Signal {
name: "pluginChanged"
Parameter { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true }
}
Signal {
name: "errorChanged"
Parameter { name: "error"; type: "string" }
}
Signal { name: "placesChanged" }
}
Component {
name: "QDeclarativeGeoServiceProvider"
defaultProperty: "parameters"
prototype: "QObject"
exports: [
"QtMobility.location/Plugin 1.1"
]
Property { name: "name"; type: "string" }
Property {
name: "parameters"
type: "QDeclarativeGeoServiceProviderParameter"
isList: true
isReadonly: true
}
Signal {
name: "nameChanged"
Parameter { name: "name"; type: "string" }
}
}
Component {
name: "QDeclarativeGeoServiceProviderParameter"
prototype: "QObject"
exports: [
"QtMobility.location/PluginParameter 1.1"
]
Property { name: "name"; type: "string" }
Property { name: "value"; type: "QVariant" }
Signal {
name: "nameChanged"
Parameter { name: "name"; type: "string" }
}
Signal {
name: "valueChanged"
Parameter { name: "value"; type: "QVariant" }
}
}
Component {
name: "QDeclarativeGeocodeModel"
prototype: "QDeclarativeGeoSearchModel"
exports: [
"QtMobility.location/GeocodeModel 1.1"
]
Property { name: "address"; type: "QDeclarativeGeoAddress"; isPointer: true }
Signal {
name: "addressChanged"
Parameter { name: "address"; type: "QDeclarativeGeoAddress"; isPointer: true }
}
}
Component {
name: "QDeclarativeGraphicsGeoMap"
defaultProperty: "objects"
prototype: "QDeclarativeItem"
exports: [
"QtMobility.location/Map 1.1"
]
Enum {
name: "MapType"
values: {
"NoMap": 0,
"StreetMap": 1,
"SatelliteMapDay": 2,
"SatelliteMapNight": 3,
"TerrainMap": 4
}
}
Enum {
name: "ConnectivityMode"
values: {
"NoConnectivity": 0,
"OfflineMode": 1,
"OnlineMode": 2,
"HybridMode": 3
}
}
Property { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true }
Property { name: "size"; type: "QSizeF" }
Property { name: "minimumZoomLevel"; type: "qreal"; isReadonly: true }
Property { name: "maximumZoomLevel"; type: "qreal"; isReadonly: true }
Property { name: "zoomLevel"; type: "qreal" }
Property { name: "mapType"; type: "MapType" }
Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "connectivityMode"; type: "ConnectivityMode" }
Property { name: "objects"; type: "QGeoMapObject"; isList: true; isReadonly: true }
Signal {
name: "pluginChanged"
Parameter { name: "plugin"; type: "QDeclarativeGeoServiceProvider"; isPointer: true }
}
Signal {
name: "sizeChanged"
Parameter { name: "size"; type: "QSizeF" }
}
Signal {
name: "zoomLevelChanged"
Parameter { name: "zoomLevel"; type: "qreal" }
}
Signal {
name: "declarativeCenterChanged"
Parameter { name: "coordinate"; type: "const QDeclarativeCoordinate"; isPointer: true }
}
Signal {
name: "mapTypeChanged"
Parameter { name: "mapType"; type: "QDeclarativeGraphicsGeoMap::MapType" }
}
Signal {
name: "connectivityModeChanged"
Parameter { name: "connectivityMode"; type: "QDeclarativeGraphicsGeoMap::ConnectivityMode" }
}
Method {
name: "pan"
Parameter { name: "dx"; type: "int" }
Parameter { name: "dy"; type: "int" }
}
Method {
name: "toCoordinate"
type: "QDeclarativeCoordinate*"
Parameter { name: "screenPosition"; type: "QPointF" }
}
Method {
name: "toScreenPosition"
type: "QPointF"
Parameter { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
}
}
Component {
name: "QDeclarativeLandmark"
prototype: "QDeclarativeGeoPlace"
exports: [
"QtMobility.location/Landmark 1.1"
]
Property { name: "name"; type: "string" }
Property { name: "phoneNumber"; type: "string" }
Property { name: "description"; type: "string" }
Property { name: "radius"; type: "double" }
Property { name: "iconSource"; type: "QUrl" }
Property { name: "url"; type: "QUrl" }
Signal { name: "nameChanged" }
Signal { name: "phoneNumberChanged" }
Signal { name: "descriptionChanged" }
Signal { name: "radiusChanged" }
Signal { name: "iconSourceChanged" }
Signal { name: "urlChanged" }
Signal { name: "coordinateChanged" }
}
Component {
name: "QDeclarativeLandmarkAbstractModel"
prototype: "QAbstractListModel"
exports: [
"QtMobility.location/LandmarkAbstractModel 1.1"
]
Enum {
name: "SortOrder"
values: {
"AscendingOrder": 0,
"DescendingOrder": 1,
"NoOrder": 2
}
}
Enum {
name: "SortKey"
values: {
"NoSort": 0,
"NameSort": 1
}
}
Property { name: "limit"; type: "int" }
Property { name: "offset"; type: "int" }
Property { name: "autoUpdate"; type: "bool" }
Property { name: "error"; type: "string"; isReadonly: true }
Property { name: "sortBy"; type: "SortKey" }
Property { name: "sortOrder"; type: "SortOrder" }
Signal { name: "sortByChanged" }
Signal { name: "sortOrderChanged" }
Signal { name: "errorChanged" }
Signal { name: "autoUpdateChanged" }
Signal { name: "limitChanged" }
Signal { name: "offsetChanged" }
Signal { name: "modelChanged" }
Signal { name: "databaseChanged" }
Method { name: "update" }
Method {
name: "setDbFileName"
Parameter { name: "fileName"; type: "string" }
}
}
Component {
name: "QDeclarativeLandmarkBoxFilter"
prototype: "QDeclarativeLandmarkFilterBase"
exports: [
"QtMobility.location/LandmarkBoxFilter 1.1"
]
Property { name: "topLeft"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "bottomRight"; type: "QDeclarativeCoordinate"; isPointer: true }
Signal { name: "topLeftChanged" }
Signal { name: "bottomRightChanged" }
}
Component {
name: "QDeclarativeLandmarkCategory"
prototype: "QObject"
exports: [
"QtMobility.location/LandmarkCategory 1.1"
]
Property { name: "name"; type: "string" }
Property { name: "iconSource"; type: "QUrl" }
Signal { name: "nameChanged" }
Signal { name: "iconSourceChanged" }
}
Component {
name: "QDeclarativeLandmarkCategoryFilter"
prototype: "QDeclarativeLandmarkFilterBase"
exports: [
"QtMobility.location/LandmarkCategoryFilter 1.1"
]
Property { name: "category"; type: "QDeclarativeLandmarkCategory"; isPointer: true }
Signal { name: "categoryChanged" }
}
Component {
name: "QDeclarativeLandmarkCategoryModel"
prototype: "QDeclarativeLandmarkAbstractModel"
exports: [
"QtMobility.location/LandmarkCategoryModel 1.1"
]
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "landmark"; type: "QDeclarativeLandmark"; isPointer: true }
Property {
name: "categories"
type: "QDeclarativeLandmarkCategory"
isList: true
isReadonly: true
}
Signal { name: "countChanged" }
Signal { name: "landmarkChanged" }
Signal { name: "categoriesChanged" }
}
Component {
name: "QDeclarativeLandmarkCompoundFilter"
defaultProperty: "filters"
prototype: "QDeclarativeLandmarkFilterBase"
Property {
name: "filters"
type: "QDeclarativeLandmarkFilterBase"
isList: true
isReadonly: true
}
}
Component {
name: "QDeclarativeLandmarkFilterBase"
prototype: "QObject"
exports: [
"QtMobility.location/LandmarkFilterBase 1.1"
]
Signal { name: "filterContentChanged" }
}
Component {
name: "QDeclarativeLandmarkIntersectionFilter"
defaultProperty: "filters"
prototype: "QDeclarativeLandmarkCompoundFilter"
exports: [
"QtMobility.location/LandmarkIntersectionFilter 1.1"
]
}
Component {
name: "QDeclarativeLandmarkModel"
prototype: "QDeclarativeLandmarkAbstractModel"
exports: [
"QtMobility.location/LandmarkModel 1.1"
]
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "filter"; type: "QDeclarativeLandmarkFilterBase"; isPointer: true }
Property { name: "landmarks"; type: "QDeclarativeLandmark"; isList: true; isReadonly: true }
Property { name: "importFile"; type: "string" }
Signal { name: "countChanged" }
Signal { name: "filterChanged" }
Signal { name: "landmarksChanged" }
Signal { name: "importFileChanged" }
Method { name: "importLandmarks" }
}
Component {
name: "QDeclarativeLandmarkNameFilter"
prototype: "QDeclarativeLandmarkFilterBase"
exports: [
"QtMobility.location/LandmarkNameFilter 1.1"
]
Property { name: "name"; type: "string" }
Signal { name: "nameChanged" }
}
Component {
name: "QDeclarativeLandmarkProximityFilter"
prototype: "QDeclarativeLandmarkFilterBase"
exports: [
"QtMobility.location/LandmarkProximityFilter 1.1"
]
Property { name: "center"; type: "QDeclarativeCoordinate"; isPointer: true }
Property { name: "radius"; type: "double" }
Signal { name: "radiusChanged" }
Signal { name: "centerChanged" }
}
Component {
name: "QDeclarativeLandmarkUnionFilter"
defaultProperty: "filters"
prototype: "QDeclarativeLandmarkCompoundFilter"
exports: [
"QtMobility.location/LandmarkUnionFilter 1.1"
]
}
Component {
name: "QDeclarativePosition"
prototype: "QObject"
exports: [
"QtMobility.location/Position 1.1"
]
Property { name: "latitudeValid"; type: "bool"; isReadonly: true }
Property { name: "longitudeValid"; type: "bool"; isReadonly: true }
Property { name: "altitudeValid"; type: "bool"; isReadonly: true }
Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isReadonly: true; isPointer: true }
Property { name: "timestamp"; type: "QDateTime"; isReadonly: true }
Property { name: "speed"; type: "double"; isReadonly: true }
Property { name: "speedValid"; type: "bool"; isReadonly: true }
Signal { name: "latitudeValidChanged" }
Signal { name: "longitudeValidChanged" }
Signal { name: "altitudeValidChanged" }
Signal { name: "timestampChanged" }
Signal { name: "speedChanged" }
Signal { name: "speedValidChanged" }
Signal { name: "coordinateChanged" }
}
Component {
name: "QDeclarativePositionSource"
prototype: "QObject"
exports: [
"QtMobility.location/PositionSource 1.1"
]
Enum {
name: "PositioningMethod"
values: {
"NoPositioningMethod": 0,
"SatellitePositioningMethod": 255,
"NonSatellitePositioningMethod": -256,
"AllPositioningMethods": -1
}
}
Property { name: "position"; type: "QDeclarativePosition"; isReadonly: true; isPointer: true }
Property { name: "active"; type: "bool" }
Property { name: "nmeaSource"; type: "QUrl" }
Property { name: "updateInterval"; type: "int" }
Property { name: "positioningMethod"; type: "PositioningMethod"; isReadonly: true }
Signal { name: "positionChanged" }
Signal { name: "activeChanged" }
Signal { name: "nmeaSourceChanged" }
Signal { name: "updateIntervalChanged" }
Signal { name: "positioningMethodChanged" }
Method { name: "update" }
Method { name: "start" }
Method { name: "stop" }
}
Component {
name: "QDeclarativeReverseGeocodeModel"
prototype: "QDeclarativeGeoSearchModel"
exports: [
"QtMobility.location/ReverseGeocodeModel 1.1"
]
Property { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
Signal {
name: "coordinateChanged"
Parameter { name: "coordinate"; type: "QDeclarativeCoordinate"; isPointer: true }
}
}
Component {
name: "QGeoMapCircleObject"
prototype: "QGeoMapObject"
Property { name: "center"; type: "QGeoCoordinate" }
Property { name: "radius"; type: "qreal" }
Property { name: "pen"; type: "QPen" }
Property { name: "brush"; type: "QBrush" }
Signal {
name: "centerChanged"
Parameter { name: "center"; type: "QGeoCoordinate" }
}
Signal {
name: "radiusChanged"
Parameter { name: "radius"; type: "qreal" }
}
Signal {
name: "penChanged"
Parameter { name: "pen"; type: "QPen" }
}
Signal {
name: "brushChanged"
Parameter { name: "brush"; type: "QBrush" }
}
}
Component {
name: "QGeoMapGroupObject"
prototype: "QGeoMapObject"
Signal {
name: "childAdded"
Parameter { name: "childObject"; type: "QGeoMapObject"; isPointer: true }
}
Signal {
name: "childRemoved"
Parameter { name: "childObject"; type: "QGeoMapObject"; isPointer: true }
}
}
Component {
name: "QGeoMapObject"
prototype: "QObject"
exports: [
"QtMobility.location/QGeoMapObject 1.1"
]
Property { name: "zValue"; type: "int" }
Property { name: "visible"; type: "bool" }
Property { name: "selected"; type: "bool" }
Signal {
name: "zValueChanged"
Parameter { name: "zValue"; type: "int" }
}
Signal {
name: "visibleChanged"
Parameter { name: "visible"; type: "bool" }
}
Signal {
name: "selectedChanged"
Parameter { name: "selected"; type: "bool" }
}
}
Component {
name: "QGeoMapPixmapObject"
prototype: "QGeoMapObject"
Property { name: "coordinate"; type: "QGeoCoordinate" }
Property { name: "pixmap"; type: "QPixmap" }
Property { name: "offset"; type: "QPoint" }
Signal {
name: "coordinateChanged"
Parameter { name: "coordinate"; type: "QGeoCoordinate" }
}
Signal {
name: "pixmapChanged"
Parameter { name: "pixmap"; type: "QPixmap" }
}
Signal {
name: "offsetChanged"
Parameter { name: "offset"; type: "QPoint" }
}
}
Component {
name: "QGeoMapPolygonObject"
prototype: "QGeoMapObject"
Property { name: "path"; type: "QList<QGeoCoordinate>" }
Property { name: "pen"; type: "QPen" }
Property { name: "brush"; type: "QBrush" }
Signal {
name: "pathChanged"
Parameter { name: "path"; type: "QList<QGeoCoordinate>" }
}
Signal {
name: "penChanged"
Parameter { name: "pen"; type: "QPen" }
}
Signal {
name: "brushChanged"
Parameter { name: "brush"; type: "QBrush" }
}
}
Component {
name: "QGeoMapPolylineObject"
prototype: "QGeoMapObject"
Property { name: "path"; type: "QList<QGeoCoordinate>" }
Property { name: "pen"; type: "QPen" }
Signal {
name: "pathChanged"
Parameter { name: "path"; type: "QList<QGeoCoordinate>" }
}
Signal {
name: "penChanged"
Parameter { name: "pen"; type: "QPen" }
}
}
Component {
name: "QGeoMapRectangleObject"
prototype: "QGeoMapObject"
Property { name: "topLeft"; type: "QGeoCoordinate" }
Property { name: "bottomRight"; type: "QGeoCoordinate" }
Property { name: "pen"; type: "QPen" }
Property { name: "brush"; type: "QBrush" }
Signal {
name: "topLeftChanged"
Parameter { name: "topLeft"; type: "QGeoCoordinate" }
}
Signal {
name: "bottomRightChanged"
Parameter { name: "bottomRight"; type: "QGeoCoordinate" }
}
Signal {
name: "penChanged"
Parameter { name: "pen"; type: "QPen" }
}
Signal {
name: "brushChanged"
Parameter { name: "brush"; type: "QBrush" }
}
}
Component {
name: "QGeoMapTextObject"
prototype: "QGeoMapObject"
Property { name: "coordinate"; type: "QGeoCoordinate" }
Property { name: "text"; type: "string" }
Property { name: "font"; type: "QFont" }
Property { name: "pen"; type: "QPen" }
Property { name: "brush"; type: "QBrush" }
Property { name: "offset"; type: "QPoint" }
Property { name: "alignment"; type: "Qt::Alignment" }
Signal {
name: "coordinateChanged"
Parameter { name: "coordinate"; type: "QGeoCoordinate" }
}
Signal {
name: "textChanged"
Parameter { name: "text"; type: "string" }
}
Signal {
name: "fontChanged"
Parameter { name: "font"; type: "QFont" }
}
Signal {
name: "penChanged"
Parameter { name: "pen"; type: "QPen" }
}
Signal {
name: "brushChanged"
Parameter { name: "brush"; type: "QBrush" }
}
Signal {
name: "offsetChanged"
Parameter { name: "offset"; type: "QPoint" }
}
Signal {
name: "alignmentChanged"
Parameter { name: "alignment"; type: "Qt::Alignment" }
}
}
}

View File

@@ -0,0 +1,264 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAbstractItemModel"
prototype: "QObject"
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" }
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" }
}
Component { name: "QAbstractListModel"; prototype: "QAbstractItemModel" }
Component {
name: "QDeclarativeMessageFilter"
prototype: "QDeclarativeMessageFilterBase"
exports: [
"QtMobility.messaging/MessageFilter 1.1"
]
Enum {
name: "FilterType"
values: {
"AncestorFolder": 0,
"ParentFolder": 1,
"Priority": 2,
"Recipients": 3,
"Sender": 4,
"Size": 5,
"StandardFolder": 6,
"Status": 7,
"Subject": 8,
"Timestamp": 9,
"ReceptionTimestamp": 10,
"Type": 11
}
}
Enum {
name: "Comparator"
values: {
"Includes": 0,
"Excludes": 1,
"Equal": 2,
"NotEqual": 3,
"LessThan": 4,
"LessThanEqual": 5,
"GreaterThan": 6,
"GreaterThanEqual": 7
}
}
Enum {
name: "Priority"
values: {
"HighPriority": 1,
"NormalPriority": 2,
"LowPriority": 3
}
}
Enum {
name: "Type"
values: {
"Mms": 1,
"Sms": 2,
"Email": 4,
"InstantMessage": 8,
"AnyType": -1
}
}
Enum {
name: "Status"
values: {
"Read": 1,
"HasAttachments": 2,
"Incoming": 4,
"Removed": 8
}
}
Property { name: "type"; type: "FilterType" }
Property { name: "value"; type: "QVariant" }
Property { name: "comparator"; type: "Comparator" }
Signal { name: "typeChanged" }
Signal { name: "valueChanged" }
Signal { name: "comparatorChanged" }
}
Component {
name: "QDeclarativeMessageFilterBase"
prototype: "QObject"
exports: [
"QtMobility.messaging/MessageFilterBase 1.1"
]
Property { name: "negated"; type: "bool" }
Signal { name: "negatedChanged" }
}
Component {
name: "QDeclarativeMessageIntersectionFilter"
defaultProperty: "filters"
prototype: "QDeclarativeMessageFilterBase"
exports: [
"QtMobility.messaging/MessageIntersectionFilter 1.1"
]
Property {
name: "filters"
type: "QDeclarativeMessageFilterBase"
isList: true
isReadonly: true
}
}
Component {
name: "QDeclarativeMessageModel"
prototype: "QAbstractListModel"
exports: [
"QtMobility.messaging/MessageModel 1.1"
]
Enum {
name: "SortKey"
values: {
"Priority": 0,
"Sender": 1,
"Size": 2,
"StatusRead": 3,
"StatusIncoming": 4,
"Subject": 5,
"Timestamp": 6,
"ReceptionTimestamp": 7,
"Recipients": 8,
"Type": 9
}
}
Enum {
name: "SortOrder"
values: {
"AscendingOrder": 0,
"DescendingOrder": 1
}
}
Property { name: "filter"; type: "QDeclarativeMessageFilterBase"; isPointer: true }
Property { name: "sortBy"; type: "SortKey" }
Property { name: "sortOrder"; type: "SortOrder" }
Property { name: "count"; type: "int"; isReadonly: true }
Property { name: "limit"; type: "int" }
Signal { name: "filterChanged" }
Signal { name: "sortByChanged" }
Signal { name: "sortOrderChanged" }
Signal { name: "limitChanged" }
Signal { name: "countChanged" }
Signal { name: "messageAdded" }
Method {
name: "showMessage"
Parameter { name: "index"; type: "int" }
}
Method {
name: "removeMessage"
Parameter { name: "index"; type: "int" }
}
}
Component {
name: "QDeclarativeMessageUnionFilter"
defaultProperty: "filters"
prototype: "QDeclarativeMessageFilterBase"
exports: [
"QtMobility.messaging/MessageUnionFilter 1.1"
]
Property {
name: "filters"
type: "QDeclarativeMessageFilterBase"
isList: true
isReadonly: true
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QValueSpaceSubscriber"
prototype: "QObject"
exports: [
"QtMobility.publishsubscribe/ValueSpaceSubscriber 1.1"
]
Property { name: "path"; type: "string" }
Property { name: "value"; type: "QVariant"; isReadonly: true }
Signal { name: "contentsChanged" }
}
}

View File

@@ -0,0 +1,205 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAccelerometer"
prototype: "QSensor"
exports: [
"QtMobility.sensors/Accelerometer 1.1"
]
}
Component {
name: "QAccelerometerReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/AccelerometerReading 1.1"
]
Property { name: "x"; type: "qreal"; isReadonly: true }
Property { name: "y"; type: "qreal"; isReadonly: true }
Property { name: "z"; type: "qreal"; isReadonly: true }
}
Component {
name: "QAmbientLightReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/AmbientLightReading 1.1"
]
Enum {
name: "LightLevel"
values: {
"Undefined": 0,
"Dark": 1,
"Twilight": 2,
"Light": 3,
"Bright": 4,
"Sunny": 5
}
}
Property { name: "lightLevel"; type: "LightLevel"; isReadonly: true }
}
Component {
name: "QAmbientLightSensor"
prototype: "QSensor"
exports: [
"QtMobility.sensors/AmbientLightSensor 1.1"
]
}
Component {
name: "QCompass"
prototype: "QSensor"
exports: [
"QtMobility.sensors/Compass 1.1"
]
}
Component {
name: "QCompassReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/CompassReading 1.1"
]
Property { name: "azimuth"; type: "qreal"; isReadonly: true }
Property { name: "calibrationLevel"; type: "qreal"; isReadonly: true }
}
Component {
name: "QMagnetometer"
prototype: "QSensor"
exports: [
"QtMobility.sensors/Magnetometer 1.1"
]
}
Component {
name: "QMagnetometerReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/MagnetometerReading 1.1"
]
Property { name: "x"; type: "qreal"; isReadonly: true }
Property { name: "y"; type: "qreal"; isReadonly: true }
Property { name: "z"; type: "qreal"; isReadonly: true }
Property { name: "calibrationLevel"; type: "qreal"; isReadonly: true }
}
Component {
name: "QOrientationReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/OrientationReading 1.1"
]
Enum {
name: "Orientation"
values: {
"Undefined": 0,
"TopUp": 1,
"TopDown": 2,
"LeftUp": 3,
"RightUp": 4,
"FaceUp": 5,
"FaceDown": 6
}
}
Property { name: "orientation"; type: "Orientation"; isReadonly: true }
}
Component {
name: "QOrientationSensor"
prototype: "QSensor"
exports: [
"QtMobility.sensors/OrientationSensor 1.1"
]
}
Component {
name: "QProximityReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/ProximityReading 1.1"
]
Property { name: "close"; type: "bool"; isReadonly: true }
}
Component {
name: "QProximitySensor"
prototype: "QSensor"
exports: [
"QtMobility.sensors/ProximitySensor 1.1"
]
}
Component {
name: "QRotationReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/RotationReading 1.1"
]
Property { name: "x"; type: "qreal"; isReadonly: true }
Property { name: "y"; type: "qreal"; isReadonly: true }
Property { name: "z"; type: "qreal"; isReadonly: true }
}
Component {
name: "QRotationSensor"
prototype: "QSensor"
exports: [
"QtMobility.sensors/RotationSensor 1.1"
]
}
Component {
name: "QSensor"
prototype: "QObject"
Property { name: "sensorid"; type: "QByteArray" }
Property { name: "type"; type: "QByteArray"; isReadonly: true }
Property { name: "connectedToBackend"; type: "bool"; isReadonly: true }
Property { name: "availableDataRates"; type: "QtMobility::qrangelist"; isReadonly: true }
Property { name: "dataRate"; type: "int" }
Property { name: "reading"; type: "QSensorReading"; isReadonly: true; isPointer: true }
Property { name: "busy"; type: "bool"; isReadonly: true }
Property { name: "active"; type: "bool" }
Property { name: "outputRanges"; type: "QtMobility::qoutputrangelist"; isReadonly: true }
Property { name: "outputRange"; type: "int" }
Property { name: "description"; type: "string"; isReadonly: true }
Property { name: "error"; type: "int"; isReadonly: true }
Signal { name: "busyChanged" }
Signal { name: "activeChanged" }
Signal { name: "readingChanged" }
Signal {
name: "sensorError"
Parameter { name: "error"; type: "int" }
}
Method { name: "start"; type: "bool" }
Method { name: "stop" }
Method { name: "connectToBackend"; type: "bool" }
}
Component {
name: "QSensorReading"
prototype: "QObject"
Property { name: "timestamp"; type: "QtMobility::qtimestamp"; isReadonly: true }
}
Component {
name: "QTapReading"
prototype: "QSensorReading"
exports: [
"QtMobility.sensors/TapReading 1.1"
]
Enum {
name: "TapDirection"
values: {
"Undefined": 0,
"X": 1,
"Y": 2,
"Z": 4,
"X_Pos": 17,
"Y_Pos": 34,
"Z_Pos": 68,
"X_Neg": 257,
"Y_Neg": 514,
"Z_Neg": 1028
}
}
Property { name: "tapDirection"; type: "TapDirection"; isReadonly: true }
Property { name: "doubleTap"; type: "bool"; isReadonly: true }
}
Component {
name: "QTapSensor"
prototype: "QSensor"
exports: [
"QtMobility.sensors/TapSensor 1.1"
]
}
}

View File

@@ -0,0 +1,55 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeService"
prototype: "QObject"
exports: [
"QtMobility.serviceframework/Service 1.1"
]
Property { name: "interfaceName"; type: "string" }
Property { name: "serviceName"; type: "string"; isReadonly: true }
Property { name: "majorVersion"; type: "int"; isReadonly: true }
Property { name: "minorVersion"; type: "int"; isReadonly: true }
Property { name: "valid"; type: "bool"; isReadonly: true }
Property { name: "serviceObject"; type: "QObject"; isReadonly: true; isPointer: true }
Signal { name: "validChanged" }
Signal { name: "serviceObjectChanged" }
Signal { name: "interfaceNameChanged" }
Signal { name: "serviceNameChanged" }
Signal { name: "majorVersionChanged" }
Signal { name: "minorVersionChanged" }
}
Component {
name: "QDeclarativeServiceList"
prototype: "QObject"
exports: [
"QtMobility.serviceframework/ServiceList 1.1"
]
Enum {
name: "MatchRule"
values: {
"Minimum": 0,
"Exact": 1
}
}
Property { name: "serviceName"; type: "string" }
Property { name: "interfaceName"; type: "string" }
Property { name: "majorVersion"; type: "int" }
Property { name: "minorVersion"; type: "int" }
Property { name: "services"; type: "QDeclarativeService"; isList: true; isReadonly: true }
Property { name: "versionMatch"; type: "MatchRule" }
Signal {
name: "servicesChanged"
Parameter { type: "QDeclarativeService"; isList: true }
}
Signal { name: "serviceNameChanged" }
Signal { name: "interfaceNameChanged" }
Signal { name: "minorVersionChanged" }
Signal { name: "majorVersionChanged" }
Signal { name: "versionMatchChanged" }
}
}

View File

@@ -0,0 +1,382 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeDeviceInfo"
prototype: "QSystemDeviceInfo"
exports: [
"QtMobility.systeminfo/DeviceInfo 1.1"
]
Signal {
name: "batteryLevelChanged"
Parameter { name: "level"; type: "int" }
}
Signal {
name: "batteryStatusChanged"
Parameter { name: "batteryStatus"; type: "QSystemDeviceInfo::BatteryStatus" }
}
Signal {
name: "powerStateChanged"
Parameter { name: "powerState"; type: "QSystemDeviceInfo::PowerState" }
}
Signal {
name: "currentProfileChanged"
Parameter { name: "currentProfile"; type: "QSystemDeviceInfo::Profile" }
}
Signal {
name: "bluetoothStateChanged"
Parameter { name: "on"; type: "bool" }
}
Method { name: "startBatteryLevelChanged" }
Method { name: "startBatteryStatusChanged" }
Method { name: "startPowerStateChanged" }
Method { name: "startCurrentProfileChanged" }
Method { name: "startBluetoothStateChanged" }
}
Component {
name: "QDeclarativeGeneralInfo"
prototype: "QSystemInfo"
exports: [
"QtMobility.systeminfo/GeneralInfo 1.1"
]
Signal {
name: "currentLanguageChanged"
Parameter { name: "language"; type: "string" }
}
Method { name: "startCurrentLanguageChanged" }
}
Component {
name: "QDeclarativeNetworkInfo"
prototype: "QSystemNetworkInfo"
exports: [
"QtMobility.systeminfo/NetworkInfo 1.1"
]
Property { name: "networkStatus"; type: "string"; isReadonly: true }
Property { name: "networkName"; type: "string"; isReadonly: true }
Property { name: "networkSignalStrength"; type: "int"; isReadonly: true }
Property { name: "macAddress"; type: "string"; isReadonly: true }
Property { name: "mode"; type: "QSystemNetworkInfo::NetworkMode" }
Property {
name: "availableModes"
type: "QList<QSystemNetworkInfo::NetworkMode>"
isReadonly: true
}
Signal {
name: "statusChanged"
Parameter { name: "newStatus"; type: "string" }
}
Signal {
name: "signalStrengthChanged"
Parameter { name: "strength"; type: "int" }
}
Signal {
name: "nameChanged"
Parameter { name: "name"; type: "string" }
}
Signal { name: "modeChanged" }
Signal {
name: "currentMobileCountryCodeChanged"
Parameter { name: "newMcc"; type: "string" }
}
Signal {
name: "currentMobileNetworkCodeChanged"
Parameter { name: "newMnc"; type: "string" }
}
Method { name: "interfaceForMode"; type: "QNetworkInterface" }
Method { name: "startStatusChanged" }
Method { name: "startSignalStrengthChanged" }
Method { name: "startNameChanged" }
Method { name: "startModeChanged" }
Method { name: "startCurrentMobileCountryCodeChanged" }
Method { name: "startCurrentMobileNetworkCodeChanged" }
Method { name: "availableModes"; type: "QList<QSystemNetworkInfo::NetworkMode>" }
}
Component {
name: "QDeclarativeScreenSaver"
prototype: "QObject"
exports: [
"QtMobility.systeminfo/ScreenSaver 1.1"
]
Property { name: "screenSaverDelayed"; type: "bool" }
Property { name: "screenSaverInhibited"; type: "bool"; isReadonly: true }
Method {
name: "setScreenSaverDelayed"
Parameter { name: "on"; type: "bool" }
}
Method { name: "setScreenSaverInhibit"; type: "bool" }
}
Component {
name: "QSystemDeviceInfo"
prototype: "QObject"
Enum {
name: "BatteryStatus"
values: {
"NoBatteryLevel": 0,
"BatteryCritical": 1,
"BatteryVeryLow": 2,
"BatteryLow": 3,
"BatteryNormal": 4
}
}
Enum {
name: "PowerState"
values: {
"UnknownPower": 0,
"BatteryPower": 1,
"WallPower": 2,
"WallPowerChargingBattery": 3
}
}
Enum {
name: "InputMethod"
values: {
"Keys": 1,
"Keypad": 2,
"Keyboard": 4,
"SingleTouch": 8,
"MultiTouch": 16,
"Mouse": 32
}
}
Enum {
name: "InputMethodFlags"
values: {
"Keys": 1,
"Keypad": 2,
"Keyboard": 4,
"SingleTouch": 8,
"MultiTouch": 16,
"Mouse": 32
}
}
Enum {
name: "Profile"
values: {
"UnknownProfile": 0,
"SilentProfile": 1,
"NormalProfile": 2,
"LoudProfile": 3,
"VibProfile": 4,
"OfflineProfile": 5,
"PowersaveProfile": 6,
"CustomProfile": 7,
"BeepProfile": 8
}
}
Enum {
name: "SimStatus"
values: {
"SimNotAvailable": 0,
"SingleSimAvailable": 1,
"DualSimAvailable": 2,
"SimLocked": 3
}
}
Property { name: "currentProfile"; type: "Profile"; isReadonly: true }
Property { name: "powerState"; type: "PowerState"; isReadonly: true }
Property { name: "simStatus"; type: "SimStatus"; isReadonly: true }
Property { name: "batteryStatus"; type: "BatteryStatus"; isReadonly: true }
Property { name: "inputMethodType"; type: "InputMethodFlags"; isReadonly: true }
Property { name: "imei"; type: "string"; isReadonly: true }
Property { name: "imsi"; type: "string"; isReadonly: true }
Property { name: "manufacturer"; type: "string"; isReadonly: true }
Property { name: "model"; type: "string"; isReadonly: true }
Property { name: "productName"; type: "string"; isReadonly: true }
Property { name: "batteryLevel"; type: "int"; isReadonly: true }
Property { name: "isDeviceLocked"; type: "bool"; isReadonly: true }
Property { name: "currentBluetoothPowerState"; type: "bool"; isReadonly: true }
Property { name: "currentPowerState"; type: "QSystemDeviceInfo::PowerState"; isReadonly: true }
Signal {
name: "batteryLevelChanged"
Parameter { name: "level"; type: "int" }
}
Signal {
name: "batteryStatusChanged"
Parameter { name: "batteryStatus"; type: "QSystemDeviceInfo::BatteryStatus" }
}
Signal {
name: "powerStateChanged"
Parameter { name: "powerState"; type: "QSystemDeviceInfo::PowerState" }
}
Signal {
name: "currentProfileChanged"
Parameter { name: "currentProfile"; type: "QSystemDeviceInfo::Profile" }
}
Signal {
name: "bluetoothStateChanged"
Parameter { name: "on"; type: "bool" }
}
}
Component {
name: "QSystemDisplayInfo"
prototype: "QObject"
exports: [
"QtMobility.systeminfo/DisplayInfo 1.1"
]
}
Component {
name: "QSystemInfo"
prototype: "QObject"
Enum {
name: "Version"
values: {
"Os": 1,
"QtCore": 2,
"Firmware": 3,
"QtMobility": 4
}
}
Enum {
name: "Feature"
values: {
"BluetoothFeature": 0,
"CameraFeature": 1,
"FmradioFeature": 2,
"IrFeature": 3,
"LedFeature": 4,
"MemcardFeature": 5,
"UsbFeature": 6,
"VibFeature": 7,
"WlanFeature": 8,
"SimFeature": 9,
"LocationFeature": 10,
"VideoOutFeature": 11,
"HapticsFeature": 12
}
}
Property { name: "currentLanguage"; type: "string"; isReadonly: true }
Property { name: "availableLanguages"; type: "QStringList"; isReadonly: true }
Property { name: "currentCountryCode"; type: "string"; isReadonly: true }
Signal {
name: "currentLanguageChanged"
Parameter { type: "string" }
}
}
Component {
name: "QSystemNetworkInfo"
prototype: "QObject"
Enum {
name: "NetworkStatus"
values: {
"UndefinedStatus": 0,
"NoNetworkAvailable": 1,
"EmergencyOnly": 2,
"Searching": 3,
"Busy": 4,
"Connected": 5,
"HomeNetwork": 6,
"Denied": 7,
"Roaming": 8
}
}
Enum {
name: "NetworkMode"
values: {
"UnknownMode": 0,
"GsmMode": 1,
"CdmaMode": 2,
"WcdmaMode": 3,
"WlanMode": 4,
"EthernetMode": 5,
"BluetoothMode": 6,
"WimaxMode": 7
}
}
Property { name: "cellId"; type: "int"; isReadonly: true }
Property { name: "locationAreaCode"; type: "int"; isReadonly: true }
Property { name: "currentMobileCountryCode"; type: "string"; isReadonly: true }
Property { name: "currentMobileNetworkCode"; type: "string"; isReadonly: true }
Property { name: "homeMobileCountryCode"; type: "string"; isReadonly: true }
Property { name: "homeMobileNetworkCode"; type: "string"; isReadonly: true }
Property { name: "currentMode"; type: "QSystemNetworkInfo::NetworkMode"; isReadonly: true }
Signal {
name: "networkStatusChanged"
Parameter { type: "QSystemNetworkInfo::NetworkMode" }
Parameter { type: "QSystemNetworkInfo::NetworkStatus" }
}
Signal {
name: "networkSignalStrengthChanged"
Parameter { type: "QSystemNetworkInfo::NetworkMode" }
Parameter { type: "int" }
}
Signal {
name: "currentMobileCountryCodeChanged"
Parameter { type: "string" }
}
Signal {
name: "currentMobileNetworkCodeChanged"
Parameter { type: "string" }
}
Signal {
name: "networkNameChanged"
Parameter { type: "QSystemNetworkInfo::NetworkMode" }
Parameter { type: "string" }
}
Signal {
name: "networkModeChanged"
Parameter { type: "QSystemNetworkInfo::NetworkMode" }
}
Method {
name: "networkStatus"
type: "QSystemNetworkInfo::NetworkStatus"
Parameter { name: "mode"; type: "QSystemNetworkInfo::NetworkMode" }
}
Method {
name: "networkSignalStrength"
type: "int"
Parameter { name: "mode"; type: "QSystemNetworkInfo::NetworkMode" }
}
Method {
name: "macAddress"
type: "string"
Parameter { name: "mode"; type: "QSystemNetworkInfo::NetworkMode" }
}
Method { name: "currentMode"; type: "QSystemNetworkInfo::NetworkMode" }
Method {
name: "networkName"
type: "string"
Parameter { name: "mode"; type: "QSystemNetworkInfo::NetworkMode" }
}
}
Component {
name: "QSystemStorageInfo"
prototype: "QObject"
exports: [
"QtMobility.systeminfo/StorageInfo 1.1"
]
Enum {
name: "DriveType"
values: {
"NoDrive": 0,
"InternalDrive": 1,
"RemovableDrive": 2,
"RemoteDrive": 3,
"CdromDrive": 4
}
}
Property { name: "logicalDrives"; type: "QStringList"; isReadonly: true }
Signal {
name: "logicalDriveChanged"
Parameter { name: "added"; type: "bool" }
Parameter { name: "vol"; type: "string" }
}
Method {
name: "totalDiskSpace"
type: "qlonglong"
Parameter { name: "driveVolume"; type: "string" }
}
Method {
name: "availableDiskSpace"
type: "qlonglong"
Parameter { name: "driveVolume"; type: "string" }
}
Method {
name: "typeForDrive"
type: "QSystemStorageInfo::DriveType"
Parameter { name: "driveVolume"; type: "string" }
}
}
}

View File

@@ -0,0 +1,430 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QDeclarativeAudio"
prototype: "QObject"
exports: [
"QtMultimediaKit/Audio 1.1"
]
Enum {
name: "Status"
values: {
"UnknownStatus": 0,
"NoMedia": 1,
"Loading": 2,
"Loaded": 3,
"Stalled": 4,
"Buffering": 5,
"Buffered": 6,
"EndOfMedia": 7,
"InvalidMedia": 8
}
}
Enum {
name: "Error"
values: {
"NoError": 0,
"ResourceError": 1,
"FormatError": 2,
"NetworkError": 3,
"AccessDenied": 4,
"ServiceMissing": 5
}
}
Property { name: "source"; type: "QUrl" }
Property { name: "autoLoad"; type: "bool" }
Property { name: "playing"; type: "bool" }
Property { name: "paused"; type: "bool" }
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "duration"; type: "int"; isReadonly: true }
Property { name: "position"; type: "int" }
Property { name: "volume"; type: "qreal" }
Property { name: "muted"; type: "bool" }
Property { name: "bufferProgress"; type: "int"; isReadonly: true }
Property { name: "seekable"; type: "bool"; isReadonly: true }
Property { name: "playbackRate"; type: "qreal" }
Property { name: "error"; type: "Error"; isReadonly: true }
Property { name: "errorString"; type: "string"; isReadonly: true }
Property {
name: "metaData"
type: "QDeclarativeMediaMetaData"
isReadonly: true
isPointer: true
}
Signal { name: "sourceChanged" }
Signal { name: "autoLoadChanged" }
Signal { name: "playingChanged" }
Signal { name: "pausedChanged" }
Signal { name: "started" }
Signal { name: "resumed" }
Signal { name: "paused" }
Signal { name: "stopped" }
Signal { name: "statusChanged" }
Signal { name: "durationChanged" }
Signal { name: "positionChanged" }
Signal { name: "volumeChanged" }
Signal { name: "mutedChanged" }
Signal { name: "bufferProgressChanged" }
Signal { name: "seekableChanged" }
Signal { name: "playbackRateChanged" }
Signal { name: "errorChanged" }
Signal {
name: "error"
Parameter { name: "error"; type: "QDeclarativeAudio::Error" }
Parameter { name: "errorString"; type: "string" }
}
Method { name: "play" }
Method { name: "pause" }
Method { name: "stop" }
}
Component {
name: "QDeclarativeCamera"
defaultProperty: "data"
prototype: "QDeclarativeItem"
exports: [
"QtMultimediaKit/Camera 1.1"
]
Enum {
name: "State"
values: {
"ActiveState": 2,
"LoadedState": 1,
"UnloadedState": 0
}
}
Enum {
name: "LockStatus"
values: {
"Unlocked": 0,
"Searching": 1,
"Locked": 2
}
}
Enum {
name: "Error"
values: {
"NoError": 0,
"CameraError": 1,
"InvalidRequestError": 2,
"ServiceMissingError": 3,
"NotSupportedFeatureError": 4
}
}
Enum {
name: "FlashMode"
values: {
"FlashAuto": 1,
"FlashOff": 2,
"FlashOn": 4,
"FlashRedEyeReduction": 8,
"FlashFill": 16,
"FlashTorch": 32,
"FlashSlowSyncFrontCurtain": 64,
"FlashSlowSyncRearCurtain": 128,
"FlashManual": 256
}
}
Enum {
name: "ExposureMode"
values: {
"ExposureAuto": 0,
"ExposureManual": 1,
"ExposurePortrait": 2,
"ExposureNight": 3,
"ExposureBacklight": 4,
"ExposureSpotlight": 5,
"ExposureSports": 6,
"ExposureSnow": 7,
"ExposureBeach": 8,
"ExposureLargeAperture": 9,
"ExposureSmallAperture": 10,
"ExposureModeVendor": 1000
}
}
Enum {
name: "WhiteBalanceMode"
values: {
"WhiteBalanceAuto": 0,
"WhiteBalanceManual": 1,
"WhiteBalanceSunlight": 2,
"WhiteBalanceCloudy": 3,
"WhiteBalanceShade": 4,
"WhiteBalanceTungsten": 5,
"WhiteBalanceFluorescent": 6,
"WhiteBalanceIncandescent": 7,
"WhiteBalanceFlash": 8,
"WhiteBalanceSunset": 9,
"WhiteBalanceVendor": 1000
}
}
Property { name: "cameraState"; type: "State" }
Property { name: "lockStatus"; type: "LockStatus"; isReadonly: true }
Property { name: "errorString"; type: "string"; isReadonly: true }
Property { name: "capturedImagePath"; type: "string"; isReadonly: true }
Property { name: "iso"; type: "int" }
Property { name: "shutterSpeed"; type: "qreal"; isReadonly: true }
Property { name: "aperture"; type: "qreal"; isReadonly: true }
Property { name: "exposureCompensation"; type: "qreal" }
Property { name: "exposureMode"; type: "ExposureMode" }
Property { name: "flashMode"; type: "int" }
Property { name: "whiteBalanceMode"; type: "WhiteBalanceMode" }
Property { name: "manualWhiteBalance"; type: "int" }
Property { name: "captureResolution"; type: "QSize" }
Property { name: "opticalZoom"; type: "qreal" }
Property { name: "maximumOpticalZoom"; type: "qreal"; isReadonly: true }
Property { name: "digitalZoom"; type: "qreal" }
Property { name: "maximumDigitalZoom"; type: "qreal"; isReadonly: true }
Signal { name: "errorChanged" }
Signal {
name: "error"
Parameter { name: "error"; type: "QDeclarativeCamera::Error" }
Parameter { name: "errorString"; type: "string" }
}
Signal {
name: "cameraStateChanged"
Parameter { type: "QDeclarativeCamera::State" }
}
Signal { name: "lockStatusChanged" }
Signal {
name: "imageCaptured"
Parameter { name: "preview"; type: "string" }
}
Signal {
name: "imageSaved"
Parameter { name: "path"; type: "string" }
}
Signal {
name: "captureFailed"
Parameter { name: "message"; type: "string" }
}
Signal {
name: "isoSensitivityChanged"
Parameter { type: "int" }
}
Signal {
name: "apertureChanged"
Parameter { type: "qreal" }
}
Signal {
name: "shutterSpeedChanged"
Parameter { type: "qreal" }
}
Signal {
name: "exposureCompensationChanged"
Parameter { type: "qreal" }
}
Signal {
name: "exposureModeChanged"
Parameter { type: "QDeclarativeCamera::ExposureMode" }
}
Signal {
name: "flashModeChanged"
Parameter { type: "int" }
}
Signal {
name: "whiteBalanceModeChanged"
Parameter { type: "QDeclarativeCamera::WhiteBalanceMode" }
}
Signal {
name: "manualWhiteBalanceChanged"
Parameter { type: "int" }
}
Signal {
name: "captureResolutionChanged"
Parameter { type: "QSize" }
}
Signal {
name: "opticalZoomChanged"
Parameter { type: "qreal" }
}
Signal {
name: "digitalZoomChanged"
Parameter { type: "qreal" }
}
Signal {
name: "maximumOpticalZoomChanged"
Parameter { type: "qreal" }
}
Signal {
name: "maximumDigitalZoomChanged"
Parameter { type: "qreal" }
}
Method { name: "start" }
Method { name: "stop" }
Method {
name: "setCameraState"
Parameter { name: "state"; type: "State" }
}
Method { name: "searchAndLock" }
Method { name: "unlock" }
Method { name: "captureImage" }
Method {
name: "setFlashMode"
Parameter { type: "int" }
}
Method {
name: "setExposureMode"
Parameter { type: "QDeclarativeCamera::ExposureMode" }
}
Method {
name: "setExposureCompensation"
Parameter { name: "ev"; type: "qreal" }
}
Method {
name: "setManualIsoSensitivity"
Parameter { name: "iso"; type: "int" }
}
Method {
name: "setWhiteBalanceMode"
Parameter { name: "mode"; type: "QDeclarativeCamera::WhiteBalanceMode" }
}
Method {
name: "setManualWhiteBalance"
Parameter { name: "colorTemp"; type: "int" }
}
Method {
name: "setCaptureResolution"
Parameter { name: "size"; type: "QSize" }
}
Method {
name: "setOpticalZoom"
Parameter { type: "qreal" }
}
Method {
name: "setDigitalZoom"
Parameter { type: "qreal" }
}
}
Component {
name: "QDeclarativeVideo"
defaultProperty: "data"
prototype: "QDeclarativeItem"
exports: [
"QtMultimediaKit/Video 1.1"
]
Enum {
name: "FillMode"
values: {
"Stretch": 0,
"PreserveAspectFit": 1,
"PreserveAspectCrop": 2
}
}
Enum {
name: "Status"
values: {
"UnknownStatus": 0,
"NoMedia": 1,
"Loading": 2,
"Loaded": 3,
"Stalled": 4,
"Buffering": 5,
"Buffered": 6,
"EndOfMedia": 7,
"InvalidMedia": 8
}
}
Enum {
name: "Error"
values: {
"NoError": 0,
"ResourceError": 1,
"FormatError": 2,
"NetworkError": 3,
"AccessDenied": 4,
"ServiceMissing": 5
}
}
Property { name: "source"; type: "QUrl" }
Property { name: "autoLoad"; type: "bool" }
Property { name: "playing"; type: "bool" }
Property { name: "paused"; type: "bool" }
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "duration"; type: "int"; isReadonly: true }
Property { name: "position"; type: "int" }
Property { name: "volume"; type: "qreal" }
Property { name: "muted"; type: "bool" }
Property { name: "hasAudio"; type: "bool"; isReadonly: true }
Property { name: "hasVideo"; type: "bool"; isReadonly: true }
Property { name: "bufferProgress"; type: "int"; isReadonly: true }
Property { name: "seekable"; type: "bool"; isReadonly: true }
Property { name: "playbackRate"; type: "qreal" }
Property { name: "error"; type: "Error"; isReadonly: true }
Property { name: "errorString"; type: "string"; isReadonly: true }
Property { name: "fillMode"; type: "FillMode" }
Property {
name: "metaData"
type: "QDeclarativeMediaMetaData"
isReadonly: true
isPointer: true
}
Signal { name: "sourceChanged" }
Signal { name: "autoLoadChanged" }
Signal { name: "playingChanged" }
Signal { name: "pausedChanged" }
Signal { name: "started" }
Signal { name: "resumed" }
Signal { name: "paused" }
Signal { name: "stopped" }
Signal { name: "statusChanged" }
Signal { name: "durationChanged" }
Signal { name: "positionChanged" }
Signal { name: "volumeChanged" }
Signal { name: "mutedChanged" }
Signal { name: "hasAudioChanged" }
Signal { name: "hasVideoChanged" }
Signal { name: "bufferProgressChanged" }
Signal { name: "seekableChanged" }
Signal { name: "playbackRateChanged" }
Signal { name: "errorChanged" }
Signal {
name: "error"
Parameter { name: "error"; type: "QDeclarativeVideo::Error" }
Parameter { name: "errorString"; type: "string" }
}
Method { name: "play" }
Method { name: "pause" }
Method { name: "stop" }
}
Component {
name: "QSoundEffect"
prototype: "QObject"
exports: [
"QtMultimediaKit/SoundEffect 1.1"
]
Enum {
name: "Loop"
values: {
"Infinite": -2
}
}
Enum {
name: "Status"
values: {
"Null": 0,
"Loading": 1,
"Ready": 2,
"Error": 3
}
}
Property { name: "source"; type: "QUrl" }
Property { name: "loops"; type: "int" }
Property { name: "volume"; type: "qreal" }
Property { name: "muted"; type: "bool" }
Property { name: "playing"; type: "bool"; isReadonly: true }
Property { name: "status"; type: "Status"; isReadonly: true }
Signal { name: "sourceChanged" }
Signal { name: "loopCountChanged" }
Signal { name: "volumeChanged" }
Signal { name: "mutedChanged" }
Signal { name: "loadedChanged" }
Signal { name: "playingChanged" }
Signal { name: "statusChanged" }
Method { name: "play" }
Method { name: "stop" }
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,209 @@
import QtQuick.tooling 1.0
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
Component {
name: "QAction"
prototype: "QObject"
Enum {
name: "MenuRole"
values: {
"NoRole": 0,
"TextHeuristicRole": 1,
"ApplicationSpecificRole": 2,
"AboutQtRole": 3,
"AboutRole": 4,
"PreferencesRole": 5,
"QuitRole": 6
}
}
Enum {
name: "SoftKeyRole"
values: {
"NoSoftKey": 0,
"PositiveSoftKey": 1,
"NegativeSoftKey": 2,
"SelectSoftKey": 3
}
}
Enum {
name: "Priority"
values: {
"LowPriority": 0,
"NormalPriority": 128,
"HighPriority": 256
}
}
Property { name: "checkable"; type: "bool" }
Property { name: "checked"; type: "bool" }
Property { name: "enabled"; type: "bool" }
Property { name: "icon"; type: "QIcon" }
Property { name: "text"; type: "string" }
Property { name: "iconText"; type: "string" }
Property { name: "toolTip"; type: "string" }
Property { name: "statusTip"; type: "string" }
Property { name: "whatsThis"; type: "string" }
Property { name: "font"; type: "QFont" }
Property { name: "shortcut"; type: "QKeySequence" }
Property { name: "shortcutContext"; type: "Qt::ShortcutContext" }
Property { name: "autoRepeat"; type: "bool" }
Property { name: "visible"; type: "bool" }
Property { name: "menuRole"; type: "MenuRole" }
Property { name: "softKeyRole"; type: "SoftKeyRole" }
Property { name: "iconVisibleInMenu"; type: "bool" }
Property { name: "priority"; type: "Priority" }
Signal { name: "changed" }
Signal {
name: "triggered"
Parameter { name: "checked"; type: "bool" }
}
Signal { name: "triggered" }
Signal { name: "hovered" }
Signal {
name: "toggled"
Parameter { type: "bool" }
}
Method { name: "trigger" }
Method { name: "hover" }
Method {
name: "setChecked"
Parameter { type: "bool" }
}
Method { name: "toggle" }
Method {
name: "setEnabled"
Parameter { type: "bool" }
}
Method {
name: "setDisabled"
Parameter { name: "b"; type: "bool" }
}
Method {
name: "setVisible"
Parameter { type: "bool" }
}
}
Component {
name: "QDeclarativeWebSettings"
prototype: "QObject"
Property { name: "standardFontFamily"; type: "string" }
Property { name: "fixedFontFamily"; type: "string" }
Property { name: "serifFontFamily"; type: "string" }
Property { name: "sansSerifFontFamily"; type: "string" }
Property { name: "cursiveFontFamily"; type: "string" }
Property { name: "fantasyFontFamily"; type: "string" }
Property { name: "minimumFontSize"; type: "int" }
Property { name: "minimumLogicalFontSize"; type: "int" }
Property { name: "defaultFontSize"; type: "int" }
Property { name: "defaultFixedFontSize"; type: "int" }
Property { name: "autoLoadImages"; type: "bool" }
Property { name: "javascriptEnabled"; type: "bool" }
Property { name: "javaEnabled"; type: "bool" }
Property { name: "pluginsEnabled"; type: "bool" }
Property { name: "privateBrowsingEnabled"; type: "bool" }
Property { name: "javascriptCanOpenWindows"; type: "bool" }
Property { name: "javascriptCanAccessClipboard"; type: "bool" }
Property { name: "developerExtrasEnabled"; type: "bool" }
Property { name: "linksIncludedInFocusChain"; type: "bool" }
Property { name: "zoomTextOnly"; type: "bool" }
Property { name: "printElementBackgrounds"; type: "bool" }
Property { name: "offlineStorageDatabaseEnabled"; type: "bool" }
Property { name: "offlineWebApplicationCacheEnabled"; type: "bool" }
Property { name: "localStorageDatabaseEnabled"; type: "bool" }
Property { name: "localContentCanAccessRemoteUrls"; type: "bool" }
}
Component {
name: "QDeclarativeWebView"
defaultProperty: "data"
prototype: "QDeclarativeItem"
exports: [
"QtWebKit/WebView 1.0"
]
Enum {
name: "Status"
values: {
"Null": 0,
"Ready": 1,
"Loading": 2,
"Error": 3
}
}
Property { name: "title"; type: "string"; isReadonly: true }
Property { name: "icon"; type: "QPixmap"; isReadonly: true }
Property { name: "statusText"; type: "string"; isReadonly: true }
Property { name: "html"; type: "string" }
Property { name: "pressGrabTime"; type: "int" }
Property { name: "preferredWidth"; type: "int" }
Property { name: "preferredHeight"; type: "int" }
Property { name: "url"; type: "QUrl" }
Property { name: "progress"; type: "qreal"; isReadonly: true }
Property { name: "status"; type: "Status"; isReadonly: true }
Property { name: "reload"; type: "QAction"; isReadonly: true; isPointer: true }
Property { name: "back"; type: "QAction"; isReadonly: true; isPointer: true }
Property { name: "forward"; type: "QAction"; isReadonly: true; isPointer: true }
Property { name: "stop"; type: "QAction"; isReadonly: true; isPointer: true }
Property { name: "settings"; type: "QDeclarativeWebSettings"; isReadonly: true; isPointer: true }
Property { name: "javaScriptWindowObjects"; type: "QObject"; isList: true; isReadonly: true }
Property { name: "newWindowComponent"; type: "QDeclarativeComponent"; isPointer: true }
Property { name: "newWindowParent"; type: "QDeclarativeItem"; isPointer: true }
Property { name: "renderingEnabled"; type: "bool" }
Property { name: "contentsSize"; type: "QSize"; isReadonly: true }
Property { name: "contentsScale"; type: "qreal" }
Signal { name: "preferredWidthChanged" }
Signal { name: "preferredHeightChanged" }
Signal { name: "urlChanged" }
Signal { name: "progressChanged" }
Signal {
name: "statusChanged"
Parameter { type: "Status" }
}
Signal {
name: "titleChanged"
Parameter { type: "string" }
}
Signal { name: "iconChanged" }
Signal { name: "statusTextChanged" }
Signal { name: "htmlChanged" }
Signal { name: "pressGrabTimeChanged" }
Signal { name: "newWindowComponentChanged" }
Signal { name: "newWindowParentChanged" }
Signal { name: "renderingEnabledChanged" }
Signal {
name: "contentsSizeChanged"
Parameter { type: "QSize" }
}
Signal { name: "contentsScaleChanged" }
Signal { name: "loadStarted" }
Signal { name: "loadFinished" }
Signal { name: "loadFailed" }
Signal {
name: "doubleClick"
Parameter { name: "clickX"; type: "int" }
Parameter { name: "clickY"; type: "int" }
}
Signal {
name: "zoomTo"
Parameter { name: "zoom"; type: "qreal" }
Parameter { name: "centerX"; type: "int" }
Parameter { name: "centerY"; type: "int" }
}
Signal {
name: "alert"
Parameter { name: "message"; type: "string" }
}
Method {
name: "evaluateJavaScript"
type: "QVariant"
Parameter { type: "string" }
}
Method {
name: "heuristicZoom"
type: "bool"
Parameter { name: "clickX"; type: "int" }
Parameter { name: "clickY"; type: "int" }
Parameter { name: "maxzoom"; type: "qreal" }
}
}
}

View File

@@ -201,7 +201,8 @@ public:
foreach (const QDeclarativeType *qmlTy, qmlTypes) { foreach (const QDeclarativeType *qmlTy, qmlTypes) {
QString qmlTyName = qmlTy->qmlTypeName(); QString qmlTyName = qmlTy->qmlTypeName();
if (qmlTyName.startsWith(relocatableModuleUri + QLatin1Char('/'))) { if (!relocatableModuleUri.isNull()
&& qmlTyName.startsWith(relocatableModuleUri + QLatin1Char('/'))) {
qmlTyName.remove(0, relocatableModuleUri.size() + 1); qmlTyName.remove(0, relocatableModuleUri.size() + 1);
} }
exports += enquote(QString("%1 %2.%3").arg( exports += enquote(QString("%1 %2.%3").arg(
@@ -359,6 +360,15 @@ void sigSegvHandler(int) {
} }
#endif #endif
void printUsage(const QString &appName)
{
qWarning() << qPrintable(QString(
"Usage: %1 [--notrelocatable] module.uri version [module/import/path]\n"
" %1 --builtins\n"
"Example: %1 Qt.labs.particles 4.7 /home/user/dev/qt-install/imports").arg(
appName));
}
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
@@ -380,23 +390,39 @@ int main(int argc, char *argv[])
QApplication app(argc, argv); QApplication app(argc, argv);
const QStringList args = app.arguments(); const QStringList args = app.arguments();
const QString appName = QFileInfo(app.applicationFilePath()).baseName(); const QString appName = QFileInfo(app.applicationFilePath()).baseName();
if (args.size() != 3 && args.size() != 4 && !(args.size() == 2 && args.at(1) == QLatin1String("--builtins"))) { if (!(args.size() >= 3 || (args.size() == 2 && args.at(1) == QLatin1String("--builtins")))) {
qWarning() << qPrintable(QString( printUsage(appName);
"Usage: %1 module.uri version [module/import/path]\n"
" %1 --builtins\n"
"Example: %1 Qt.labs.particles 4.7 /home/user/dev/qt-install/imports").arg(
appName));
return EXIT_INVALIDARGUMENTS; return EXIT_INVALIDARGUMENTS;
} }
QString pluginImportUri; QString pluginImportUri;
QString pluginImportVersion; QString pluginImportVersion;
QString pluginImportPath; QString pluginImportPath;
if (args.size() > 2) { bool relocatable = true;
pluginImportUri = args[1]; if (args.size() >= 3) {
pluginImportVersion = args[2]; QStringList positionalArgs;
if (args.size() >= 4) foreach (const QString &arg, args) {
pluginImportPath = args[3]; if (!arg.startsWith("--")) {
positionalArgs.append(arg);
continue;
}
if (arg == QLatin1String("--notrelocatable")) {
relocatable = false;
} else {
qWarning() << "Invalid argument: " << arg;
return EXIT_INVALIDARGUMENTS;
}
}
if (positionalArgs.size() != 3 && positionalArgs.size() != 4) {
qWarning() << "Incorrect number of positional arguments";
return EXIT_INVALIDARGUMENTS;
}
pluginImportUri = positionalArgs[1];
pluginImportVersion = positionalArgs[2];
if (positionalArgs.size() >= 4)
pluginImportPath = positionalArgs[3];
} }
QDeclarativeView view; QDeclarativeView view;
@@ -470,7 +496,8 @@ int main(int argc, char *argv[])
nameToMeta.insert(convertToId(meta->className()), meta); nameToMeta.insert(convertToId(meta->className()), meta);
Dumper dumper(&qml); Dumper dumper(&qml);
dumper.setRelocatableModuleUri(pluginImportUri); if (relocatable)
dumper.setRelocatableModuleUri(pluginImportUri);
foreach (const QMetaObject *meta, nameToMeta) { foreach (const QMetaObject *meta, nameToMeta) {
dumper.dump(meta); dumper.dump(meta);
} }

View File

@@ -36,6 +36,7 @@
#include "qmljslink.h" #include "qmljslink.h"
#include "qmljsbind.h" #include "qmljsbind.h"
#include "qmljsscopebuilder.h" #include "qmljsscopebuilder.h"
#include "qmljstypedescriptionreader.h"
#include "parser/qmljsast_p.h" #include "parser/qmljsast_p.h"
#include <languageutils/fakemetaobject.h> #include <languageutils/fakemetaobject.h>
@@ -1943,45 +1944,48 @@ const Value *Function::invoke(const Activation *activation) const
// typing environment // typing environment
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
QList<FakeMetaObject::ConstPtr> CppQmlTypesLoader::builtinObjects; QHash<QString, FakeMetaObject::ConstPtr> CppQmlTypesLoader::builtinObjects;
QStringList CppQmlTypesLoader::loadXml(const QFileInfoList &xmlFiles) QStringList CppQmlTypesLoader::loadQmlTypes(const QFileInfoList &qmlTypeFiles)
{ {
QMap<QString, FakeMetaObject::Ptr> newObjects; QHash<QString, FakeMetaObject::Ptr> newObjects;
QStringList errorMsgs; QStringList errorMsgs;
foreach (const QFileInfo &xmlFile, xmlFiles) { foreach (const QFileInfo &qmlTypeFile, qmlTypeFiles) {
QFile file(xmlFile.absoluteFilePath()); QFile file(qmlTypeFile.absoluteFilePath());
if (file.open(QIODevice::ReadOnly)) { if (file.open(QIODevice::ReadOnly)) {
QmlXmlReader read(&file); QString contents = QString::fromUtf8(file.readAll());
if (!read(&newObjects)) {
errorMsgs.append(read.errorMessage());
}
file.close(); file.close();
QmlJS::TypeDescriptionReader reader(contents);
if (!reader(&newObjects)) {
errorMsgs.append(reader.errorMessage());
}
} else { } else {
errorMsgs.append(QmlXmlReader::tr("%1: %2").arg(xmlFile.absoluteFilePath(), errorMsgs.append(QmlJS::TypeDescriptionReader::tr("%1: %2")
file.errorString())); .arg(qmlTypeFile.absoluteFilePath(),
file.errorString()));
} }
} }
if (errorMsgs.isEmpty()) { if (errorMsgs.isEmpty()) {
setSuperClasses(&newObjects); setSuperClasses(&newObjects);
// we need to go from QList<T *> of newObjects.values() to QList<const T *> // we need to go from QHash<K, T::Ptr> to QHash<K, T::ConstPtr>
// and there seems to be no better way // and there seems to be no better way
QMapIterator<QString, FakeMetaObject::Ptr> it(newObjects); QHashIterator<QString, FakeMetaObject::Ptr> it(newObjects);
while (it.hasNext()) { while (it.hasNext()) {
it.next(); it.next();
builtinObjects.append(it.value()); builtinObjects.insert(it.key(), it.value());
} }
} }
return errorMsgs; return errorMsgs;
} }
QString CppQmlTypesLoader::parseQmlTypeXml(const QByteArray &xml, QMap<QString, FakeMetaObject::Ptr> *newObjects) QString CppQmlTypesLoader::parseQmlTypeDescriptions(const QByteArray &xml, QHash<QString, FakeMetaObject::Ptr> *newObjects)
{ {
QmlXmlReader reader(xml); QmlJS::TypeDescriptionReader reader(QString::fromUtf8(xml));
if (!reader(newObjects)) { if (!reader(newObjects)) {
if (reader.errorMessage().isEmpty()) if (reader.errorMessage().isEmpty())
return QLatin1String("unknown error"); return QLatin1String("unknown error");
@@ -1991,16 +1995,18 @@ QString CppQmlTypesLoader::parseQmlTypeXml(const QByteArray &xml, QMap<QString,
return QString(); return QString();
} }
void CppQmlTypesLoader::setSuperClasses(QMap<QString, FakeMetaObject::Ptr> *newObjects) void CppQmlTypesLoader::setSuperClasses(QHash<QString, FakeMetaObject::Ptr> *newObjects)
{ {
QMapIterator<QString, FakeMetaObject::Ptr> it(*newObjects); QHashIterator<QString, FakeMetaObject::Ptr> it(*newObjects);
while (it.hasNext()) { while (it.hasNext()) {
it.next(); it.next();
FakeMetaObject::Ptr obj = it.value(); FakeMetaObject::Ptr obj = it.value();
const QString superName = obj->superclassName(); const QString superName = obj->superclassName();
if (! superName.isEmpty()) { if (! superName.isEmpty()) {
FakeMetaObject::Ptr superClass = newObjects->value(superName); FakeMetaObject::ConstPtr superClass = newObjects->value(superName);
if (!superClass)
superClass = builtinObjects.value(superName);
if (superClass) if (superClass)
obj->setSuperclass(superClass); obj->setSuperclass(superClass);
else else
@@ -2009,7 +2015,8 @@ void CppQmlTypesLoader::setSuperClasses(QMap<QString, FakeMetaObject::Ptr> *newO
} }
} }
void CppQmlTypes::load(Engine *engine, const QList<FakeMetaObject::ConstPtr> &objects) template <typename T>
void CppQmlTypes::load(Engine *engine, const T &objects)
{ {
// load // load
QList<FakeMetaObject::ConstPtr> newObjects; QList<FakeMetaObject::ConstPtr> newObjects;
@@ -2052,6 +2059,9 @@ void CppQmlTypes::load(Engine *engine, const QList<FakeMetaObject::ConstPtr> &ob
} }
} }
} }
// explicitly instantiate load for list and hash
template void CppQmlTypes::load< QList<FakeMetaObject::ConstPtr> >(Engine *, const QList<FakeMetaObject::ConstPtr> &);
template void CppQmlTypes::load< QHash<QString, FakeMetaObject::ConstPtr> >(Engine *, const QHash<QString, FakeMetaObject::ConstPtr> &);
QList<QmlObjectValue *> CppQmlTypes::typesForImport(const QString &packageName, ComponentVersion version) const QList<QmlObjectValue *> CppQmlTypes::typesForImport(const QString &packageName, ComponentVersion version) const
{ {

View File

@@ -585,20 +585,21 @@ class QMLJS_EXPORT CppQmlTypesLoader
{ {
public: public:
/** \return an empty list when successful, error messages otherwise. */ /** \return an empty list when successful, error messages otherwise. */
static QStringList loadXml(const QFileInfoList &xmlFiles); static QStringList loadQmlTypes(const QFileInfoList &xmlFiles);
static QList<LanguageUtils::FakeMetaObject::ConstPtr> builtinObjects; static QHash<QString, LanguageUtils::FakeMetaObject::ConstPtr> builtinObjects;
// parses the xml string and fills the newObjects map // parses the xml string and fills the newObjects map
static QString parseQmlTypeXml(const QByteArray &xml, static QString parseQmlTypeDescriptions(const QByteArray &xml,
QMap<QString, LanguageUtils::FakeMetaObject::Ptr> *newObjects); QHash<QString, LanguageUtils::FakeMetaObject::Ptr> *newObjects);
private: private:
static void setSuperClasses(QMap<QString, LanguageUtils::FakeMetaObject::Ptr> *newObjects); static void setSuperClasses(QHash<QString, LanguageUtils::FakeMetaObject::Ptr> *newObjects);
}; };
class QMLJS_EXPORT CppQmlTypes class QMLJS_EXPORT CppQmlTypes
{ {
public: public:
void load(Interpreter::Engine *interpreter, const QList<LanguageUtils::FakeMetaObject::ConstPtr> &objects); template <typename T>
void load(Interpreter::Engine *interpreter, const T &objects);
QList<Interpreter::QmlObjectValue *> typesForImport(const QString &prefix, LanguageUtils::ComponentVersion version) const; QList<Interpreter::QmlObjectValue *> typesForImport(const QString &prefix, LanguageUtils::ComponentVersion version) const;
Interpreter::QmlObjectValue *typeForImport(const QString &qualifiedName, Interpreter::QmlObjectValue *typeForImport(const QString &qualifiedName,

View File

@@ -26,7 +26,7 @@ TypeDescriptionReader::~TypeDescriptionReader()
{ {
} }
bool TypeDescriptionReader::operator()(QMap<QString, FakeMetaObject::Ptr> *objects) bool TypeDescriptionReader::operator()(QHash<QString, FakeMetaObject::Ptr> *objects)
{ {
QString fileName("typeDescription"); QString fileName("typeDescription");
Engine engine; Engine engine;

View File

@@ -5,6 +5,9 @@
#include <QtCore/QScopedPointer> #include <QtCore/QScopedPointer>
// for Q_DECLARE_TR_FUNCTIONS
#include <QtCore/QCoreApplication>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QIODevice; class QIODevice;
class QBuffer; class QBuffer;
@@ -21,11 +24,13 @@ class SourceLocation;
class TypeDescriptionReader class TypeDescriptionReader
{ {
Q_DECLARE_TR_FUNCTIONS(QmlJS::TypeDescriptionReader)
public: public:
explicit TypeDescriptionReader(const QString &data); explicit TypeDescriptionReader(const QString &data);
~TypeDescriptionReader(); ~TypeDescriptionReader();
bool operator()(QMap<QString, LanguageUtils::FakeMetaObject::Ptr> *objects); bool operator()(QHash<QString, LanguageUtils::FakeMetaObject::Ptr> *objects);
QString errorMessage() const; QString errorMessage() const;
private: private:
@@ -45,7 +50,7 @@ private:
QString _source; QString _source;
QString _errorMessage; QString _errorMessage;
QMap<QString, LanguageUtils::FakeMetaObject::Ptr> *_objects; QHash<QString, LanguageUtils::FakeMetaObject::Ptr> *_objects;
}; };
} // namespace QmlJS } // namespace QmlJS

View File

@@ -104,6 +104,7 @@ void ModelManager::delayedInitialization()
void ModelManager::loadQmlTypeDescriptions() void ModelManager::loadQmlTypeDescriptions()
{ {
if (Core::ICore::instance()) { if (Core::ICore::instance()) {
// ### this does not necessarily work, should only call loadQmlTypes once!
loadQmlTypeDescriptions(Core::ICore::instance()->resourcePath()); loadQmlTypeDescriptions(Core::ICore::instance()->resourcePath());
loadQmlTypeDescriptions(Core::ICore::instance()->userResourcePath()); loadQmlTypeDescriptions(Core::ICore::instance()->userResourcePath());
} }
@@ -112,12 +113,13 @@ void ModelManager::loadQmlTypeDescriptions()
void ModelManager::loadQmlTypeDescriptions(const QString &resourcePath) void ModelManager::loadQmlTypeDescriptions(const QString &resourcePath)
{ {
const QDir typeFileDir(resourcePath + QLatin1String("/qml-type-descriptions")); const QDir typeFileDir(resourcePath + QLatin1String("/qml-type-descriptions"));
const QStringList xmlExtensions = QStringList() << QLatin1String("*.xml"); const QStringList qmlTypesExtensions = QStringList() << QLatin1String("*.qmltypes");
const QFileInfoList xmlFiles = typeFileDir.entryInfoList(xmlExtensions, const QFileInfoList qmlTypesFiles = typeFileDir.entryInfoList(
QDir::Files, qmlTypesExtensions,
QDir::Name); QDir::Files,
QDir::Name);
const QStringList errors = Interpreter::CppQmlTypesLoader::loadXml(xmlFiles); const QStringList errors = Interpreter::CppQmlTypesLoader::loadQmlTypes(qmlTypesFiles);
foreach (const QString &error, errors) foreach (const QString &error, errors)
qWarning() << qPrintable(error); qWarning() << qPrintable(error);

View File

@@ -96,8 +96,8 @@ void PluginDumper::onLoadPluginTypes(const QString &libraryPath, const QString &
} }
// watch library xml file // watch library xml file
if (plugin.hasPredumpedXmlFile()) { if (plugin.hasPredumpedQmlTypesFile()) {
const QString &path = plugin.predumpedXmlFilePath(); const QString &path = plugin.predumpedQmlTypesFilePath();
m_pluginWatcher->addFile(path); m_pluginWatcher->addFile(path);
m_libraryToPluginIndex.insert(path, index); m_libraryToPluginIndex.insert(path, index);
} }
@@ -134,15 +134,15 @@ static QString qmldumpFailedMessage(const QString &error)
).arg(firstLines); ).arg(firstLines);
} }
static QList<FakeMetaObject::ConstPtr> parseHelper(const QByteArray &xml, QString *error) static QList<FakeMetaObject::ConstPtr> parseHelper(const QByteArray &qmlTypeDescriptions, QString *error)
{ {
QList<FakeMetaObject::ConstPtr> ret; QList<FakeMetaObject::ConstPtr> ret;
QMap<QString, FakeMetaObject::Ptr> newObjects; QHash<QString, FakeMetaObject::Ptr> newObjects;
*error = Interpreter::CppQmlTypesLoader::parseQmlTypeXml(xml, &newObjects); *error = Interpreter::CppQmlTypesLoader::parseQmlTypeDescriptions(qmlTypeDescriptions, &newObjects);
if (error->isEmpty()) { if (error->isEmpty()) {
// convert from QList<T *> to QList<const T *> // convert from QList<T *> to QList<const T *>
QMapIterator<QString, FakeMetaObject::Ptr> it(newObjects); QHashIterator<QString, FakeMetaObject::Ptr> it(newObjects);
while (it.hasNext()) { while (it.hasNext()) {
it.next(); it.next();
ret.append(it.value()); ret.append(it.value());
@@ -178,8 +178,9 @@ void PluginDumper::qmlPluginTypeDumpDone(int exitCode)
if (exitCode == 0 && error.isEmpty()) { if (exitCode == 0 && error.isEmpty()) {
libraryInfo.setMetaObjects(objectsList); libraryInfo.setMetaObjects(objectsList);
if (libraryPath.isEmpty()) // ### disabled code path for running qmldump to get Qt's builtins
Interpreter::CppQmlTypesLoader::builtinObjects.append(objectsList); // if (libraryPath.isEmpty())
// Interpreter::CppQmlTypesLoader::builtinObjects.append(objectsList);
libraryInfo.setDumpStatus(LibraryInfo::DumpDone); libraryInfo.setDumpStatus(LibraryInfo::DumpDone);
} }
@@ -220,26 +221,26 @@ void PluginDumper::pluginChanged(const QString &pluginLibrary)
void PluginDumper::dump(const Plugin &plugin) void PluginDumper::dump(const Plugin &plugin)
{ {
if (plugin.hasPredumpedXmlFile()) { if (plugin.hasPredumpedQmlTypesFile()) {
const Snapshot snapshot = m_modelManager->snapshot(); const Snapshot snapshot = m_modelManager->snapshot();
LibraryInfo libraryInfo = snapshot.libraryInfo(plugin.qmldirPath); LibraryInfo libraryInfo = snapshot.libraryInfo(plugin.qmldirPath);
if (!libraryInfo.isValid()) if (!libraryInfo.isValid())
return; return;
const QString &path = plugin.predumpedXmlFilePath(); const QString &path = plugin.predumpedQmlTypesFilePath();
QFile libraryXmlFile(path); QFile libraryQmlTypesFile(path);
if (!libraryXmlFile.open(QFile::ReadOnly | QFile::Text)) { if (!libraryQmlTypesFile.open(QFile::ReadOnly | QFile::Text)) {
libraryInfo.setDumpStatus(LibraryInfo::DumpError, libraryInfo.setDumpStatus(LibraryInfo::DumpError,
tr("Could not open file '%1' for reading.").arg(path)); tr("Could not open file '%1' for reading.").arg(path));
m_modelManager->updateLibraryInfo(plugin.qmldirPath, libraryInfo); m_modelManager->updateLibraryInfo(plugin.qmldirPath, libraryInfo);
return; return;
} }
const QByteArray xml = libraryXmlFile.readAll(); const QByteArray qmlTypeDescriptions = libraryQmlTypesFile.readAll();
libraryXmlFile.close(); libraryQmlTypesFile.close();
QString error; QString error;
const QList<FakeMetaObject::ConstPtr> objectsList = parseHelper(xml, &error); const QList<FakeMetaObject::ConstPtr> objectsList = parseHelper(qmlTypeDescriptions, &error);
if (error.isEmpty()) { if (error.isEmpty()) {
libraryInfo.setMetaObjects(objectsList); libraryInfo.setMetaObjects(objectsList);
@@ -390,12 +391,12 @@ QString PluginDumper::resolvePlugin(const QDir &qmldirPath, const QString &qmldi
#endif #endif
} }
bool PluginDumper::Plugin::hasPredumpedXmlFile() const bool PluginDumper::Plugin::hasPredumpedQmlTypesFile() const
{ {
return QFileInfo(predumpedXmlFilePath()).isFile(); return QFileInfo(predumpedQmlTypesFilePath()).isFile();
} }
QString PluginDumper::Plugin::predumpedXmlFilePath() const QString PluginDumper::Plugin::predumpedQmlTypesFilePath() const
{ {
return QString("%1%2library.xml").arg(qmldirPath, QDir::separator()); return QString("%1%2plugins.qmltypes").arg(qmldirPath, QDir::separator());
} }

View File

@@ -77,8 +77,8 @@ private:
QString importPath; QString importPath;
QString importUri; QString importUri;
bool hasPredumpedXmlFile() const; bool hasPredumpedQmlTypesFile() const;
QString predumpedXmlFilePath() const; QString predumpedQmlTypesFilePath() const;
}; };
void dump(const Plugin &plugin); void dump(const Plugin &plugin);

View File

@@ -269,6 +269,7 @@ QString QmlDumpTool::copy(const QString &qtInstallData, QString *errorMessage)
QStringList files; QStringList files;
files << QLatin1String("main.cpp") << QLatin1String("qmldump.pro") files << QLatin1String("main.cpp") << QLatin1String("qmldump.pro")
<< QLatin1String("qmlstreamwriter.cpp") << QLatin1String("qmlstreamwriter.h")
<< QLatin1String("LICENSE.LGPL") << QLatin1String("LGPL_EXCEPTION.TXT") << QLatin1String("LICENSE.LGPL") << QLatin1String("LGPL_EXCEPTION.TXT")
<< QLatin1String("Info.plist"); << QLatin1String("Info.plist");