2
* Copyright © 2013 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License version 3 as
6
* published by the Free Software Foundation.
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
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Thomas Voß <thomas.voss@canonical.com>
19
#include <com/ubuntu/content/transfer.h>
21
namespace cuc = com::ubuntu::content;
23
struct cuc::Transfer::Private
27
cuc::Transfer::Transfer(QObject* parent) : QObject(parent), d{new cuc::Transfer::Private{}}
31
cuc::Transfer::~Transfer()
35
cuc::Transfer::State cuc::Transfer::state() const
37
return cuc::Transfer::initiated;
40
bool cuc::Transfer::start()
45
bool cuc::Transfer::abort()
50
bool cuc::Transfer::charge(const QVector<cuc::Item*>&)
55
QVector<cuc::Item*> cuc::Transfer::collect()
57
return QVector<cuc::Item*>{};