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 StatusBarExtension;
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     void getWidgets();
00070 
00071   protected slots:
00072     void slotConfigure();
00073 
00074   private:
00075     QStringList configModules() const;
00076 
00077     QPtrList<Kontact::Summary> mSummaries;
00078 
00079     KParts::StatusBarExtension *mStatusExt;
00080     QGridLayout *mLayout;
00081     QFrame *mFrame;
00082     QLabel *mDateLabel;
00083     Kontact::Core *mCore;
00084     KCMultiDialog *mOptionsDialog;
00085     KAction *mConfigAction;
00086 };
00087 
00088 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:39:00 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003