Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsNewsLetterEm.h
Go to the documentation of this file.
1 #include <string>
2 #include <Wt/WContainerWidget>
3 
4 #include "EmailToken.h"
5 
6 #ifndef SEND_H_
7 #define SEND_H_
8 
9 using namespace Wt;
10 namespace dbo = Wt::Dbo;
11 
12 class WsNewsLetter : public WContainerWidget {
13 public:
14  WsNewsLetter(WContainerWidget* parent);
15  ~WsNewsLetter();
16 
17 private:
18  WText* info_;
19  WLineEdit* emailLE_;
20  WPushButton* button_;
21  dbo::Session session_;
22  dbo::backend::Sqlite3* sqlite3_;
23 
24  void createUser();
25  void sendConfirmMail(const std::string& email,
26  const std::string& userToken) const;
27  void sendMail(const Mail::Message& message) const;
28 };
29 
30 #endif //SEND_H_
WPushButton * button_
WLineEdit * emailLE_