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
QStringList configModules() const;
00048
void configUpdated();
00049 public:
00050
void updateSummary(
bool force = false ) { Q_UNUSED( force ); updateView(); }
00051
00052
protected:
00053
virtual bool eventFilter(
QObject *obj,
QEvent* e);
00054
00055
private slots:
00056
void updateView();
00057
void popupMenu(
const QString &uid );
00058
void mailContact(
const QString &uid );
00059
void viewContact(
const QString &uid );
00060
00061
private:
00062
void dateDiff(
const QDate &date,
int &days,
int &years );
00063
QGridLayout *mLayout;
00064
QPtrList<QLabel> mLabels;
00065
Kontact::Plugin *mPlugin;
00066
int mDaysAhead;
00067
bool mShowBirthdays;
00068
bool mShowAnniversaries;
00069 };
00070
00071
#endif
This file is part of the documentation for kontact Library Version 3.3.0.