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 <tdelocale.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 00036 public: 00037 KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& ); 00038 virtual ~KNotesPlugin(); 00039 00040 virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget ); 00041 00042 int weight() const { return 600; } 00043 00044 const TDEAboutData *aboutData(); 00045 00046 protected: 00047 KParts::ReadOnlyPart* createPart(); 00048 00049 private slots: 00050 void slotNewNote(); 00051 void slotSyncNotes(); 00052 00053 private: 00054 TDEAboutData *mAboutData; 00055 }; 00056 00057 #endif 00058