Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModImages2.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 WsModImages2_H__
8 #define WsModImages2_H__ 1
9 
10 #include <Wt/WContainerWidget>
11 
12 #include <WsModule/WsModule.h>
13 
14 using namespace Wt;
15 
16 class WsModImages2 : public WsModule {
17 public :
19  WsModImages2();
20  ~WsModImages2();
21  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
22  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
23  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
24  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
25  std::string description() const;
26 };
27 
28 extern "C" {
29  // http://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc/
30  void WsModImages2Init(void) __attribute__((constructor));
31 
33  {
34  return new WsModImages2();
35  }
36 }
37 
38 #endif // ifndef WsModImages2_H__
39 
void WsModImages2Init(void) __attribute__((constructor))
WsModImages2 * buildModule()
Definition: WsModImages2.h:32