kaddressbook

distributionlistentryview.h

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