|
yast2-profile-manager
|
An interface class between YaST2 and SCPM Agent. More...
#include <SCPMAgent.h>
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 | |
| 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 | |
| static void * | call_enable (SCPMAgent *) |
| static void * | call_recover (SCPMAgent *) |
| static void * | call_rollback (SCPMAgent *) |
Private Attributes | |
| SCPM * | scpm |
| int | options |
| ofstream | output |
| ofstream | hash |
| string | changesfile |
| string | tmpfile |
| string | hashfile |
| pthread_t | pt |
| bool | initialized |
An interface class between YaST2 and SCPM Agent.
| SCPMAgent::SCPMAgent | ( | ) |
|
virtual |
Destructor.
Destructor
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
virtual |
Provides SCR Dir ().
Dir
|
virtual |
Provides SCR Execute ().
Execute(.scpm) must be run first to initialize
References call_enable(), call_recover(), call_rollback(), changesfile, hash, hashfile, initialized, options, output, PC, pt, scpm, and tmpfile.
|
private |
Converts YCP list of maps to c++ vector of resource_entry_t structures
converts ycp list of maps to c++ vector of resource_entry_t structures
References frommap_re().
Referenced by Write().
|
private |
Converts YCP map to c++ structure of type resource_entry_t
converts ycp map to c++ structure of type resource_entry_t
Referenced by fromlist_re().
|
private |
Converts YCP map to c++ structure of type resource_group_t
converts ycp map to c++ structure of type resource_group_t
|
virtual |
Used for mounting the agent.
otherCommand
|
virtual |
Provides SCR Read ().
| path | Path that should be read. |
| arg | Additional parameter. |
Read
References initialized, PC, pt, scpm, tomap_re(), and tomap_rg().
|
private |
Converts c++ structure of type resource_entry_t to YCP map
converts c++ structure of type resource_entry_t to ycp map
Referenced by Read().
|
private |
Converts c++ structure of type resource_group_t to YCP map
converts c++ structure of type resource_group_t to ycp map
Referenced by Read().
|
virtual |
Provides SCR Write ().
Write(.scpm, nil) mast be run finally
References fromlist_re(), hash, initialized, output, PC, and scpm.
|
private |
Referenced by Execute().
|
private |
Referenced by Execute().
|
private |
Forbid any scpm calls, when not initialized (Execute(.scpm)).
Referenced by Execute(), Read(), SCPMAgent(), and Write().
|
private |
Referenced by Execute(), and SCPMAgent().
|
private |
Referenced by call_enable(), call_recover(), call_rollback(), Execute(), Read(), SCPMAgent(), and Write().
|
private |
Referenced by Execute().
1.8.1