]> err.no Git - sope/blob - sope-appserver/NGObjWeb/WOContext+private.h
minor improvement to WOHttpAdaptor, bumped framework revisions
[sope] / sope-appserver / NGObjWeb / WOContext+private.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3   Copyright (C) 2006      Helge Hess
4
5   This file is part of SOPE.
6
7   SOPE is free software; you can redistribute it and/or modify it under
8   the terms of the GNU Lesser General Public License as published by the
9   Free Software Foundation; either version 2, or (at your option) any
10   later version.
11
12   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
13   WARRANTY; without even the implied warranty of MERCHANTABILITY or
14   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15   License for more details.
16
17   You should have received a copy of the GNU Lesser General Public
18   License along with SOPE; see the file COPYING.  If not, write to the
19   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20   02111-1307, USA.
21 */
22
23 #ifndef __NGObjWeb_WOContext_private_H__
24 #define __NGObjWeb_WOContext_private_H__
25
26 #include <NGObjWeb/WOContext.h>
27
28 @class WOComponent, WOSession, WOResponse, WOElement, WODynamicElement;
29
30 extern void WOContext_enterComponent
31 (WOContext *_ctx, WOComponent *_component, WOElement *element);
32 extern void WOContext_leaveComponent(WOContext *_ctx, WOComponent *_component);
33
34 @interface WOContext(NGObjWebInternal)
35
36 - (void)_addAwakeComponent:(WOComponent *)_component;
37
38 - (void)enterComponent:(WOComponent *)_component content:(WOElement *)_content;
39 - (void)leaveComponent:(WOComponent *)_component;
40 - (void)sleepComponents;
41 - (WOComponent *)parentComponent;
42 - (WODynamicElement *)componentContent;
43
44 - (void)setSession:(WOSession *)_session;
45 - (void)setNewSession:(WOSession *)_session;
46 - (void)setPage:(WOComponent *)_page;
47 - (void)setResponse:(WOResponse *)_response;
48
49 @end
50
51 @interface WOContext(FormSupport)
52
53 - (void)addActiveFormElement:(WOElement *)_formElement;
54 - (WOElement *)activeFormElement;
55
56 @end
57
58 #if !LIB_FOUNDATION_BOEHM_GC
59
60 @interface WOContext(DeallocNotifications)
61 /* dealloc observers are *not* retained !!! */
62 - (void)_objectWillDealloc:(id)_object;
63 - (void)addDeallocObserver:(id)_observer;
64 - (void)removeDeallocObserver:(id)_observer;
65 @end
66
67 #endif
68
69 #endif /* __NGObjWeb_WOContext_private_H__ */