DCL 3.7.4
Loading...
Searching...
No Matches
MessageView.h
Go to the documentation of this file.
1#ifndef __DCL_HS_MESSAGE_VIEW_H__
2#define __DCL_HS_MESSAGE_VIEW_H__ 20060210
3
4#ifndef __DCL_HS_HTML_VIEW_H__
5#include "HtmlView.h"
6#endif
7
8__DCL_BEGIN_NAMESPACE
9
10#define BODY_TYPE_ERASED_LEAVE -3
11#define BODY_TYPE_ERASED_ADMIN -2
12#define BODY_TYPE_ERASED_USER -1
13#define BODY_TYPE_PLAIN_BR 0 // LF --> <br/>
14#define BODY_TYPE_PLAIN_P 1 // LF --> <p></p>
15#define BODY_TYPE_HTML 2 // 순수 HTML
16
17#define BODY_TYPE_MAX BODY_TYPE_HTML
18
19#define IS_NOTICE_ID(nMessageID) (nMessageID > 2000000000)
20
21class MessageView : public HtmlView
22{
24public:
25 MessageView(HtmlPage* pPage);
26
27protected:
28 virtual void init(SQLFields& fields)
30
31 virtual void onPrint(Session& session)
33
39
43};
44
46{
48public:
50
51 virtual void init(SQLFields& fields)
53
54 virtual void onPrint(Session& session)
56
57protected:
61
62 String __strMsg;
63 String __strSort;
64
71
74
82
84 enum Filter
85 {
86 // default : 0x0000 == NOTICE | START | REPLY
87 FILTER_NOTICE = 0x0001,
88 FILTER_START = 0x0002,
89 FILTER_REPLY = 0x0004,
90
91 FILTER_SELF = 0x0010,
93
95 };
96
100 {
104 };
105};
106
108{
110protected:
111 String __strWritePage;
112 String __strListPage;
113 String __strAttachTitle;
114
115 String __strMsg;
116 String __strSort;
117
118 int __nParts;
119 int __nRows;
120
121 int __nFilter;
122 enum FILTER_FLAG
123 {
124 // default : 0x0000 == SELF
125 FILTER_SELF = 0x0100,
126 FILTER_CHILDREN = 0x0200
127 };
128
129 int __nSubject;
130 enum SUBJECT_FLAG
131 {
132 SUBJECT_PARENT = 0x0001,
133 SUBJECT_PREV = 0x0002,
134 SUBJECT_NEXT = 0x0004
135 };
136
137public:
139
140 virtual void init(SQLFields& fields)
142
143 virtual void onPrint(Session& session)
145
146 virtual void onGet(Session& session)
148
149};
150
152{
154protected:
155 String __strDetailPage;
156 String __strListPage;
157
158 int __nThumbnailImageSize;
159
160public:
162
163 virtual void init(SQLFields& fields)
165
166 virtual void onPrint(Session& session)
168
169 virtual void onPost(Session& session)
171
172};
173
174__DCL_END_NAMESPACE
175
176#endif // __DCL_HS_MESSAGE_VIEW_H__
#define __DCL_THROWS1(e)
Definition Config.h:152
#define DECLARE_CLASSINFO_EX(class_name)
Definition HtmlView.h:32
HtmlView(HtmlPage *pPage)
virtual void onGet(Session &session) __DCL_THROWS1(Exception *)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
MessageDetailView(HtmlPage *pPage)
String __strListPage
Definition MessageView.h:60
String __strDetailPage
Definition MessageView.h:58
String __strWritePage
Definition MessageView.h:59
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
int __nStartPermID
Definition MessageView.h:40
int __nReplyDepth
Definition MessageView.h:37
int __nAttachPerm
Definition MessageView.h:42
String __strDsName
Definition MessageView.h:34
MessageWriteForm(HtmlPage *pPage)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
virtual void onPost(Session &session) __DCL_THROWS1(Exception *)
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)