IniAgent.h

Go to the documentation of this file.
00001 /*
00002  * YaST2: Core system
00003  *
00004  * Description:
00005  *   YaST2 SCR: Ini agent implementation
00006  *
00007  * Authors:
00008  *   Petr Blahos <pblahos@suse.cz>
00009  *
00010  * $Id: IniAgent.h 13313 2004-01-20 13:04:36Z mvidner $
00011  */
00012 
00013 #ifndef _IniAgent_h
00014 #define _IniAgent_h
00015 
00016 #include <Y2.h>
00017 #include <scr/SCRAgent.h>
00018 
00019 #include "IniParser.h"
00020 
00024 class IniAgent : public SCRAgent
00025 {
00026     private:
00030         YCPTerm generateSysConfigTemplate (string fn);
00031 
00032         IniParser parser;
00033     public:
00037         IniAgent();
00041         virtual ~IniAgent();
00042 
00048         virtual YCPValue Read(const YCPPath &path, const YCPValue& arg = YCPNull(), const YCPValue& optarg = YCPNull() );
00049 
00053         virtual YCPBoolean Write(const YCPPath &path, const YCPValue& value, const YCPValue& arg = YCPNull());
00054 
00058         virtual YCPList Dir(const YCPPath& path);
00059 
00063         virtual YCPValue otherCommand(const YCPTerm& term);
00064 };
00065 
00066 #endif /* _IniAgent_h */

Generated on Fri Jun 16 18:07:45 2006 for yast2-core by  doxygen 1.4.6