kaddressbook
distributionlistentryview.h00001 #ifndef KAB_DISTRIBUTIONLISTENTRYVIEW_H
00002 #define KAB_DISTRIBUTIONLISTENTRYVIEW_H
00003
00004 #include <libkdepim/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 QWidget
00025 {
00026 Q_OBJECT
00027
00028 public:
00029 explicit DistributionListEntryView( KAB::Core* core, TQWidget* 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 TQString& );
00037
00038 private slots:
00039 void emailButtonClicked( int id );
00040
00041 private:
00042 TQMap<int, TQString> m_idToEmail;
00043 KAB::Core* m_core;
00044 KPIM::DistributionList m_list;
00045 KPIM::DistributionList::Entry m_entry;
00046 TQGridLayout* m_radioLayout;
00047 TQBoxLayout* m_mainLayout;
00048 TQButtonGroup* m_emailGroup;
00049 TQLabel* m_addresseeLabel;
00050 KURLLabel* m_distListLabel;
00051 TQLabel* m_imageLabel;
00052 TQLabel* m_resourceLabel;
00053 TQMap<int, TQString> m_indexToIdentifier;
00054 };
00055
00056 }
00057
00058 #endif // KAB_DISTRIBUTIONLISTENTRYVIEW_H
|