TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2KB

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