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 13223 2004-01-15 16:01:52Z jsrain $ 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: 00030 public: 00034 CurlAgent(); 00035 00039 virtual ~CurlAgent(); 00040 00046 virtual YCPValue Read(const YCPPath &path, 00047 const YCPValue& arg = YCPNull(), 00048 const YCPValue& opt = YCPNull()); 00049 00053 virtual YCPBoolean Write(const YCPPath &path, 00054 const YCPValue& value, 00055 const YCPValue& arg = YCPNull()); 00056 00057 00061 virtual YCPValue Execute(const YCPPath &path, 00062 const YCPValue& value = YCPNull(), 00063 const YCPValue& arg = YCPNull()); 00064 00068 virtual YCPList Dir(const YCPPath& path); 00069 00073 virtual YCPValue otherCommand(const YCPTerm& term); 00074 virtual YCPValue Get( const char *url, const char *target); 00075 // virtual YCPValue Post( const char *url, const char *post, const char *target); 00076 virtual string getMapValue ( const YCPMap map, const string key, const string defaultValue); 00077 00078 00079 private: 00080 00081 }; 00082 00083 #endif /* _CurlAgent_h */