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 
10 class TQBoxLayout;
11 class TQButtonGroup;
12 class TQComboBox;
13 class TQGridLayout;
14 class TQLabel;
15 
16 class KURLLabel;
17 
18 class ImageButton;
19 
20 namespace KAB {
21 
22 class Core;
23 
24 class DistributionListEntryView : public TQWidget
25 {
26  TQ_OBJECT
27 
28 
29 public:
30  explicit DistributionListEntryView( KAB::Core* core, TQWidget* parent = 0 );
31  void setEntry( const KPIM::DistributionList& list, const KPIM::DistributionList::Entry& entry );
32 
33 public slots:
34  void clear();
35 
36 signals:
37  void distributionListClicked( const TQString& );
38 
39 private slots:
40  void emailButtonClicked( int id );
41 
42 private:
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