Signals of SingleDownload and DownloadManagers are not documented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-download-manager |
Fix Released
|
High
|
Michael Sheldon | ||
ubuntu-download-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In order to fully understand and use the DownloadManager and SingleDownload APIs, it is important to document the signals as well:
import QtQuick.tooling 1.1
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
// 'qmlplugindump Ubuntu.
Module {
Component {
name: "Ubuntu:
prototype: "QObject"
exports: ["Error 0.1"]
Property { name: "type"; type: "string"; isReadonly: true }
Property { name: "message"; type: "string"; isReadonly: true }
}
Component {
name: "Ubuntu:
prototype: "QObject"
exports: ["Metadata 0.1"]
Property { name: "title"; type: "string" }
Property { name: "showInIndicator"; type: "bool" }
Property { name: "deflate"; type: "bool" }
Property { name: "extract"; type: "bool" }
Signal { name: "showIndicatorC
}
Component {
name: "Ubuntu:
prototype: "QObject"
exports: ["SingleDownload 0.1"]
Property { name: "autoStart"; type: "bool" }
Property { name: "errorMessage"; type: "string"; isReadonly: true }
Property { name: "isCompleted"; type: "bool"; isReadonly: true }
Property { name: "downloadInProg
Property { name: "allowMobileDow
Property { name: "throttle"; type: "qulonglong" }
Property { name: "progress"; type: "int"; isReadonly: true }
Property { name: "downloading"; type: "bool"; isReadonly: true }
Property { name: "downloadId"; type: "string"; isReadonly: true }
Property { name: "headers"; type: "QVariantMap" }
Property { name: "metadata"; type: "Ubuntu:
Signal {
name: "canceled"
}
Signal {
name: "finished"
}
Signal {
name: "paused"
}
Signal {
name: "processing"
}
Signal {
name: "progressReceived"
}
Signal {
name: "resumed"
}
Signal {
name: "started"
}
Signal {
name: "errorFound"
}
Signal { name: "errorChanged" }
Method {
name: "registerError"
}
Method {
name: "bindDownload"
}
Method {
name: "unbindDownload"
}
Method {
name: "onFinished"
}
Method {
name: "onProgress"
}
Method {
name: "onPaused"
}
Method {
name: "onResumed"
}
Method {
name: "onStarted"
}
Method {
name: "onCanceled"
}
Method { name: "start" }
Method { name: "pause" }
Method { name: "resume" }
Method { name: "cancel" }
Method {
name: "download"
}
}
Component {
name: "Ubuntu:
prototype: "QObject"
exports: ["DownloadManager 0.1"]
Property { name: "autoStart"; type: "bool" }
Property { name: "cleanDownloads"; type: "bool" }
Property { name: "errorMessage"; type: "string"; isReadonly: true }
Property { name: "downloads"; type: "QVariantList"; isReadonly: true }
Signal { name: "errorChanged" }
Method {
name: "download"
}
}
}
For example, "finished" signal is important to get hold of the path of the downloaded file.
Best regards,
XiaoGuo
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Scott Sweeny (community): Approve
- Ubuntu Phablet Team: Pending requested
-
Diff: 3593 lines (+1547/-515)70 files modified.bzrignore (+2/-0)
CMakeLists.txt (+1/-1)
HACKING (+36/-0)
debian/changelog (+16/-0)
debian/libubuntu-download-manager-client1.symbols (+0/-153)
debian/libubuntu-download-manager-common-dev.install (+1/-0)
debian/libubuntu-download-manager-common1.symbols (+0/-34)
debian/libubuntu-upload-manager-common1.symbols (+0/-16)
debian/libudm-common1.symbols (+0/-155)
docs/dbus/com.canonical.applications.download.xml (+11/-0)
docs/dbus/com.canonical.applications.download_manager.xml (+8/-0)
docs/qml/pages/mainpage.qdoc (+3/-3)
docs/qml/pages/moduledef.qdoc (+1/-1)
src/common/priv/ubuntu/transfers/queue.cpp (+4/-0)
src/common/priv/ubuntu/transfers/transfer.cpp (+7/-0)
src/common/priv/ubuntu/transfers/transfer.h (+2/-0)
src/common/public/ubuntu/transfers/metadata.cpp (+41/-1)
src/common/public/ubuntu/transfers/metadata.h (+6/-1)
src/downloads/client/ubuntu/download_manager/download.h (+53/-1)
src/downloads/client/ubuntu/download_manager/download_impl.cpp (+66/-2)
src/downloads/client/ubuntu/download_manager/download_impl.h (+5/-0)
src/downloads/client/ubuntu/download_manager/download_interface.cpp (+1/-1)
src/downloads/client/ubuntu/download_manager/download_interface.h (+40/-18)
src/downloads/client/ubuntu/download_manager/manager.h (+16/-4)
src/downloads/client/ubuntu/download_manager/manager_impl.cpp (+6/-6)
src/downloads/client/ubuntu/download_manager/manager_impl.h (+4/-2)
src/downloads/client/ubuntu/download_manager/manager_interface.h (+3/-1)
src/downloads/common/CMakeLists.txt (+2/-0)
src/downloads/common/ubuntu/download_manager/download_state_struct.cpp (+119/-0)
src/downloads/common/ubuntu/download_manager/download_state_struct.h (+152/-0)
src/downloads/common/ubuntu/download_manager/metatypes.h (+2/-0)
src/downloads/priv/CMakeLists.txt (+2/-2)
src/downloads/priv/ubuntu/downloads/download.cpp (+1/-1)
src/downloads/priv/ubuntu/downloads/download.h (+19/-1)
src/downloads/priv/ubuntu/downloads/download_adaptor.cpp (+31/-3)
src/downloads/priv/ubuntu/downloads/download_adaptor.h (+17/-3)
src/downloads/priv/ubuntu/downloads/download_manager_adaptor.cpp (+11/-3)
src/downloads/priv/ubuntu/downloads/download_manager_adaptor.h (+10/-2)
src/downloads/priv/ubuntu/downloads/downloads_db.cpp (+105/-0)
src/downloads/priv/ubuntu/downloads/downloads_db.h (+9/-2)
src/downloads/priv/ubuntu/downloads/factory.cpp (+7/-1)
src/downloads/priv/ubuntu/downloads/file_download.cpp (+13/-1)
src/downloads/priv/ubuntu/downloads/file_download.h (+3/-4)
src/downloads/priv/ubuntu/downloads/group_download.cpp (+7/-0)
src/downloads/priv/ubuntu/downloads/group_download.h (+1/-0)
src/downloads/priv/ubuntu/downloads/manager.cpp (+80/-12)
src/downloads/priv/ubuntu/downloads/manager.h (+13/-6)
src/downloads/priv/ubuntu/downloads/state_machines/download_sm.h (+1/-0)
src/downloads/qml/CMakeLists.txt (+2/-0)
src/downloads/qml/backend.cpp (+4/-0)
src/downloads/qml/download_history.cpp (+143/-0)
src/downloads/qml/download_history.h (+69/-0)
src/downloads/qml/single_download.cpp (+36/-16)
src/downloads/qml/single_download.h (+1/-0)
src/downloads/qml/ubuntu_download_manager.cpp (+78/-36)
src/downloads/qml/ubuntu_download_manager.h (+8/-4)
src/downloads/test-daemon/testing_manager.cpp (+2/-2)
src/downloads/test-daemon/testing_manager.h (+2/-1)
tests/CMakeLists.txt (+1/-0)
tests/abi-compliance/CMakeLists.txt (+1/-0)
tests/abi-compliance/abi.xml.in (+18/-0)
tests/downloads/client/test_client_manager.cpp (+2/-2)
tests/downloads/daemon/download.h (+1/-1)
tests/downloads/daemon/test_download.cpp (+7/-7)
tests/downloads/daemon/test_download_manager.cpp (+55/-1)
tests/downloads/daemon/test_downloads_db.cpp (+73/-0)
tests/downloads/daemon/test_downloads_db.h (+4/-1)
tests/downloads/daemon/test_metadata.cpp (+90/-0)
tests/downloads/daemon/test_metadata.h (+10/-1)
tests/downloads/qml/manager.h (+2/-2)
Changed in ubuntu-download-manager: | |
assignee: | nobody → Manuel de la Peña (mandel) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in ubuntu-download-manager: | |
assignee: | Manuel de la Peña (mandel) → Michael Sheldon (michael-sheldon) |
Changed in ubuntu-download-manager: | |
status: | Triaged → Fix Released |
Changed in ubuntu-download-manager (Ubuntu): | |
status: | New → Fix Released |