File indexing completed on 2025-01-05 04:49:48
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Daniel Vrátil <dvratil@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 * 0006 */ 0007 0008 #pragma once 0009 0010 #include <KCalendarCore/Incidence> 0011 0012 namespace KCalendarCore 0013 { 0014 class Calendar; 0015 } 0016 0017 class PimDataSource 0018 { 0019 public: 0020 virtual ~PimDataSource() = default; 0021 0022 virtual KCalendarCore::Calendar *calendar() const = 0; 0023 virtual qint64 akonadiIdForIncidence(const KCalendarCore::Incidence::Ptr &incidence) const = 0; 0024 virtual QString calendarColorForIncidence(const KCalendarCore::Incidence::Ptr &incidence) const = 0; 0025 };