diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kaddressbook/distributionlistentryview.h | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/distributionlistentryview.h')
-rw-r--r-- | kaddressbook/distributionlistentryview.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/kaddressbook/distributionlistentryview.h b/kaddressbook/distributionlistentryview.h new file mode 100644 index 000000000..1fbf9f2d7 --- /dev/null +++ b/kaddressbook/distributionlistentryview.h @@ -0,0 +1,58 @@ +#ifndef KAB_DISTRIBUTIONLISTENTRYVIEW_H +#define KAB_DISTRIBUTIONLISTENTRYVIEW_H + +#include <libkdepim/distributionlist.h> + +#include <qmap.h> +#include <qstring.h> +#include <qwidget.h> + +class QBoxLayout; +class QButtonGroup; +class QComboBox; +class QGridLayout; +class QLabel; + +class KURLLabel; + +class ImageButton; + +namespace KAB { + +class Core; + +class DistributionListEntryView : public QWidget +{ + Q_OBJECT + +public: + explicit DistributionListEntryView( KAB::Core* core, QWidget* parent = 0 ); + void setEntry( const KPIM::DistributionList& list, const KPIM::DistributionList::Entry& entry ); + +public slots: + void clear(); + +signals: + void distributionListClicked( const QString& ); + +private slots: + void emailButtonClicked( int id ); + +private: + QMap<int, QString> m_idToEmail; + KAB::Core* m_core; + KPIM::DistributionList m_list; + KPIM::DistributionList::Entry m_entry; + QGridLayout* m_radioLayout; + QBoxLayout* m_mainLayout; + QButtonGroup* m_emailGroup; + QLabel* m_addresseeLabel; + KURLLabel* m_distListLabel; + QLabel* m_imageLabel; + QLabel* m_resourceLabel; + QMap<int, QString> m_indexToIdentifier; +}; + +} + +#endif // KAB_DISTRIBUTIONLISTENTRYVIEW_H |