Disambiguate the Settings class name.
[kdepim.git] / kalarm / akonadi / kalarmresource.h
blob80c1d0b16c89dd5afe409b9c726f7214ffb913cc
1 /*
2 * kalarmresource.h - Akonadi resource for KAlarm
3 * Program: 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
19 * 02110-1301, USA.
22 #ifndef KALARMRESOURCE_H
23 #define KALARMRESOURCE_H
25 #include "kacalendar.h"
26 #include <icalresourcebase.h>
28 class KJob;
29 class KAEvent;
31 class KAlarmResource : public ICalResourceBase
33 Q_OBJECT
34 public:
35 KAlarmResource(const QString& id);
36 virtual ~KAlarmResource();
38 protected Q_SLOTS:
39 void doRetrieveItems(const Akonadi::Collection&);
40 bool doRetrieveItem(const Akonadi::Item&, const QSet<QByteArray>& parts);
42 protected:
43 /**
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);
53 private slots:
54 void modifyCollectionJobDone(KJob*);
56 private:
57 KAlarm::Calendar::Compat mCompatibility;
60 #endif
62 // vim: et sw=4: