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