Wt examples  4.10.4
AddresseeEdit.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bv, Herent, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef ADDRESSEE_EDIT_H_
8 #define ADDRESSEE_EDIT_H_
9 
10 #include <Wt/WTextArea.h>
11 
12 #include "Contact.h"
13 
14 using namespace Wt;
15 
16 namespace Wt {
17  class WTableCell;
18 }
19 
20 class Label;
21 
26 
31 class AddresseeEdit : public WTextArea
32 {
33 public:
39  AddresseeEdit(const WString& label, WContainerWidget *labelParent);
40 
43  void setAddressees(const std::vector<Contact>& contacts);
44 
47  std::vector<Contact> addressees() const;
48 
50  virtual void setHidden(bool hidden, const WAnimation& animation);
51 
52 private:
55 
57  bool parse(std::vector<Contact>& contacts) const;
58 };
59 
61 
62 
63 #endif // ADDRESSEE_EDIT_H_
An edit field for an email addressee.
Definition: AddresseeEdit.h:32
Label * label_
The label associated with this edit.
Definition: AddresseeEdit.h:54
A label.
Definition: Label.h:25
void parse(const std::string &input, Value &result, bool validateUTF8=true)