Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModLatestNews2.h
Go to the documentation of this file.
1 /*
2  *
3  * Filename: WsModLatestNews2.h
4  *
5  * Description: WsLatestNews with a Wt WTable Wittyshare plugin
6  *
7  * Created: 05/01/2013 13:37:00
8  *
9  * Author: Guy Deleeuw : guy.deleeuw@gmail.com
10  *
11  */
12 #ifndef __WsModLatestNews2__H_
13 #define __WsModLatestNews2__H_
14 
15 #include <Wt/WContainerWidget>
16 
17 #include <Main/WsApplication.h>
18 
19 class WsModLatestNews2 : public WsModule {
20 
21 public :
24  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
25  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
26  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
27  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
28  bool saveEditor() const;
29  std::string description() const;
30 };
31 
32 extern "C" {
33  void WsModLatestNews2Init(void) __attribute__((constructor));
34 
36  {
37  return new WsModLatestNews2();
38  }
39 }
40 
41 #endif
42 
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
WsModLatestNews2 * buildModule()
void WsModLatestNews2Init(void) __attribute__((constructor))
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
std::string description() const
Return the description of the module.
bool saveEditor() const
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.