00001 // This may look like C code, but it's really -*- C++ -*- 00002 /* 00003 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium. 00004 * 00005 * See the LICENSE file for terms of use. 00006 */ 00007 #ifndef ADDRESSEE_EDIT_H_ 00008 #define ADDRESSEE_EDIT_H_ 00009 00010 #include <WTextArea> 00011 00012 #include "Contact.h" 00013 00014 using namespace Wt; 00015 00016 class WTableCell; 00017 00018 class Label; 00019 00024 00029 class AddresseeEdit : public WTextArea 00030 { 00031 public: 00037 AddresseeEdit(const WString& label, WContainerWidget *parent, 00038 WContainerWidget *labelParent); 00039 00042 void setAddressees(const std::vector<Contact>& contacts); 00043 00046 std::vector<Contact> addressees() const; 00047 00049 virtual void setHidden(bool); 00050 00051 private: 00053 Label *label_; 00054 00056 bool parse(std::vector<Contact>& contacts) const; 00057 }; 00058 00062 #endif // ADDRESSEE_EDIT_H_