File indexing completed on 2024-12-22 04:57:55
0001 /* 0002 SPDX-FileCopyrightText: 2016 Stefan Stäglich <sstaeglich@kdemail.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "tomboyjobbase.h" 0010 #include <Akonadi/Item> 0011 0012 class TomboyItemDownloadJob : public TomboyJobBase 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit TomboyItemDownloadJob(const Akonadi::Item &item, QNetworkAccessManager *manager, QObject *parent = nullptr); 0017 // returns the parsed results wrapped in Akonadi::Item, see below 0018 Akonadi::Item item() const; 0019 0020 // automatically called by KJob 0021 void start() override; 0022 0023 private: 0024 // This will be called once the request is finished. 0025 void onRequestFinished(); 0026 Akonadi::Item mResultItem; 0027 };