Wtx ~ Wt Extension Library
WtxLib
AddresseeEdit.h
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, 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:
54  Label *label_;
55 
57  bool parse(std::vector<Contact>& contacts) const;
58 };
59 
63 #endif // ADDRESSEE_EDIT_H_
A label.
Definition: Label.h:24
An edit field for an email addressee.
Definition: AddresseeEdit.h:31