Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Y2PartedComponent.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 #ifndef Y2PartedComponent_h
00004 #define Y2PartedComponent_h
00005 
00006 #include <Y2.h>
00007 
00011 class Y2PartedComponent : public Y2Component
00012 {
00013 private:
00014    // Name of macros to call for progress indication.
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;            // partition to resize
00024    string partition_start;      // start of the partition in MB on disk
00025    string partition_length;     // new size of the partition in MB
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

Generated on Wed Nov 12 06:36:36 2008 for yast2-storage by  doxygen 1.3.9.1