DCL 3.7.4
Loading...
Searching...
No Matches
VisitorBook.h
Go to the documentation of this file.
1#ifndef __ESHOP_VISITOR_BOOK_H__
2#define __ESHOP_VISITOR_BOOK_H__ 20041210
3
4#ifndef __DCL_SQL_H__
5#include <dcl/SQL.h>
6#endif
7#ifndef __DCL_HTTP_SERVLET_EX_H__
8#include <dcl/HttpServletEx.h>
9#endif
10#ifndef __DCL_TEXT_TEMPLATE_H__
11#include <dcl/TextTemplate.h>
12#endif
13
14__DCL_BEGIN_NAMESPACE
15
16class VisitorBook : public Object
17{
19protected:
20 String __strMainCommand;
21 int __nMainCommandID;
22 String __strCommand;
23 const EShopServlet& __servlet;
24
25 enum COMMAND
26 {
27 CM_VISITOR_BOOK_LIST = 0,
28 CM_VISITOR_BOOK_BODY,
29 CM_VISITOR_BOOK_DELETE,
30 CM_VISITOR_BOOK_UPDATE_FORM,
31 CM_VISITOR_BOOK_UPDATE
32 };
33
34public:
36 const String& strMainCommand,
37 int nMainCommandID,
38 const String& strCommand,
39 const EShopServlet& _servlet
40 );
41
42 bool onVisitorBook(
44 Writer& out,
45 SQLConnection* pSQLConn
46 );
47
49 SQLConnection* pSQLConn,
50 Writer& out
51 );
52
54 ListedStringToStringArrayMap& params,
55 SQLConnection* pSQLConn,
56 Writer& out
57 );
58
60 ListedStringToStringArrayMap& params,
61 SQLConnection* pSQLConn,
62 Writer& out
63 );
64
66 ListedStringToStringArrayMap& params,
68 SQLConnection* pSQLConn,
69 Writer& out
70 );
71
73 ListedStringToStringArrayMap& params,
74 SQLConnection* pSQLConn,
75 Writer& out
76 );
77};
78
79__DCL_END_NAMESPACE
80
81#endif // __ESHOP_VISITOR_BOOK_H__
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:227
Object()
Definition Object.cpp:183
bool onVisitorBookBody(ListedStringToStringArrayMap &params, SQLConnection *pSQLConn, Writer &out)
void onVisitorBookDelete(ListedStringToStringArrayMap &params, SQLConnection *pSQLConn, Writer &out)
bool onVisitorBook(HttpServletContextEx &ctx, Writer &out, SQLConnection *pSQLConn)
void onVisitorBookList(SQLConnection *pSQLConn, Writer &out)
void onVisitorBookUpdateForm(ListedStringToStringArrayMap &params, SQLConnection *pSQLConn, Writer &out)
void onVisitorBookUpdate(ListedStringToStringArrayMap &params, HttpServletContextEx &ctx, SQLConnection *pSQLConn, Writer &out)
VisitorBook(const String &strMainCommand, int nMainCommandID, const String &strCommand, const EShopServlet &_servlet)