kontact Library API Documentation

summaryview_part.h

00001 /* 00002 This file is part of KDE Kontact. 00003 00004 Copyright (C) 2003 Sven Lüppken <sven@kde.org> 00005 Copyright (C) 2003 Tobias König <tokoe@kde.org> 00006 Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org> 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this library; see the file COPYING.LIB. If not, write to 00020 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00021 Boston, MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef SUMMARYVIEW_PART_H 00025 #define SUMMARYVIEW_PART_H 00026 00027 #include <qdatetime.h> 00028 #include <kparts/part.h> 00029 00030 #include "core.h" 00031 00032 namespace Kontact 00033 { 00034 class Plugin; 00035 class Summary; 00036 } 00037 00038 namespace KParts 00039 { 00040 class PartActivateEvent; 00041 } 00042 00043 class QFrame; 00044 class QLabel; 00045 class QGridLayout; 00046 class KAction; 00047 class KCMultiDialog; 00048 00049 class SummaryViewPart : public KParts::ReadOnlyPart 00050 { 00051 Q_OBJECT 00052 00053 public: 00054 SummaryViewPart( Kontact::Core *core, const char *widgetName, 00055 const KAboutData *aboutData, 00056 QObject *parent = 0, const char *name = 0 ); 00057 ~SummaryViewPart(); 00058 00059 public slots: 00060 void slotTextChanged(); 00061 void slotAdjustPalette(); 00062 void setDate( const QDate& newDate ); 00063 00064 signals: 00065 void textChanged( const QString& ); 00066 00067 protected: 00068 virtual bool openFile(); 00069 virtual void partActivateEvent( KParts::PartActivateEvent *event ); 00070 00071 protected slots: 00072 void slotConfigure(); 00073 void updateWidgets(); 00074 00075 private: 00076 void initGUI( Kontact::Core *core ); 00077 00078 QStringList configModules() const; 00079 00080 QPtrList<Kontact::Summary> mSummaries; 00081 Kontact::Core *mCore; 00082 QFrame *mFrame; 00083 QFrame *mMainWidget; 00084 QVBoxLayout *mMainLayout; 00085 QLabel *mDateLabel; 00086 KAction *mConfigAction; 00087 }; 00088 00089 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:47:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003