Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsApplication.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 _WsApplication_H_
8 #define _WsApplication_H_
9 
10 #include <Wt/WTemplate>
11 
12 #include <User/WsUser.h>
13 
14 #include <gdwtcore/gdApplication.h>
15 #include <gdwtcore/gdToolbar.h>
16 #include <gdwtcore/gdWLogon.h>
17 
18 #include "Main/WsModulesLoader.h"
20 #include "Main/WsContent.h"
21 
22 #include <Include/WsGlobalConfig.h>
23 
24 class WsApplication : public gdApplication {
25 public :
26  WsApplication(const Wt::WEnvironment& env);
28  void hideImages(bool bHide = true);
29 
30  WsUser* wsUser();
32  void setTemplate(const std::string& sPage);
33  void setContent(WsContent* pContent);
34  void setContentButtonsBar(WsContentButtonsBar* pButtonsBar);
36  const std::string& homePage();
37 
40  return (WsApplication*) instance();
41  };
42 
43 public slots :
44  void doPathChanged(std::string newPath);
45  void doEndDialogLogon(std::string sUid, std::string pPassword);
46  void googleAnalyticsLogger(std::string newPath);
47 
48 private :
50 
53  Wt::WWidget* m_pImages;
55  std::string m_sHomePage;
56  std::string m_sTemplate;
57  gdWLogon* m_logon;
58 
59 };
60 
62 #define WsApp WsApplication::wsInstance()
63 
64 #endif // ifdef _WsApplication_H_
65 
WsUser * wsUser()
WsModulesLoader & WsModules()
void doPathChanged(std::string newPath)
WsUser * m_pUser
Definition: WsApplication.h:49
gdWLogon * m_logon
Definition: WsApplication.h:57
static WsApplication * wsInstance()
Facility function to access the application object.
Definition: WsApplication.h:39
void hideImages(bool bHide=true)
std::string m_sTemplate
Definition: WsApplication.h:56
void setContent(WsContent *pContent)
Interface that provides differents methods for accessing the FsTree as well as other features...
Definition: WsUser.h:33
std::string m_sHomePage
Definition: WsApplication.h:55
void googleAnalyticsLogger(std::string newPath)
void setTemplate(const std::string &sPage)
WsContentButtonsBar * m_pButtonsBar
Definition: WsApplication.h:51
WsModulesLoader m_ml
Definition: WsApplication.h:54
void doEndDialogLogon(std::string sUid, std::string pPassword)
const std::string & homePage()
WsContentButtonsBar * contentButtonsBar()
WsApplication(const Wt::WEnvironment &env)
WsContent * m_pContent
Definition: WsApplication.h:52
Wt::WWidget * m_pImages
Definition: WsApplication.h:53
User class.
void setContentButtonsBar(WsContentButtonsBar *pButtonsBar)