2
* Copyright 2014-2015 Canonical Ltd.
4
* This file is part of webbrowser-app.
6
* webbrowser-app is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* webbrowser-app is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 1.3
21
import Ubuntu.Components.Popups 1.3
22
import Ubuntu.Content 1.3
23
import webbrowsercommon.private 0.1
28
objectName: "downloadDialog"
30
property var activeTransfer
31
property var downloadId
32
property var singleDownload
35
property var icon: MimeDatabase.iconForMimetype(mimeType)
36
property alias contentType: peerPicker.contentType
40
handler: ContentHandler.Destination
41
contentType: downloadDialog.contentType
50
handler: ContentHandler.Destination
51
objectName: "contentPeerPicker"
52
visible: parent.visible
55
activeTransfer = peer.request()
56
activeTransfer.downloadId = downloadDialog.downloadId
57
activeTransfer.state = ContentTransfer.Downloading
58
PopupUtils.close(downloadDialog)
62
PopupUtils.close(downloadDialog)