Akonadi

xmlwritejob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Volker Krause <[email protected]>
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 
16 namespace Akonadi
17 {
18 class Collection;
19 class XmlWriteJobPrivate;
20 
21 /**
22  Serializes a given Akonadi collection into a XML file.
23 */
24 class AKONADI_XML_EXPORT XmlWriteJob : public Job
25 {
26  Q_OBJECT
27 public:
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 
32 protected:
33  /* reimpl. */ void doStart() override;
34 
35 private:
36  void done();
37 
38 private:
39  friend class XmlWriteJobPrivate;
40  std::unique_ptr<XmlWriteJobPrivate> const d;
41 };
42 
43 }
44 
Serializes a given Akonadi collection into a XML file.
Definition: xmlwritejob.h:24
Represents a collection of PIM items.
Definition: collection.h:61
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jan 22 2022 23:08:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.