Kgapi

calendar.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef LIBKGAPI2_CALENDAR_H
10 #define LIBKGAPI2_CALENDAR_H
11 
12 #include "object.h"
13 #include "types.h"
14 #include "kgapicalendar_export.h"
15 
16 #include <QColor>
17 #include <QScopedPointer>
18 
19 namespace KGAPI2
20 {
21 
28 class KGAPICALENDAR_EXPORT Calendar: public KGAPI2::Object
29 {
30 
31  public:
35  explicit Calendar();
36 
40  Calendar(const Calendar &other);
41 
45  ~Calendar() override;
46 
47  bool operator==(const Calendar &other) const;
48 
52  QString uid() const;
53 
59  void setUid(const QString &uid);
60 
64  QString title() const;
65 
71  void setTitle(const QString &title);
72 
76  QString details() const;
77 
83  void setDetails(const QString &details);
84 
88  QString location() const;
89 
95  void setLocation(const QString &location);
96 
100  QString timezone() const;
101 
107  void setTimezone(const QString &timezone);
108 
112  bool editable() const;
113 
119  void setEditable(const bool editable);
120 
126  void setDefaultReminders(const RemindersList &reminders);
127 
133  void addDefaultReminer(const ReminderPtr &reminder);
134 
138  RemindersList defaultReminders() const;
139 
145  QColor backgroundColor() const;
146 
154  void setBackgroundColor(const QColor &color);
155 
161  QColor foregroundColor() const;
162 
170  void setForegroundColor(const QColor &color);
171 
172  protected:
173  class Private;
174  QScopedPointer<Private> const d;
175 
176 };
177 
178 } // namespace KGAPI2
179 
180 #endif // LIBKGAPI2_CALENDAR_H
Base class for all objects.
Definition: object.h:31
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
An object that represents a Google calendar.
Definition: calendar.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 23:10:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.