Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModNewsLetter.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2006-Today Guy Deleeuw
3 *
4 * See the LICENSE file for terms of use.
5 */
6 
7 #ifndef WsModNewsLetter_H__
8 #define WsModNewsLetter_H__ 1
9 
10 #include <Wt/WContainerWidget>
11 #include <Wt/WLineEdit>
12 #include <Wt/WPushButton>
13 
14 #include <WsModule/WsModule.h>
15 
16 using namespace Wt;
17 
24 class WsModNewsLetter : public WsModule {
25 public :
28  ~WsModNewsLetter();
29  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
30  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
31  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
32  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
33  bool saveEditor() const;
34  std::string description() const;
35  virtual std::string checkPath(const std::string& currentPath);
36 };
37 
38 extern "C" {
39  // http://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc/
40  void WsModNewsLetterInit(void) __attribute__((constructor));
41 
43  {
44  return new WsModNewsLetter();
45  }
46 }
47 
48 #endif // ifndef WsModNewsLetter_H__
49 
WsModNewsLetter * buildModule()
void WsModNewsLetterInit(void) __attribute__((constructor))