Akonadi Calendar

fetchjobcalendar.h
1/*
2 SPDX-FileCopyrightText: 2011 Sérgio Martins <sergio.martins@kdab.com>
3 SPDX-FileCopyrightText: 2012 Sérgio Martins <iamsergio@gmail.com>
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
15namespace Akonadi
16{
17class 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 <sergio.martins@kdab.com>
28 * @since 4.11
29 */
30class AKONADI_CALENDAR_EXPORT FetchJobCalendar : public Akonadi::CalendarBase
31{
32 Q_OBJECT
33public:
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 */
46
47Q_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
55private:
56 Q_DECLARE_PRIVATE(FetchJobCalendar)
57};
58}
The base class for all akonadi aware calendars.
A KCalendarCore::Calendar that uses a one time IncidenceFetchJob to populate itself.
void loadFinished(bool success, const QString &errorMessage)
This signal is emitted when the IncidenceFetchJob finishes.
~FetchJobCalendar() override
Destroys this FetchJobCalendar.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.