knotes_plugin.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
3 2004 Michael Brade <brade@kde.org>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19 */
20
21#ifndef KNOTES_PLUGIN_H
22#define KNOTES_PLUGIN_H
23
24#include <tdelocale.h>
25
26#include "plugin.h"
27
28class KNotesPart;
29class SummaryWidget;
30
31
32class KNotesPlugin : public Kontact::Plugin
33{
34 TQ_OBJECT
35
36 public:
37 KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& );
38 virtual ~KNotesPlugin();
39
40 virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
41
42 int weight() const { return 600; }
43
44 const TDEAboutData *aboutData();
45
46 protected:
47 KParts::ReadOnlyPart* createPart();
48
49 private slots:
50 void slotNewNote();
51 void slotSyncNotes();
52
53 private:
54 TDEAboutData *mAboutData;
55};
56
57#endif
58
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 const TDEAboutData * aboutData()
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition: plugin.cpp:129
virtual Summary * createSummaryWidget(TQWidget *)
Reimplement this method if you want to add a widget for your application to Kontact's summary page.
Definition: plugin.h:174
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.
Summary widget for display in the Summary View plugin.
Definition: summary.h:37