knotes_plugin.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org> 00003 2004 Michael Brade <brade@kde.org> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; see the file COPYING. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KNOTES_PLUGIN_H 00022 #define KNOTES_PLUGIN_H 00023 00024 #include <klocale.h> 00025 00026 #include "plugin.h" 00027 00028 class KNotesPart; 00029 class SummaryWidget; 00030 00031 00032 class KNotesPlugin : public Kontact::Plugin 00033 { 00034 Q_OBJECT 00035 TQ_OBJECT 00036 00037 public: 00038 KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& ); 00039 ~KNotesPlugin(); 00040 00041 virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget ); 00042 00043 int weight() const { return 600; } 00044 00045 const KAboutData *aboutData(); 00046 00047 protected: 00048 KParts::ReadOnlyPart* createPart(); 00049 00050 private slots: 00051 void slotNewNote(); 00052 void slotSyncNotes(); 00053 00054 private: 00055 KAboutData *mAboutData; 00056 }; 00057 00058 #endif 00059