2
* Copyright (C) 2016 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU 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 General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: James Henstridge <james.henstridge@canonical.com>
23
#include <QNetworkReply>
24
#include <unity/storage/provider/ProviderBase.h>
30
class DeleteHandler : public QObject {
33
DeleteHandler(std::shared_ptr<DavProvider> const& provider, std::string const& item_id,
34
unity::storage::provider::Context const& ctx);
37
boost::future<void> get_future();
43
boost::promise<void> promise_;
45
std::shared_ptr<DavProvider> const provider_;
46
std::string const item_id_;
48
std::unique_ptr<QNetworkReply> reply_;