yast2-transfer
|
00001 /* 00002 * YaST2: Core system 00003 * 00004 * Description: 00005 * YaST2 SCR: Curl agent implementation 00006 * 00007 * Authors: 00008 * Anas Nashif <nashif@suse.de> 00009 * 00010 * $Id: CurlAgent.h 26811 2006-01-05 09:58:00Z locilka $ 00011 */ 00012 00013 #ifndef _CurlAgent_h 00014 #define _CurlAgent_h 00015 00016 #include <Y2.h> 00017 #include <scr/SCRAgent.h> 00018 00019 00023 class CurlAgent : public SCRAgent 00024 { 00025 private: 00029 bool easySSL_val; 00030 00031 public: 00035 CurlAgent(); 00036 00040 virtual ~CurlAgent(); 00041 00047 virtual YCPValue Read(const YCPPath &path, 00048 const YCPValue& arg = YCPNull(), 00049 const YCPValue& opt = YCPNull()); 00050 00054 virtual YCPBoolean Write(const YCPPath &path, 00055 const YCPValue& value, 00056 const YCPValue& arg = YCPNull()); 00057 00058 00062 virtual YCPValue Execute(const YCPPath &path, 00063 const YCPValue& value = YCPNull(), 00064 const YCPValue& arg = YCPNull()); 00065 00069 virtual YCPList Dir(const YCPPath& path); 00070 00074 virtual YCPValue otherCommand(const YCPTerm& term); 00075 virtual YCPValue Get( const char *url, const char *target); 00076 // virtual YCPValue Post( const char *url, const char *post, const char *target); 00077 virtual string getMapValue ( const YCPMap map, const string key, const string defaultValue); 00078 virtual void easySSL( bool easy ); 00079 00080 private: 00081 00082 }; 00083 00084 #endif /* _CurlAgent_h */