Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModRSS.h
Go to the documentation of this file.
1 /*
2  *
3  * Filename: WsModRSS.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 __WsModRSS__H_
13 #define __WsModRSS__H_
14 
15 #include <Wt/WContainerWidget>
16 
17 #include <Main/WsApplication.h>
18 
19 class WsModRSS : public WsModule {
20 
21 public :
22  WsModRSS();
23  ~WsModRSS();
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  std::string description() const;
29  void buildMenuBar(Wt::WContainerWidget* parent = 0);
30 };
31 
32 extern "C" {
33  void WsModRSSInit(void) __attribute__((constructor));
34 
36  {
37  return new WsModRSS();
38  }
39 }
40 
41 #endif
42 
std::string description() const
Return the description of the module.
Definition: WsModRSS.cpp:83
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
Definition: WsModRSS.cpp:68
void buildMenuBar(Wt::WContainerWidget *parent=0)
Definition: WsModRSS.cpp:88
void WsModRSSInit(void) __attribute__((constructor))
Definition: WsModRSS.cpp:41
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
Definition: WsModRSS.cpp:61
~WsModRSS()
Definition: WsModRSS.cpp:57
WsModRSS * buildModule()
Definition: WsModRSS.h:35
WsModRSS()
Definition: WsModRSS.cpp:51
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
Definition: WsModRSS.cpp:73
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.
Definition: WsModRSS.cpp:78