Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModFollowUs.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 WsModFollowUs_H__
8 #define WsModFollowUs_H__ 1
9 
10 #include <Wt/WContainerWidget>
11 #include <Wt/WFileUpload>
12 #include <Wt/WProgressBar>
13 
14 #include <WsModule/WsModule.h>
15 
16 using namespace Wt;
17 
24 class WsFollowUs : public Wt::WContainerWidget, public WsOptions {
25 public :
27  WsFollowUs(Wt::WContainerWidget* parent = 0);
28  ~WsFollowUs();
29  void load();
30 
31 };
32 
33 class WsModFollowUs : public WsModule {
34 public :
36  WsModFollowUs();
37  ~WsModFollowUs();
38  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
39  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
40  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
41  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
42  std::string description() const;
43 };
44 
45 extern "C" {
46  // http://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc/
47  void WsModFollowUsInit(void) __attribute__((constructor));
48 
50  {
51  return new WsModFollowUs();
52  }
53 }
54 
55 #endif // ifndef WsModFollowUs_H__
56 
WsModFollowUs * buildModule()
Definition: WsModFollowUs.h:49
void WsModFollowUsInit(void) __attribute__((constructor))