yast2-transfer
Public Member Functions | Private Attributes | List of all members
CurlAgent Class Reference

An interface class between YaST2 and Curl Agent. More...

#include <CurlAgent.h>

Inheritance diagram for CurlAgent:
SCRAgent

Public Member Functions

 CurlAgent ()
 
virtual ~CurlAgent ()
 
virtual YCPValue Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
 
virtual YCPBoolean Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())
 
virtual YCPValue Execute (const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull())
 
virtual YCPList Dir (const YCPPath &path)
 
virtual YCPValue otherCommand (const YCPTerm &term)
 
virtual YCPValue Get (const char *url, const char *target)
 
virtual string getMapValue (const YCPMap map, const string key, const string defaultValue)
 
virtual void easySSL (bool easy)
 
virtual void clientCertSSL (const char *path)
 
virtual void clientKeySSL (const char *path)
 

Private Attributes

bool easySSL_val
 
char * clientKeyPath_val
 
char * clientCertPath_val
 

Detailed Description

An interface class between YaST2 and Curl Agent.

Constructor & Destructor Documentation

CurlAgent::CurlAgent ( )

Default constructor.

Constructor

References clientCertPath_val, clientKeyPath_val, and easySSL_val.

CurlAgent::~CurlAgent ( )
virtual

Destructor.

Destructor

Member Function Documentation

void CurlAgent::clientCertSSL ( const char *  path)
virtual

References clientCertPath_val.

Referenced by Execute().

void CurlAgent::clientKeySSL ( const char *  path)
virtual

References clientKeyPath_val.

Referenced by Execute().

YCPList CurlAgent::Dir ( const YCPPath path)
virtual

Provides SCR Dir ().

Dir

Implements SCRAgent.

References y2error.

void CurlAgent::easySSL ( bool  easy)
virtual

References easySSL_val.

Referenced by Execute().

YCPValue CurlAgent::Execute ( const YCPPath path,
const YCPValue value = YCPNull(),
const YCPValue arg = YCPNull() 
)
virtual

Provides SCR Execute ().

References clientCertSSL(), clientKeySSL(), easySSL(), Get(), getMapValue(), y2error, and y2milestone.

YCPValue CurlAgent::Get ( const char *  url,
const char *  target 
)
virtual
string CurlAgent::getMapValue ( const YCPMap  map,
const string  key,
const string  defaultValue 
)
virtual

References YCPMap::begin(), YCPMap::end(), and y2error.

Referenced by Execute().

YCPValue CurlAgent::otherCommand ( const YCPTerm term)
virtual

Used for mounting the agent.

otherCommand

Reimplemented from SCRAgent.

References YCPTerm::name().

YCPValue CurlAgent::Read ( const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull() 
)
virtual

Provides SCR Read ().

Parameters
pathPath that should be read.
argAdditional parameter.

Read

Implements SCRAgent.

References y2error.

YCPBoolean CurlAgent::Write ( const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull() 
)
virtual

Provides SCR Write ().

Write

Implements SCRAgent.

References y2error.

Member Data Documentation

char* CurlAgent::clientCertPath_val
private

Referenced by clientCertSSL(), CurlAgent(), and Get().

char* CurlAgent::clientKeyPath_val
private

Referenced by clientKeySSL(), CurlAgent(), and Get().

bool CurlAgent::easySSL_val
private

Agent private variables

Referenced by CurlAgent(), easySSL(), and Get().


The documentation for this class was generated from the following files:

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