• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kontact

apptsummarywidget.h

Go to the documentation of this file.
00001 /*
00002   This file is part of Kontact.
00003 
00004   Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
00005   Copyright (c) 2005-2006,2008 Allen Winter <winter@kde.org>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 
00026 #ifndef SUMMARYWIDGET_H
00027 #define SUMMARYWIDGET_H
00028 
00029 #include <kontactinterfaces/summary.h>
00030 #include <QList>
00031 
00032 namespace KCal {
00033   class CalendarResources;
00034   class Event;
00035 }
00036 
00037 class KOrganizerPlugin;
00038 
00039 class QDate;
00040 class QEvent;
00041 class QGridLayout;
00042 class QLabel;
00043 class QWidget;
00044 
00045 class ApptSummaryWidget : public Kontact::Summary
00046 {
00047   Q_OBJECT
00048 
00049   public:
00050     ApptSummaryWidget( KOrganizerPlugin *plugin, QWidget *parent );
00051     ~ApptSummaryWidget();
00052 
00053     int summaryHeight() const { return 3; }
00054     QStringList configModules() const;
00055     void configUpdated();
00056     void updateSummary( bool force = false )
00057     {
00058       Q_UNUSED( force );
00059       updateView();
00060     }
00061 
00062   protected:
00063     virtual bool eventFilter( QObject *obj, QEvent *e );
00064 
00065   private slots:
00066     void updateView();
00067     void popupMenu( const QString &uid );
00068     void viewEvent( const QString &uid );
00069     void removeEvent( const QString &uid );
00070 
00071   private:
00072     void dateDiff( const QDate &date, int &days );
00073     bool skip( KCal::Event *event );
00074 
00075     QGridLayout *mLayout;
00076     QList<QLabel *> mLabels;
00077     KOrganizerPlugin *mPlugin;
00078     KCal::CalendarResources *mCalendar;
00079     int mDaysAhead;
00080     bool mShowBirthdaysFromCal;
00081     bool mShowAnniversariesFromCal;
00082 };
00083 
00084 #endif

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal