]> err.no Git - sope/blob - sope-appserver/NGObjWeb/SoObjects/WOContext+SoObjects.h
renamed packages as discussed in the developer list
[sope] / sope-appserver / NGObjWeb / SoObjects / WOContext+SoObjects.h
1 /*
2   Copyright (C) 2002-2004 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
6   OGo 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   OGo 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 OGo; 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 // $Id$
22
23 #ifndef __SoObjects_WOContext_SoObjects_H__
24 #define __SoObjects_WOContext_SoObjects_H__
25
26 #include <NGObjWeb/WOContext.h>
27
28 /*
29   WOContext(SoObjects)
30   
31   The WOContext is the central access point for SOPE too. It has several new
32   variables representing publishing state like the client object or the
33   traversal path. You also access global SOPE objects using the context, for
34   example the security manager.
35 */
36
37 @class NSArray;
38 @class SoSecurityManager, SoSubContext;
39
40 @interface WOContext(SoObjects)
41
42 /* security */
43
44 - (SoSecurityManager *)soSecurityManager;
45
46 /* traversal */
47
48 - (void)addObjectToTraversalStack:(id)_object;
49 - (NSArray *)objectTraversalStack;
50 - (id)traversalRoot;
51
52 - (void)setClientObject:(id)_object;
53 - (id)clientObject;
54
55 - (void)setObjectDispatcher:(id)_dispatcher;
56 - (id)objectDispatcher;
57
58 - (void)setSoRequestType:(NSString *)_rqType;
59 - (NSString *)soRequestType;
60 - (void)setSoRequestTraversalPath:(NSArray *)_path;
61 - (NSArray *)soRequestTraversalPath;
62
63 - (void)setPathInfo:(NSString *)_pi;
64 - (NSString *)pathInfo;
65
66 /* subcontexts */
67
68 - (SoSubContext *)createSubContext;
69 - (WOContext *)parentContext;
70 - (WOContext *)rootContext;
71
72 @end
73
74 /* all the following methods are convenience methods that access WOContext */
75
76 #include <NGObjWeb/WOComponent.h>
77 #include <NGObjWeb/WODirectAction.h>
78
79 @interface WOComponent(SoObjects)
80 - (void)setClientObject:(id)_object;
81 - (id)clientObject;
82 @end
83
84 @interface WODirectAction(SoObjects)
85 - (id)clientObject;
86 @end
87
88 #endif /* __SoObjects_WOContext_SoObjects_H__ */