]> err.no Git - sope/blob - sope-appserver/NGObjWeb/NGObjWeb/WODirectAction.h
major improvements in resource/template lookup with SoProduct's
[sope] / sope-appserver / NGObjWeb / NGObjWeb / WODirectAction.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with SOPE; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #ifndef __NGObjWeb_WODirectAction_H__
23 #define __NGObjWeb_WODirectAction_H__
24
25 #import <Foundation/NSObject.h>
26 #include <NGObjWeb/WOActionResults.h>
27
28 @class NSString, NSDictionary, NSArray;
29 @class WORequest, WOComponent, WOSession, WOContext;
30
31 @interface WODirectAction : NSObject
32 {
33   WOContext *context;
34 }
35
36 - (id)initWithContext:(WOContext *)_context;
37 - (id)initWithRequest:(WORequest *)_request;
38
39 /* accessors */
40
41 - (WORequest *)request;
42 - (id)session;
43 - (id)existingSession;
44
45 /* actions */
46
47 - (id<WOActionResults>)performActionNamed:(NSString *)_actionName;
48
49 - (void)takeFormValuesForKeyArray:(NSArray *)_keys;
50 - (void)takeFormValuesForKeys:(NSString *)_key1,...;
51 - (void)takeFormValueArraysForKeyArray:(NSArray *)_keys;
52 - (void)takeFormValueArraysForKeys:(NSString *)_key1,...;
53
54 /* pages */
55
56 - (id)pageWithName:(NSString *)_name;
57
58 @end
59
60 @interface WODirectAction(NGObjWebAdditions)
61
62 - (WOContext *)context;
63
64 @end
65
66 @interface WODirectAction(WODebugging)
67 /* implemented in NGExtensions */
68
69 - (void)debugWithFormat:(NSString *)_format, ...;
70 - (void)logWithFormat:(NSString *)_format, ...;
71
72 @end
73
74 #endif /* __NGObjWeb_WODirectAction_H__ */