yast2-transfer
CurlAgent.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003 Copyright (c) 2000 - 2012 Novell, Inc.
00004 All Rights Reserved.
00005 
00006 This program is free software; you can redistribute it and/or
00007 modify it under the terms of version 2 of the GNU General Public License as
00008 published by the Free Software Foundation.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, contact Novell, Inc.
00017 
00018 To contact Novell about this file by physical or electronic mail,
00019 you may find current contact information at www.novell.com
00020 
00021 ****************************************************************************/
00022 /*
00023  * YaST2: Core system
00024  *
00025  * Description:
00026  *   YaST2 SCR: Curl agent implementation
00027  *
00028  * Authors:
00029  *   Anas Nashif <nashif@suse.de>
00030  *
00031  * $Id$
00032  */
00033 
00034 #ifndef _CurlAgent_h
00035 #define _CurlAgent_h
00036 
00037 #include <Y2.h>
00038 #include <scr/SCRAgent.h>
00039 
00040 
00044 class CurlAgent : public SCRAgent
00045 {
00046 private:
00050     bool    easySSL_val;
00051     char*   clientKeyPath_val;
00052     char*   clientCertPath_val;
00053 
00054 public:
00058     CurlAgent();
00059 
00063     virtual ~CurlAgent();
00064 
00070     virtual YCPValue Read(const YCPPath &path,
00071                           const YCPValue& arg = YCPNull(),
00072                           const YCPValue& opt = YCPNull());
00073 
00077     virtual YCPBoolean Write(const YCPPath &path,
00078                            const YCPValue& value,
00079                            const YCPValue& arg = YCPNull());
00080 
00081 
00085     virtual YCPValue Execute(const YCPPath &path,
00086                              const YCPValue& value = YCPNull(),
00087                              const YCPValue& arg = YCPNull());
00088 
00092     virtual YCPList Dir(const YCPPath& path);
00093 
00097     virtual YCPValue otherCommand(const YCPTerm& term);
00098     virtual YCPValue Get( const char *url, const char *target);
00099     // virtual YCPValue  Post(  const char *url, const char *post, const char *target);
00100     virtual string getMapValue ( const YCPMap map, const string key, const string defaultValue);
00101     virtual void easySSL( bool easy );
00102     virtual void clientCertSSL( const char *path );
00103     virtual void clientKeySSL( const char *path );
00104 
00105 private:
00106 
00107 };
00108 
00109 #endif /* _CurlAgent_h */

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