[b7a122]: src / org / esb / web / WebApp2.h  Maximize  Restore  History

Download this file

95 lines (86 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* File: WebApp2.h
* Author: jhoelscher
*
* Created on 26. August 2009, 13:13
*/
#include "org/esb/db/hivedb.hpp"
#include "org/esb/lang/Ptr.h"
#include <Wt/WApplication>
#include <Wt/WEnvironment>
#include <Wt/WContainerWidget>
#include <Wt/WSignalMapper>
#include <Wt/WEvent>
#include <Wt/Ext/Panel>
#include <Wt/Ext/Container>
#include "Wt/WBorderLayout"
//#include "SqlTable.h"
#include "JobTable.h"
#include "ProjectTable.h"
#ifndef _WEBAPP2_H
#define _WEBAPP2_H
namespace org {
namespace esb {
namespace web {
class Login;
class WebApp2 : public Wt::WApplication {
public:
WebApp2(const Wt::WEnvironment & env);
//~WebApp2();
// private:
void listProjects();
void createProject();
void listAllFiles();
void listImportedFiles();
void listEncodedFiles();
void listAllEncodings();
void listPendingEncodings();
void listActiveEncodings();
void listSuccessfullEncodings();
void listFailureEncodings();
void listAllProfiles();
void createProfiles();
void profilesCreated();
void listAllWatchfolder();
void createWatchfolder();
void watchfolderCreated();
void editSystemConfiguration();
void viewNodes();
void openConfiguration();
void shutdown();
void openPreview();
void logout();
bool authorize();
Ptr<db::User> getUser();
private:
void buildGui();
void setContent(Wt::WWidget * w);
Wt::Ext::Panel * menu_panel;
Wt::Ext::Panel * main_panel;
Wt::Ext::Panel * info_panel;
Wt::Ext::Panel * object_panel;
Wt::Ext::Container *viewPort;
Wt::WBorderLayout *layout;
// Wt::Ext::Dialog * cwd;
// Wt::Ext::Dialog * cpd;
//Wt::WSignalMapper<SqlTable*> *_fileSignalMap;
Wt::WSignalMapper<JobTable*> *_jobSignalMap;
//void fileSelected(SqlTable *);
void jobSelected(JobTable *);
Wt::WSignalMapper<ProjectTable*> *_projectSignalMap;
//void fileSelected(SqlTable *);
void projectSelected(ProjectTable *);
//void fileSelected(SqlTable *);
void presetSelected(int);
void presetSelected2(std::string);
Ptr<db::HiveDb> _db;
void authenticated(db::User);
bool _isAuthenticated;
Login * login;
Ptr<db::User> _user;
void showLogin();
};
}
}
}
#endif /* _WEBAPP2_H */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks