File indexing completed on 2024-12-15 04:51:47

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "noteshared_export.h"
0009 #include <QObject>
0010 
0011 class KJob;
0012 namespace NoteShared
0013 {
0014 class NOTESHARED_EXPORT LocalResourceCreator : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit LocalResourceCreator(QObject *parent = nullptr);
0019 
0020     void createIfMissing();
0021 
0022     [[nodiscard]] static QString akonadiNotesInstanceName();
0023 
0024 private:
0025     void createInstance();
0026 
0027 private Q_SLOTS:
0028     void slotInstanceCreated(KJob *job);
0029     void slotSyncDone(KJob *job);
0030 };
0031 }