00001
00002
00003 #ifndef Y2PartedComponent_h
00004 #define Y2PartedComponent_h
00005
00006 #include <Y2.h>
00007
00011 class Y2PartedComponent : public Y2Component
00012 {
00013 private:
00014
00015
00016 string module;
00017 string progress_symbol;
00018 string directory_symbol;
00019 string exception_symbol;
00020
00021 Y2Namespace* report_macro;
00022
00023 string partition;
00024 string partition_start;
00025 string partition_length;
00026
00027
00028 public:
00032 Y2PartedComponent::Y2PartedComponent()
00033 : module(""),
00034 progress_symbol(""),
00035 directory_symbol(""),
00036 exception_symbol(""),
00037 report_macro(NULL),
00038 partition(""),
00039 partition_start(""),
00040 partition_length(""){}
00041
00045 static string component_name() { return "parted"; }
00046 string name() const { return component_name(); }
00047
00051 YCPValue doActualWork(const YCPList& options, Y2Component *displayserver);
00052
00063 private:
00064 YCPValue report_progress(Y2Component *displayserver, string message_progress );
00065 YCPValue report_directory(Y2Component *displayserver, string message_directory );
00066 YCPValue report_exception(Y2Component *displayserver, string message_exception );
00067 };
00068
00069 #endif // Y2PartedComponent_h