kaddressbook

distributionlistentryview.h
1#ifndef KAB_DISTRIBUTIONLISTENTRYVIEW_H
2#define KAB_DISTRIBUTIONLISTENTRYVIEW_H
3
4#include <libtdepim/distributionlist.h>
5
6#include <tqmap.h>
7#include <tqstring.h>
8#include <tqwidget.h>
9
10class TQBoxLayout;
11class TQButtonGroup;
12class TQComboBox;
13class TQGridLayout;
14class TQLabel;
15
16class KURLLabel;
17
18class ImageButton;
19
20namespace KAB {
21
22class Core;
23
24class DistributionListEntryView : public TQWidget
25{
26 TQ_OBJECT
27
28
29public:
30 explicit DistributionListEntryView( KAB::Core* core, TQWidget* parent = 0 );
31 void setEntry( const KPIM::DistributionList& list, const KPIM::DistributionList::Entry& entry );
32
33public slots:
34 void clear();
35
36signals:
37 void distributionListClicked( const TQString& );
38
39private slots:
40 void emailButtonClicked( int id );
41
42private:
43 TQMap<int, TQString> m_idToEmail;
44 KAB::Core* m_core;
45 KPIM::DistributionList m_list;
46 KPIM::DistributionList::Entry m_entry;
47 TQGridLayout* m_radioLayout;
48 TQBoxLayout* m_mainLayout;
49 TQButtonGroup* m_emailGroup;
50 TQLabel* m_addresseeLabel;
51 KURLLabel* m_distListLabel;
52 TQLabel* m_imageLabel;
53 TQLabel* m_resourceLabel;
54 TQMap<int, TQString> m_indexToIdentifier;
55};
56
57}
58
59#endif // KAB_DISTRIBUTIONLISTENTRYVIEW_H
Small helper class.
Definition: imagewidget.h:57