Akonadi

xmlwritejob.h
1/*
2 SPDX-FileCopyrightText: 2009 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadi-xml_export.h"
10// AkonadiCore
11#include "akonadi/collection.h"
12#include "akonadi/job.h"
13
14#include <memory>
15
16namespace Akonadi
17{
18class Collection;
19class XmlWriteJobPrivate;
20
21/**
22 Serializes a given Akonadi collection into a XML file.
23*/
24class AKONADI_XML_EXPORT XmlWriteJob : public Job
25{
26 Q_OBJECT
27public:
28 XmlWriteJob(const Collection &root, const QString &fileName, QObject *parent = nullptr);
29 XmlWriteJob(const Collection::List &roots, const QString &fileName, QObject *parent = nullptr);
30 ~XmlWriteJob() override;
31
32protected:
33 /* reimpl. */ void doStart() override;
34
35private:
36 void done();
37
38 friend class XmlWriteJobPrivate;
39 std::unique_ptr<XmlWriteJobPrivate> const d;
40};
41
42}
Represents a collection of PIM items.
Definition collection.h:62
Base class for all actions in the Akonadi storage.
Definition job.h:81
Serializes a given Akonadi collection into a XML file.
Definition xmlwritejob.h:25
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.