00001 /* 00002 * YaST2: Core system 00003 * 00004 * Description: 00005 * YaST2 SCR: PPD implementation 00006 * 00007 * Authors: 00008 * Jiri Srain <jsrain@suse.cz> 00009 * 00010 * $Id: PPDfile.h,v 1.4 2003/11/14 13:23:24 jsrain Exp $ 00011 */ 00012 00013 #ifndef _PPDfile_h 00014 #define _PPDfile_h 00015 00016 #include <sys/types.h> 00017 00018 #include <string> 00019 #include <list> 00020 #include <map> 00021 00022 #include <Y2.h> 00023 00024 using namespace std; 00025 00026 class PPDfile { 00027 public: 00028 00029 PPDfile(); 00030 ~PPDfile(); 00031 00032 YCPMap getOptionsGroups (YCPString filename); 00033 YCPMap getOptions (YCPString filename, YCPString section); 00034 YCPString openPpdFile (YCPString filename, YCPString tmpdir); 00035 YCPBoolean isPpd (const char* filename); 00036 YCPMap ppdInfo (const char *filename); 00037 YCPList ppdConstraints (YCPString filename); 00038 YCPList ppdFailedConstraints (YCPString filename, YCPMap options); 00039 00040 private: 00041 00042 protected: 00043 00044 }; 00045 00046 #endif /* _PPDfile_h */ 00047