KCalendarCore

calstorage.h
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 */
16 #ifndef KCALCORE_CALSTORAGE_H
17 #define KCALCORE_CALSTORAGE_H
18 
19 #include "kcalendarcore_export.h"
20 #include "calendar.h"
21 
22 #include <QObject>
23 
24 namespace KCalendarCore
25 {
26 
34 class KCALENDARCORE_EXPORT CalStorage : public QObject
35 {
36  Q_OBJECT
37 
38 public:
43  explicit CalStorage(const Calendar::Ptr &calendar);
44 
48  ~CalStorage() override;
49 
54  Calendar::Ptr calendar() const;
55 
60  virtual bool open() = 0;
61 
66  virtual bool load() = 0;
67 
72  virtual bool save() = 0;
73 
78  virtual bool close() = 0;
79 
80 private:
81  //@cond PRIVATE
82  Q_DISABLE_COPY(CalStorage)
83  class Private;
84  Private *const d;
85  //@endcond
86 };
87 
88 }
89 
90 #endif
This file is part of the API for handling calendar data and defines the Calendar class.
An abstract base class that provides a calendar storage interface.
Definition: calstorage.h:34
Namespace for all KCalendarCore types.
Definition: alarm.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 14 2020 22:50:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.