19    Private(
const Private &other) = 
default;
 
   26    bool editable = 
false;
 
   27    QColor backgroundColor;
 
   28    QColor foregroundColor;
 
   30    RemindersList reminders;
 
   41    , d(new Private(*(other.d.get())))
 
 
   47bool Calendar::operator==(
const Calendar &other)
 const 
   49    if (d->uid != other.d->uid) {
 
   50        qCDebug(KGAPIDebug) << 
"UIDs don't match";
 
   53    if (d->title != other.d->title) {
 
   54        qCDebug(KGAPIDebug) << 
"Titles don't match";
 
   57    if (d->details != other.d->details) {
 
   58        qCDebug(KGAPIDebug) << 
"Details don't match";
 
   61    if (d->timezone != other.d->timezone) {
 
   62        qCDebug(KGAPIDebug) << 
"Timezones don't match";
 
   65    if (d->location != other.d->location) {
 
   66        qCDebug(KGAPIDebug) << 
"Locations don't match";
 
   69    if (d->editable != other.d->editable) {
 
   70        qCDebug(KGAPIDebug) << 
"Editable doesn't match";
 
   73    if (d->backgroundColor != other.d->backgroundColor) {
 
   74        qCDebug(KGAPIDebug) << 
"BackgroundColors don't match";
 
   77    if (d->foregroundColor != other.d->foregroundColor) {
 
   78        qCDebug(KGAPIDebug) << 
"ForegroundColors don't match";
 
   82    for (
const auto &reminder : std::as_const(d->reminders)) {
 
   83        if (std::find_if(other.d->reminders.cbegin(),
 
   84                         other.d->reminders.cend(),
 
   85                         [reminder](
const ReminderPtr &otherReminder) {
 
   86                             return *reminder == *otherReminder;
 
   88            == other.d->reminders.cend()) {
 
   89            qCDebug(KGAPIDebug) << 
"Reminders don't match";
 
  159    d->reminders = reminders;
 
 
  164    d->reminders.
append(reminder);
 
 
  174    return d->backgroundColor;
 
 
  179    d->backgroundColor = color;
 
 
  184    return d->foregroundColor;
 
 
  189    d->foregroundColor = color;
 
 
An object that represents a Google calendar.
 
QString location() const
Returns geographic location of the calendar.
 
void setBackgroundColor(const QColor &color)
Sets calendar background color.
 
QColor foregroundColor() const
Returns calendar foreground color.
 
QString timezone() const
Returns timezone of the calendar.
 
void setForegroundColor(const QColor &color)
Sets calendar foreground color.
 
void setEditable(const bool editable)
Sets calendar to read-only or editable.
 
void setDetails(const QString &details)
Sets detailed description of a calendar.
 
RemindersList defaultReminders() const
Returns default reminders for all events in the calendar.
 
bool editable() const
Returns whether calendar is editable or read-only.
 
QString title() const
Returns calendar title (name).
 
void setDefaultReminders(const RemindersList &reminders)
Sets default reminders for all new events in the calendar.
 
void setTimezone(const QString &timezone)
Sets timezone of the calendar.
 
void setLocation(const QString &location)
Sets geographic location of the calendar.
 
QString details() const
Returns detailed description of the calendar.
 
~Calendar() override
Destructor.
 
void addDefaultReminer(const ReminderPtr &reminder)
Adds a default reminder for all events in the calendar.
 
QString uid() const
Returns uID of the calendar.
 
void setUid(const QString &uid)
Sets UID of the calendar.
 
QColor backgroundColor() const
Returns calendar background color.
 
void setTitle(const QString &title)
Sets a calendar title (name).
 
A job to fetch a single map tile described by a StaticMapUrl.
 
QVariant location(const QVariant &res)
 
void append(QList< T > &&value)