DCL 4.0
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 m_strMainCommand;
21 int m_nMainCommandID;
22 String m_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
34
35public:
37 const String& strMainCommand,
38 int nMainCommandID,
39 const String& strCommand,
40 const EShopServlet& _servlet
41 );
42
43 bool onVisitorBook(
45 Writer& out,
46 SQLConnection* pSQLConn
47 );
48
50 SQLConnection* pSQLConn,
51 Writer& out
52 );
53
55 ListedStringToStringArrayMap& params,
56 SQLConnection* pSQLConn,
57 Writer& out
58 );
59
61 ListedStringToStringArrayMap& params,
62 SQLConnection* pSQLConn,
63 Writer& out
64 );
65
67 ListedStringToStringArrayMap& params,
69 SQLConnection* pSQLConn,
70 Writer& out
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:210
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)