kaddressbook
distributionlistentryview.h
Go to the documentation of this file.00001 #ifndef KAB_DISTRIBUTIONLISTENTRYVIEW_H
00002 #define KAB_DISTRIBUTIONLISTENTRYVIEW_H
00003
00004 #include <libkdepim/distributionlist.h>
00005
00006 #include <QtCore/QMap>
00007 #include <QtCore/QString>
00008 #include <QtGui/QWidget>
00009
00010 class QBoxLayout;
00011 class QComboBox;
00012 class QGridLayout;
00013 class QLabel;
00014
00015 class KUrlLabel;
00016
00017 class ImageButton;
00018
00019 namespace KAB {
00020
00021 class Core;
00022
00023 class DistributionListEntryView : public QWidget
00024 {
00025 Q_OBJECT
00026
00027 public:
00028 explicit DistributionListEntryView( KAB::Core* core, QWidget* parent = 0 );
00029 void setEntry( const KPIM::DistributionList& list, const KPIM::DistributionList::Entry& entry );
00030
00031 public Q_SLOTS:
00032 void clear();
00033
00034 Q_SIGNALS:
00035 void distributionListClicked( const QString& );
00036
00037 private Q_SLOTS:
00038 void emailButtonClicked( int id );
00039
00040 private:
00041 QMap<int, QString> m_idToEmail;
00042 KAB::Core* m_core;
00043 KPIM::DistributionList m_list;
00044 KPIM::DistributionList::Entry m_entry;
00045 QGridLayout* m_radioLayout;
00046 QBoxLayout* m_mainLayout;
00047 QWidget* m_emailGroup;
00048 QLabel* m_addresseeLabel;
00049 KUrlLabel* m_distListLabel;
00050 QLabel* m_imageLabel;
00051 QLabel* m_resourceLabel;
00052 QMap<int, QString> m_indexToIdentifier;
00053 };
00054
00055 }
00056
00057 #endif // KAB_DISTRIBUTIONLISTENTRYVIEW_H