Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModBreadCrumb.cpp
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 #include <dlfcn.h>
8 #include <stdio.h>
9 
10 #include <iostream>
11 
12 #include <boost/filesystem.hpp>
13 
14 #include <Wt/WLogger>
15 
16 #include <Logger/WsLogger.h>
17 
18 #include <Main/WsApplication.h>
19 
20 #include "WsModBreadCrumb.h"
21 #include "WsBreadCrumb.h"
22 
23 extern "C" {
25  {
26  void* hndl = dlopen("libwt.so", RTLD_NOW | RTLD_GLOBAL);
27  if ( hndl == NULL ) {
28  fprintf(stderr, "cannot load libwt.so shared library! %s\n", dlerror());
29  return;
30  }
31  }
32 }
33 
34 // Class WsModBreadCrumb
35 // =====================
37  : WsModule()
38 {
39 }
40 
42 {
43 }
44 
45 WWidget* WsModBreadCrumb::createContentsMenuBar(WContainerWidget* parent) const
46 {
47  return 0;
48 }
49 
50 WWidget* WsModBreadCrumb::createContents(WContainerWidget* parent) const
51 {
52  WsBreadCrumb* pWsBreadCrumb = new WsBreadCrumb(parent);
53  pWsBreadCrumb->setOptions(options());
54  return pWsBreadCrumb;
55 }
56 
57 WsEditorWidget* WsModBreadCrumb::createEditor(WContainerWidget* parent) const
58 {
59  return 0;
60 }
61 
62 WWidget* WsModBreadCrumb::createAdmin(WContainerWidget* parent) const
63 {
64  return 0;
65 }
66 
67 std::string WsModBreadCrumb::description() const
68 {
69  return "WsModBreadCrumb wittyShare module";
70 }
71 
a wittyShare module
const std::vector< WsOption > & options() const
Get all options.
Definition: WsOption.cpp:70
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
std::string description() const
Return the description of the module.
void setOptions(const std::vector< WsOption > &vOptions)
Set all options.
Definition: WsOption.cpp:57
void WsModBreadCrumbInit(void)