2 Copyright (C) 2002-2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
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
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.
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
23 #ifndef __SoObjects_SoPageInvocation_H__
24 #define __SoObjects_SoPageInvocation_H__
26 #import <Foundation/NSObject.h>
29 An invocation object for WOComponent based SoClass methods.
31 If the invocation is bound, the component is instantiated and initialized,
32 if it is called, the "actionName" is called and the result is returned or
33 if no "actionName" is set, the component itself is returned.
36 @class NSString, NSDictionary;
40 @interface SoPageInvocation : NSObject
44 SoProduct *product; /* non-retained ! */
46 /* for bound invocations */
50 NSDictionary *argumentSpecifications;
53 - (id)initWithPageName:(NSString *)_pageName;
54 - (id)initWithPageName:(NSString *)_pageName actionName:(NSString *)_action;
55 - (id)initWithPageName:(NSString *)_pageName actionName:(NSString *)_action
56 product:(SoProduct *)_product;
60 - (NSString *)pageName;
61 - (NSString *)actionName;
63 - (void)setArgumentSpecifications:(NSDictionary *)_specs;
64 - (NSDictionary *)argumentSpecifications;
69 - (id)bindToObject:(id)_object inContext:(id)_ctx;
73 #endif /* __SoObjects_SoPageInvocation_H__ */