KCalendarCore

calstorage.cpp
Go to the documentation of this file.
1 /*
2  This file is part of the kcalcore library.
3 
4  SPDX-FileCopyrightText: 2002, 2003 Cornelius Schumacher <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 /**
9  @file
10  This file is part of the API for handling calendar data and
11  defines the CalStorage abstract base class.
12 
13  @brief
14  An abstract base class that provides a calendar storage interface.
15 
16  @author Cornelius Schumacher <[email protected]>
17 */
18 
19 #include "calstorage.h"
20 
21 using namespace KCalendarCore;
22 
23 /**
24  Private class that helps to provide binary compatibility between releases.
25  @internal
26 */
27 //@cond PRIVATE
28 class Q_DECL_HIDDEN KCalendarCore::CalStorage::Private
29 {
30 public:
31  Private(const Calendar::Ptr &cal)
32  : mCalendar(cal)
33  {
34  }
35  Calendar::Ptr mCalendar;
36 };
37 //@endcond
38 
40  : d(new KCalendarCore::CalStorage::Private(calendar))
41 {
42 }
43 
45 {
46  delete d;
47 }
48 
50 {
51  return d->mCalendar;
52 }
53 
54 #include "moc_calstorage.cpp"
Calendar::Ptr calendar() const
Returns the calendar for this storage object.
Definition: calstorage.cpp:49
Namespace for all KCalendarCore types.
Definition: alarm.h:36
CalStorage(const Calendar::Ptr &calendar)
Constructs a new storage object for a calendar.
Definition: calstorage.cpp:39
~CalStorage() override
Destuctor.
Definition: calstorage.cpp:44
An abstract base class that provides a calendar storage interface.
Definition: calstorage.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.