Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

SCPMAgent Class Reference

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

#include <SCPMAgent.h>

Inheritance diagram for SCPMAgent:

SCRAgent List of all members.

Public Member Functions

 SCPMAgent ()
virtual ~SCPMAgent ()
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)

Private Member Functions

YCPMap tomap_ri (resource_info_t ri)
resource_info_t frommap_ri (YCPMap map)
YCPList tolist_modified_resources (vector< resource_info_t > l)
vector< resource_info_t > fromlist_modified_resources (YCPList list)
YCPMap tomap_sw (switch_info_t sw)
switch_info_t frommap_sw (YCPMap map)
vector< resource_group_t > fromlist_groups (YCPList list)
YCPList tolist_groups (vector< resource_group_t > l)
resource_group_t frommap_rg (YCPMap map)
YCPMap tomap_rg (resource_group_t rgroup)
vector< resource_entry_t > fromlist_re (YCPList list)
resource_entry_t frommap_re (YCPMap map)
YCPMap tomap_re (resource_entry_t rentry)

Static Private Member Functions

void * call_prepare (SCPMAgent *)
void * call_switch (SCPMAgent *)
void * call_save (SCPMAgent *)
void * call_add (SCPMAgent *)
void * call_copy (SCPMAgent *)
void * call_enable (SCPMAgent *)

Private Attributes

SCPM * scpm
int options
bool auto_switch
bool use_rg
ofstream output
ofstream hash
string changesfile
string tmpfile
string hashfile
pthread_t pt
switch_info_t switch_info
string profile
string dest_profile
bool initialized

Detailed Description

An interface class between YaST2 and SCPM Agent.


Constructor & Destructor Documentation

SCPMAgent::SCPMAgent  ) 
 

Default constructor.

SCPMAgent::~SCPMAgent  )  [virtual]
 

Destructor.


Member Function Documentation

void * SCPMAgent::call_add SCPMAgent  )  [static, private]
 

void * SCPMAgent::call_copy SCPMAgent  )  [static, private]
 

void * SCPMAgent::call_enable SCPMAgent  )  [static, private]
 

void * SCPMAgent::call_prepare SCPMAgent  )  [static, private]
 

Functions to be called in new thread.

void * SCPMAgent::call_save SCPMAgent  )  [static, private]
 

void * SCPMAgent::call_switch SCPMAgent  )  [static, private]
 

YCPList SCPMAgent::Dir const YCPPath path  )  [virtual]
 

Provides SCR Dir ().

Implements SCRAgent.

YCPValue SCPMAgent::Execute const YCPPath path,
const YCPValue value = YCPNull(),
const YCPValue arg = YCPNull()
[virtual]
 

Provides SCR Execute ().

Reimplemented from SCRAgent.

vector< resource_group_t > SCPMAgent::fromlist_groups YCPList  list  )  [private]
 

Converts YCP list of maps to c++ vector of resource_group_t structures

vector< resource_info_t > SCPMAgent::fromlist_modified_resources YCPList  list  )  [private]
 

Converts YCP list of maps to c++ vector of resource_info_t structures

vector< resource_entry_t > SCPMAgent::fromlist_re YCPList  list  )  [private]
 

Converts YCP list of maps to c++ vector of resource_entry_t structures

resource_entry_t SCPMAgent::frommap_re YCPMap  map  )  [private]
 

Converts YCP map to c++ structure of type resource_entry_t

resource_group_t SCPMAgent::frommap_rg YCPMap  map  )  [private]
 

Converts YCP map to c++ structure of type resource_group_t

resource_info_t SCPMAgent::frommap_ri YCPMap  map  )  [private]
 

Converts YCP map to c++ resource_info_t

switch_info_t SCPMAgent::frommap_sw YCPMap  map  )  [private]
 

Converts YCP map to switch_info_t structure

YCPValue SCPMAgent::otherCommand const YCPTerm term  )  [virtual]
 

Used for mounting the agent.

Reimplemented from SCRAgent.

YCPValue SCPMAgent::Read const YCPPath path,
const YCPValue arg = YCPNull(),
const YCPValue opt = YCPNull()
[virtual]
 

Provides SCR Read ().

Parameters:
path Path that should be read.
arg Additional parameter.

Implements SCRAgent.

YCPList SCPMAgent::tolist_groups vector< resource_group_t >  l  )  [private]
 

Converts c++ vector of resource_group_t structures to YCP list of maps

YCPList SCPMAgent::tolist_modified_resources vector< resource_info_t >  l  )  [private]
 

Converts c++ vector of resource_info_t structures to YCP list of maps

YCPMap SCPMAgent::tomap_re resource_entry_t  rentry  )  [private]
 

Converts c++ structure of type resource_entry_t to YCP map

YCPMap SCPMAgent::tomap_rg resource_group_t  rgroup  )  [private]
 

Converts c++ structure of type resource_group_t to YCP map

YCPMap SCPMAgent::tomap_ri resource_info_t  ri  )  [private]
 

Converts c++ resource_info_t to YCP map

YCPMap SCPMAgent::tomap_sw switch_info_t  sw  )  [private]
 

Converts switch_info_t structure to YCP map

YCPBoolean SCPMAgent::Write const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull()
[virtual]
 

Provides SCR Write ().

Implements SCRAgent.


Member Data Documentation

bool SCPMAgent::auto_switch [private]
 

string SCPMAgent::changesfile [private]
 

string SCPMAgent::dest_profile [private]
 

ofstream SCPMAgent::hash [private]
 

string SCPMAgent::hashfile [private]
 

bool SCPMAgent::initialized [private]
 

int SCPMAgent::options [private]
 

ofstream SCPMAgent::output [private]
 

string SCPMAgent::profile [private]
 

pthread_t SCPMAgent::pt [private]
 

SCPM* SCPMAgent::scpm [private]
 

switch_info_t SCPMAgent::switch_info [private]
 

string SCPMAgent::tmpfile [private]
 

bool SCPMAgent::use_rg [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 4 17:42:15 2005 for yast2-profile-manager by doxygen 1.3.6