Akonadi Calendar

fetchjobcalendar.h
1 /*
2  SPDX-FileCopyrightText: 2011 Sérgio Martins <[email protected]>
3  SPDX-FileCopyrightText: 2012 Sérgio Martins <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "akonadi-calendar_export.h"
11 #include "calendarbase.h"
12 
13 #include <Akonadi/Item>
14 
15 namespace Akonadi
16 {
17 class FetchJobCalendarPrivate;
18 /**
19  * @short A KCalendarCore::Calendar that uses a one time IncidenceFetchJob to populate itself.
20  *
21  * If you want a persistent calendar ( which monitors Akonadi for changes )
22  * use an ETMCalendar.
23  *
24  * @see ETMCalendar
25  * @see CalendarBase
26  *
27  * @author Sérgio Martins <[email protected]>
28  * @since 4.11
29  */
30 class AKONADI_CALENDAR_EXPORT FetchJobCalendar : public Akonadi::CalendarBase
31 {
32  Q_OBJECT
33 public:
35 
36  /**
37  * Creates a new FetchJobCalendar. Loading begins asynchronously.
38  * @see loadFinished()
39  */
40  explicit FetchJobCalendar(QObject *parent = nullptr);
41 
42  /**
43  * Destroys this FetchJobCalendar.
44  */
45  ~FetchJobCalendar() override;
46 
47 Q_SIGNALS:
48  /**
49  * This signal is emitted when the IncidenceFetchJob finishes.
50  * @param success the success of the operation
51  * @param errorMessage if @p success is false, contains the error message
52  */
53  void loadFinished(bool success, const QString &errorMessage);
54 
55 private:
56  Q_DECLARE_PRIVATE(FetchJobCalendar)
57 };
58 }
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
A KCalendarCore::Calendar that uses a one time IncidenceFetchJob to populate itself.
The base class for all akonadi aware calendars.
Definition: calendarbase.h:37
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:52:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.