Loading...
Searching...
No Matches
downloads_list.h
Go to the documentation of this file.
/*
* Copyright 2014 Canonical Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
#define LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
#include <QList>
#include <QObject>
#include <QSharedPointer>
namespace Lomiri {
namespace DownloadManager {
class Error;
class Download;
class DownloadsList : public QObject {
Q_OBJECT
public:
explicit DownloadsList(QObject* parent = 0)
: QObject(parent) {}
virtual QList<QSharedPointer<Download> > downloads() const = 0;
virtual bool isError() const = 0;
virtual Error* error() const = 0;
};
} // Lomiri
} // DownloadManager
#endif // LOMIRI_DOWNLOADMANAGER_CLIENT_DOWNLOAD_LIST_H
Lomiri::DownloadManager::Download
The Download class allows to control a download that was created in the download manager.
Definition download.h:49
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::DownloadManager
Definition download.h:28
Lomiri
Definition download.h:26