File indexing completed on 2024-04-21 03:52:45

0001 /*
0002   This file is part of the kcalcore library.
0003 
0004   SPDX-FileCopyrightText: 2002, 2003 Cornelius Schumacher <schumacher@kde.org>
0005 
0006   SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 /**
0009   @file
0010   This file is part of the API for handling calendar data and
0011   defines the CalStorage abstract base class.
0012 
0013   @brief
0014   An abstract base class that provides a calendar storage interface.
0015 
0016   @author Cornelius Schumacher \<schumacher@kde.org\>
0017 */
0018 
0019 #include "calstorage.h"
0020 
0021 using namespace KCalendarCore;
0022 
0023 /**
0024   Private class that helps to provide binary compatibility between releases.
0025   @internal
0026 */
0027 //@cond PRIVATE
0028 class Q_DECL_HIDDEN KCalendarCore::CalStorage::Private
0029 {
0030 public:
0031     Private(const Calendar::Ptr &cal)
0032         : mCalendar(cal)
0033     {
0034     }
0035     Calendar::Ptr mCalendar;
0036 };
0037 //@endcond
0038 
0039 CalStorage::CalStorage(const Calendar::Ptr &calendar)
0040     : d(new KCalendarCore::CalStorage::Private(calendar))
0041 {
0042 }
0043 
0044 CalStorage::~CalStorage()
0045 {
0046     delete d;
0047 }
0048 
0049 Calendar::Ptr CalStorage::calendar() const
0050 {
0051     return d->mCalendar;
0052 }
0053 
0054 #include "moc_calstorage.cpp"