yast2-transfer
CurlAgent.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3 Copyright (c) 2000 - 2012 Novell, Inc.
4 All Rights Reserved.
5 
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of version 2 of the GNU General Public License as
8 published by the Free Software Foundation.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, contact Novell, Inc.
17 
18 To contact Novell about this file by physical or electronic mail,
19 you may find current contact information at www.novell.com
20 
21 ****************************************************************************/
22 /*
23  * YaST2: Core system
24  *
25  * Description:
26  * YaST2 SCR: Curl agent implementation
27  *
28  * Authors:
29  * Anas Nashif <nashif@suse.de>
30  *
31  * $Id$
32  */
33 
34 #ifndef _CurlAgent_h
35 #define _CurlAgent_h
36 
37 #include <Y2.h>
38 #include <scr/SCRAgent.h>
39 
40 
44 class CurlAgent : public SCRAgent
45 {
46 private:
53 
54 public:
58  CurlAgent();
59 
63  virtual ~CurlAgent();
64 
70  virtual YCPValue Read(const YCPPath &path,
71  const YCPValue& arg = YCPNull(),
72  const YCPValue& opt = YCPNull());
73 
77  virtual YCPBoolean Write(const YCPPath &path,
78  const YCPValue& value,
79  const YCPValue& arg = YCPNull());
80 
81 
85  virtual YCPValue Execute(const YCPPath &path,
86  const YCPValue& value = YCPNull(),
87  const YCPValue& arg = YCPNull());
88 
92  virtual YCPList Dir(const YCPPath& path);
93 
97  virtual YCPValue otherCommand(const YCPTerm& term);
98  virtual YCPValue Get( const char *url, const char *target);
99  // virtual YCPValue Post( const char *url, const char *post, const char *target);
100  virtual string getMapValue ( const YCPMap map, const string key, const string defaultValue);
101  virtual void easySSL( bool easy );
102  virtual void clientCertSSL( const char *path );
103  virtual void clientKeySSL( const char *path );
104 
105 private:
106 
107 };
108 
109 #endif /* _CurlAgent_h */
virtual void clientCertSSL(const char *path)
Definition: CurlAgent.cc:63
virtual string getMapValue(const YCPMap map, const string key, const string defaultValue)
Definition: CurlAgent.cc:222
CurlAgent()
Definition: CurlAgent.cc:43
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
Definition: CurlAgent.cc:341
char * clientCertPath_val
Definition: CurlAgent.h:52
virtual YCPValue Execute(const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull())
Definition: CurlAgent.cc:258
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
Definition: CurlAgent.cc:350
virtual YCPList Dir(const YCPPath &path)
Definition: CurlAgent.cc:332
bool easySSL_val
Definition: CurlAgent.h:50
virtual YCPValue otherCommand(const YCPTerm &term)
Definition: CurlAgent.cc:360
virtual void easySSL(bool easy)
Definition: CurlAgent.cc:57
char * clientKeyPath_val
Definition: CurlAgent.h:51
virtual YCPValue Get(const char *url, const char *target)
Definition: CurlAgent.cc:87
virtual ~CurlAgent()
Definition: CurlAgent.cc:53
virtual void clientKeySSL(const char *path)
Definition: CurlAgent.cc:75
An interface class between YaST2 and Curl Agent.
Definition: CurlAgent.h:44

Generated on a sunny day for yast2-transfer by doxygen 1.8.5