Lomiri Download Manager
0.1.1
A session-wide downloading service
Loading...
Searching...
No Matches
downloads_list.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014 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
#ifndef LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
20
#define LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
21
22
#include <QList>
23
#include <QObject>
24
#include <QSharedPointer>
25
26
namespace
Lomiri
{
27
28
namespace
DownloadManager {
29
30
class
Error;
31
class
Download;
32
33
class
DownloadsList
:
public
QObject
{
34
Q_OBJECT
35
36
public
:
37
explicit
DownloadsList
(
QObject
* parent = 0)
38
:
QObject
(parent) {}
39
40
virtual
QList<QSharedPointer<Download> >
downloads
()
const
= 0;
41
virtual
bool
isError
()
const
= 0;
42
virtual
Error
*
error
()
const
= 0;
43
};
44
45
}
// Lomiri
46
47
}
// DownloadManager
48
49
#endif
// LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
Lomiri::DownloadManager::DownloadsList
Definition
downloads_list.h:33
Lomiri::DownloadManager::DownloadsList::error
virtual Error * error() const =0
Lomiri::DownloadManager::DownloadsList::DownloadsList
DownloadsList(QObject *parent=0)
Definition
downloads_list.h:37
Lomiri::DownloadManager::DownloadsList::isError
virtual bool isError() const =0
Lomiri::DownloadManager::DownloadsList::downloads
virtual QList< QSharedPointer< Download > > downloads() const =0
Lomiri::DownloadManager::Error
The Error class is the base class that represents an error in the download manager API.
Definition
error.h:55
QObject
Lomiri
Definition
download.h:26
src
downloads
client
lomiri
download_manager
downloads_list.h
Generated on Tue Jan 16 2024 00:00:00 for Lomiri Download Manager by
1.10.0