karm_plugin.h
1/*
2 This file is part of Kontact.
3
4 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
5 adapted for karm 2005 by Thorsten Staerk <kde@staerk.de>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21 As a special exception, permission is given to link this program
22 with any edition of TQt, and distribute the resulting executable,
23 without including the source code for TQt in the source distribution.
24*/
25
26#ifndef KARM_PLUGIN_H
27#define KARM_PLUGIN_H
28
29#include <tdelocale.h>
30#include <tdeparts/part.h>
31#include "karmdcopiface_stub.h"
32
33#include "plugin.h"
34
35class TDEAboutData;
36
37class KarmPlugin : public Kontact::Plugin
38{
39 TQ_OBJECT
40
41 public:
42 KarmPlugin( Kontact::Core *core, const char *name,
43 const TQStringList & );
44 virtual ~KarmPlugin();
45
46 int weight() const { return 700; }
47
48 protected:
49 KParts::ReadOnlyPart *createPart();
50 KarmDCOPIface_stub *mStub;
51
52 public slots:
53 void newTask();
54
55};
56
57#endif
This class provides the interface to the Kontact core for the plugins.
Definition: core.h:42
Base class for all Plugins in Kontact.
Definition: plugin.h:59
virtual int weight() const
Return the weight of the plugin.
Definition: plugin.h:208
virtual KParts::ReadOnlyPart * createPart()=0
Reimplement and return the part here.