File indexing completed on 2024-12-22 05:01:11
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include <Akonadi/Item> 0011 #include <KJob> 0012 0013 class CreateTaskJob : public KJob 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit CreateTaskJob(const Akonadi::Item::List &items, QObject *parent = nullptr); 0018 ~CreateTaskJob() override; 0019 0020 void start() override; 0021 0022 private: 0023 void itemFetchJobDone(KJob *job); 0024 0025 void slotModifyItemDone(KJob *job); 0026 0027 void fetchItems(); 0028 const Akonadi::Item::List mListItem; 0029 };