00001 // -*- c++ -*- 00002 00003 /* 00004 * Maintainer: Arvin Schnell <arvin@suse.de> 00005 */ 00006 00007 00008 #ifndef Y2MakefsComponent_h 00009 #define Y2MakefsComponent_h 00010 00011 00012 #include <Y2.h> 00013 00014 00018 class Y2MakefsComponent:public Y2Component 00019 { 00020 00021 private: 00022 00026 Y2Namespace* report_macro; 00027 00028 string module; 00029 00030 string symbol; 00031 00035 string partition_type; 00036 00040 string partition_name; 00041 00045 YCPList partition_options; 00046 00047 public: 00048 00052 Y2MakefsComponent::Y2MakefsComponent () 00053 : report_macro (NULL), 00054 module (""), 00055 symbol (""), 00056 partition_type (""), 00057 partition_name (""), 00058 partition_options () 00059 { 00060 } 00061 00065 static string component_name () { return "makefs"; } 00066 string name () const { return component_name (); } 00067 00086 YCPValue doActualWork (const YCPList & options, Y2Component * displayserver); 00087 00088 private: 00089 00090 YCPValue report_progress (Y2Component * displayserver, double percent); 00091 00092 }; 00093 00094 00095 #endif // Y2MakefsComponent_h