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 #ifndef AKONADI_XMLWRITEJOB_H
8 #define AKONADI_XMLWRITEJOB_H
9 
10 #include "akonadi-xml_export.h"
11 #include "job.h"
12 #include "collection.h"
13 namespace Akonadi
14 {
15 
16 class Collection;
17 class XmlWriteJobPrivate;
18 
22 class AKONADI_XML_EXPORT XmlWriteJob : public Job
23 {
24  Q_OBJECT
25 public:
26  XmlWriteJob(const Collection &root, const QString &fileName, QObject *parent = nullptr);
27  XmlWriteJob(const Collection::List &roots, const QString &fileName, QObject *parent = nullptr);
28  ~XmlWriteJob() override;
29 
30 protected:
31  /* reimpl. */ void doStart() override;
32 
33 private:
34  friend class XmlWriteJobPrivate;
35  XmlWriteJobPrivate *const d;
36  void done();
37 };
38 
39 }
40 
41 #endif
Serializes a given Akonadi collection into a XML file.
Definition: xmlwritejob.h:22
Represents a collection of PIM items.
Definition: collection.h:63
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-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.