Ubuntu Download Manager: /build/ubuntu-download-manager-git/src/ubuntu-download-manager/src/downloads/client/ubuntu/download_manager/group_download.cpp Source File

Ubuntu Download Manager 1.2.0 A session-wide downloading service |

group_download.cpp
Go to the documentation of this file.
1 /*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17 */
18
19 #include "error.h"
20 #include "group_download.h"
21
22 namespace Ubuntu {
23
24 namespace DownloadManager {
25
26 GroupDownload::GroupDownload(Error* err, QObject* parent)
27 : QObject(parent),
28 _error(err) {
29 // TODO(mandel): complete implementation
30 Q_UNUSED(err);
31 }
32
33 GroupDownload::GroupDownload(QDBusObjectPath path, QObject *parent)
34 : QObject(parent) {
35 // TODO(mandel): complete implementation
36 Q_UNUSED(path);
37 }
38
39 GroupDownload::~GroupDownload() {
40 delete _error;
41 }
42
43 bool
44 GroupDownload::isError() {
45 // TODO(mandel): complete implementation
46 return false;
47 }
48
49 Error*
50 GroupDownload::error() {
51 // TODO(mandel): complete implementation
52 return NULL;
53 }
54
55 } // DownloadManager
56
57 } // Ubuntu
QObject
Ubuntu
Definition: download.h:26
Ubuntu::DownloadManager::GroupDownload::~GroupDownload
virtual ~GroupDownload()
Definition: group_download.cpp:39
Ubuntu::DownloadManager::GroupDownload::isError
bool isError()
Definition: group_download.cpp:44
Ubuntu::DownloadManager::GroupDownload::error
Error * error()
Definition: group_download.cpp:50
error.h
Ubuntu::DownloadManager::Error
The Error class is the base class that represents an error in the download manager API.
Definition: error.h:55
group_download.h
Ubuntu::DownloadManager::GroupDownload::GroupDownload
GroupDownload(Error *err, QObject *parent=0)
Definition: group_download.cpp:26