00001 #ifndef KAB_DISTRIBUTIONLISTENTRYVIEW_H
00002 #define KAB_DISTRIBUTIONLISTENTRYVIEW_H
00003
00004 #include <libtdepim/distributionlist.h>
00005
00006 #include <tqmap.h>
00007 #include <tqstring.h>
00008 #include <tqwidget.h>
00009
00010 class TQBoxLayout;
00011 class TQButtonGroup;
00012 class TQComboBox;
00013 class TQGridLayout;
00014 class TQLabel;
00015
00016 class KURLLabel;
00017
00018 class ImageButton;
00019
00020 namespace KAB {
00021
00022 class Core;
00023
00024 class DistributionListEntryView : public TQWidget
00025 {
00026 Q_OBJECT
00027
00028
00029 public:
00030 explicit DistributionListEntryView( KAB::Core* core, TQWidget* parent = 0 );
00031 void setEntry( const KPIM::DistributionList& list, const KPIM::DistributionList::Entry& entry );
00032
00033 public slots:
00034 void clear();
00035
00036 signals:
00037 void distributionListClicked( const TQString& );
00038
00039 private slots:
00040 void emailButtonClicked( int id );
00041
00042 private:
00043 TQMap<int, TQString> m_idToEmail;
00044 KAB::Core* m_core;
00045 KPIM::DistributionList m_list;
00046 KPIM::DistributionList::Entry m_entry;
00047 TQGridLayout* m_radioLayout;
00048 TQBoxLayout* m_mainLayout;
00049 TQButtonGroup* m_emailGroup;
00050 TQLabel* m_addresseeLabel;
00051 KURLLabel* m_distListLabel;
00052 TQLabel* m_imageLabel;
00053 TQLabel* m_resourceLabel;
00054 TQMap<int, TQString> m_indexToIdentifier;
00055 };
00056
00057 }
00058
00059 #endif // KAB_DISTRIBUTIONLISTENTRYVIEW_H