2
Copyright 2012 Marco Martin <mart@kde.org>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
#ifndef ALARMSENGINE_H
22
#define ALARMSENGINE_H
24
#include <plasma/dataengine.h>
25
#include <plasma/service.h>
27
#include <Akonadi/Collection>
28
#include <Akonadi/Item>
30
#include <kalarmcal/kaevent.h>
32
class CalendarCreator;
36
class AlarmsEngine : public Plasma::DataEngine
41
AlarmsEngine(QObject* parent, const QVariantList& args);
44
Plasma::Service *serviceForSource(const QString &source);
47
void createContainer(const KAlarmCal::KAEvent &event);
50
void calendarCreated(CalendarCreator *creator);
51
void collectionChanged(Akonadi::Collection,QSet<QByteArray>);
52
void collectionRemoved(Akonadi::Collection);
53
void itemAdded(Akonadi::Item, Akonadi::Collection);
54
void itemChanged(Akonadi::Item item,QSet<QByteArray>);
55
void itemRemoved(Akonadi::Item item);
56
void fetchAlarmsCollectionsDone(KJob* job);
57
void fetchAlarmsCollectionDone(KJob* job);
60
Akonadi::Collection m_collection;
61
QWeakPointer<Plasma::Service> m_service;