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 <klocale.h>
25 
26 #include "plugin.h"
27 
28 class KNotesPart;
29 class SummaryWidget;
30 
31 
32 class KNotesPlugin : public Kontact::Plugin
33 {
34  Q_OBJECT
35  TQ_OBJECT
36 
37  public:
38  KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& );
39  ~KNotesPlugin();
40 
41  virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
42 
43  int weight() const { return 600; }
44 
45  const KAboutData *aboutData();
46 
47  protected:
48  KParts::ReadOnlyPart* createPart();
49 
50  private slots:
51  void slotNewNote();
52  void slotSyncNotes();
53 
54  private:
55  KAboutData *mAboutData;
56 };
57 
58 #endif
59