1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     boss_TaskAction.h
4 
5   Copyright (C)2009-2011 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 47513 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_BOSS_BOSS_TASK_ACTION_H_
17 #define NN_BOSS_BOSS_TASK_ACTION_H_
18 
19 #include <nn/types.h>
20 
21 #include <nn/boss/boss_Const.h>
22 #include <nn/boss/boss_Result.h>
23 #include <nn/boss/boss_Types.h>
24 
25 #ifdef __cplusplus
26 
27 namespace nn {
28 namespace boss {
29 
30 
31 /* Please see man pages for details
32 
33 */
34 class TaskActionBase
35 {
36 protected:
37 /* Please see man pages for details
38 
39 */
40     explicit TaskActionBase(void);
41 
42 /* Please see man pages for details
43 
44 */
45     virtual ~TaskActionBase(void);
46 
47 public:
48 /* Please see man pages for details
49 
50 
51 
52 
53 
54 
55 
56 */
57     nn::Result SetPrivateRootCa(void);
58 
59 /* Please see man pages for details
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 */
73     nn::Result SetRootCa(u32 inCaCertId);
74 
75 /* Please see man pages for details
76 
77 
78 
79 
80 
81 */
82     nn::Result ClearRootCaSetting( void );
83 
84 /* Please see man pages for details
85 
86 
87 
88 
89 
90 
91 
92 */
93     nn::Result SetPrivateClientCert(void);
94 
95 
96 
97 /* Please see man pages for details
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 */
109     nn::Result SetClientCert(u32 inClientCertId);
110 
111 
112 /* Please see man pages for details
113 
114 
115 
116 
117 
118 
119 */
120     nn::Result SetApInfo(ApInfoType info);
121 
122 
123 /* Please see man pages for details
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 */
138     nn::Result SetCfgInfo(CfgInfoType info);
139 
140 
141 /* Please see man pages for details
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 */
152     nn::Result AddHeaderField(const char* pLabel, const char* pValue);
153 
154 /* Please see man pages for details
155 
156 
157 
158 
159 
160 
161 
162 */
163     nn::Result SetLastModifiedTime(const char* pLastModifiedTime);
164 
165 protected:
166 /* Please see man pages for details
167 
168 
169 
170 
171 
172 
173 
174 
175 
176 
177 
178 
179 
180 
181 
182 
183 
184 
185 
186 
187 
188 
189 
190 
191 */
192     nn::Result SetHttpProperty(PropertyType type, const void* pValue, size_t size) ;
193 
194 /* Please see man pages for details
195 
196 
197 
198 
199 
200 
201 
202 
203 
204 
205 
206 
207 
208 
209 
210 
211 
212 
213 
214 
215 
216 
217 
218 */
219     nn::Result GetHttpProperty(PropertyType type, void* pValue, size_t size) ;
220 
221 /* Please see man pages for details
222 
223 
224 
225 
226 
227 
228 
229 
230 
231 
232 
233 
234 
235 
236 
237 
238 
239 */
240     nn::Result SetFileProperty(PropertyType type, const void* pValue, size_t size) ;
241 
242 /* Please see man pages for details
243 
244 
245 
246 
247 
248 
249 
250 
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 */
261     nn::Result GetFileProperty(PropertyType type, void* pValue, size_t size) ;
262 
263 
264     friend class AccessConfig;
265     TaskActionConfig    m_Action;
266 };
267 
268 
269 /* Please see man pages for details
270 
271 
272 */
273 class TaskAction : public TaskActionBase
274 {
275 public:
276 /* Please see man pages for details
277 
278 */
279     explicit TaskAction(void);
280 
281 /* Please see man pages for details
282 
283 */
284     virtual ~TaskAction(void);
285 
286 /* Please see man pages for details
287 
288 
289 
290 
291 
292 
293 
294 
295 
296 
297 
298 
299 
300 
301 
302 
303 
304 
305 
306 
307 
308 
309 
310 
311 */
312     nn::Result virtual GetProperty(PropertyType type, void* pValue, size_t size);
313 
314 };
315 
316 
317 } // end of namespace boss
318 } // end of namespace nn
319 
320 #endif // __cplusplus
321 
322 #endif /* NN_BOSS_BOSS_TASK_ACTION_H_ */
323 
324