File indexing completed on 2024-05-12 05:10:35
0001 /* 0002 SPDX-FileCopyrightText: 2013 Sérgio Martins <iamsergio@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0005 */ 0006 0007 #pragma once 0008 0009 #include <Akonadi/Collection> 0010 0011 #include <QObject> 0012 0013 class KJob; 0014 0015 class CollectionLoader : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit CollectionLoader(QObject *parent = nullptr); 0020 void load(); 0021 Akonadi::Collection::List collections() const; 0022 0023 Q_SIGNALS: 0024 void loaded(bool succcess); 0025 0026 private Q_SLOTS: 0027 void onCollectionsLoaded(KJob *); 0028 0029 private: 0030 Akonadi::Collection::List m_collections; 0031 };