2 * kalarmresource.h - Akonadi resource for KAlarm
4 * Copyright © 2009,2010 by David Jarvie <djarvie@kde.org>
6 * This library is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Library General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
11 * This library is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 * License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 #ifndef KALARMRESOURCE_H
23 #define KALARMRESOURCE_H
25 #include "kacalendar.h"
26 #include <icalresourcebase.h>
31 class KAlarmResource
: public ICalResourceBase
35 KAlarmResource(const QString
& id
);
36 virtual ~KAlarmResource();
39 void doRetrieveItems(const Akonadi::Collection
&);
40 bool doRetrieveItem(const Akonadi::Item
&, const QSet
<QByteArray
>& parts
);
44 * Customize the configuration dialog before it is displayed.
46 virtual void customizeConfigDialog( Akonadi::SingleFileResourceConfigDialog
<Akonadi_KAlarm_Resource::Settings
>* dlg
);
48 virtual bool readFromFile(const QString
& fileName
);
49 virtual bool writeToFile(const QString
& fileName
);
50 virtual void itemAdded(const Akonadi::Item
&, const Akonadi::Collection
&);
51 virtual void itemChanged(const Akonadi::Item
&, const QSet
<QByteArray
>& parts
);
54 void modifyCollectionJobDone(KJob
*);
57 KAlarm::Calendar::Compat mCompatibility
;