]> err.no Git - sope/blob - xmlrpc_call/XmlRpcClientTool.h
fixed gstep-base warnings
[sope] / xmlrpc_call / XmlRpcClientTool.h
1 /*
2   Copyright (C) 2004 Helge Hess
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 __xmlrpc_call_XmlRpcClientTool_H__
23 #define __xmlrpc_call_XmlRpcClientTool_H__
24
25 #import <Foundation/NSObject.h>
26
27 @class NSString, NSArray, NSDictionary;
28 @class HandleCredentialsClient;
29
30 @interface XmlRpcClientTool : NSObject
31 {
32   HandleCredentialsClient  *client;
33   NSString                 *methodName;
34   NSArray                  *parameters;
35 }
36
37 /* initialization */
38
39 - (id)initWithArguments:(NSArray *)_arguments;
40 - (void)initMethodCall:(NSArray *)_arguments;
41 - (BOOL)initXmlRpcClientWithStringURL:(NSString *)_url;
42
43 - (int)run;
44 - (void)help:(NSString *)pn;
45
46 - (void)printElement:(id)_element;
47 - (void)printDictionary:(NSDictionary *)_dict;
48 - (void)printArray:(NSArray *)_array;
49
50 @end
51
52 #endif /* __xmlrpc_call_XmlRpcClientTool_H__ */