kabsummarywidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KABSUMMARYWIDGET_H
00025 #define KABSUMMARYWIDGET_H
00026
00027 #include <qptrlist.h>
00028 #include <qwidget.h>
00029
00030 #include "summary.h"
00031
00032 namespace Kontact {
00033 class Plugin;
00034 }
00035
00036 class QGridLayout;
00037 class QLabel;
00038
00039 class KABSummaryWidget : public Kontact::Summary
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 KABSummaryWidget( Kontact::Plugin *plugin, QWidget *parent,
00045 const char *name = 0 );
00046
00047 protected:
00048 virtual bool eventFilter(QObject *obj, QEvent* e);
00049
00050 private slots:
00051 void updateView();
00052 void popupMenu( const QString &uid );
00053 void mailContact( const QString &uid );
00054 void viewContact( const QString &uid );
00055
00056 private:
00057 void dateDiff( const QDate &date, int &days, int &years );
00058 QGridLayout *mLayout;
00059 QPtrList<QLabel> mLabels;
00060 Kontact::Plugin *mPlugin;
00061 int mDaysAhead;
00062 };
00063
00064 #endif
This file is part of the documentation for kontact Library Version 3.2.2.