2
* Copyright (C) 2011 Ivan Cukic <ivan.cukic(at)kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2,
6
* or (at your option) any later version, as published by the Free
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details
14
* You should have received a copy of the GNU General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef EVENT_BACKEND_H_
21
#define EVENT_BACKEND_H_
23
#include <kdemacros.h>
24
#include <KPluginFactory>
25
#include <KPluginLoader>
28
#include "SharedInfo.h"
30
#define KAMD_EXPORT_PLUGIN(ClassName, AboutData) \
31
K_PLUGIN_FACTORY(ClassName##Factory, registerPlugin<ClassName>();) \
32
K_EXPORT_PLUGIN(ClassName##Factory("AboutData"))
38
class KDE_EXPORT Plugin: public QObject {
42
Plugin(QObject * parent);
45
virtual void addEvents(const EventList & events);
46
virtual void setResourceMimeType(const QString & uri, const QString & mimetype);
48
virtual void setSharedInfo(SharedInfo * sharedInfo);
49
SharedInfo * sharedInfo() const;
58
#endif // EVENT_BACKEND_H_