00001
00002
00003 #ifndef WIN_Partition_h
00004 #define WIN_Partition_h
00005
00006 #include <YCP.h>
00007 #include <y2util/ExternalProgram.h>
00008
00013 class WIN_Partition
00014 {
00015 public:
00019 WIN_Partition( string partition_name );
00020
00024 ~WIN_Partition();
00025
00030 int status();
00031
00038
00039
00043 bool get_progress_status( string &message_progress,
00044 string &message_directory,
00045 string &message_exception );
00046
00050 void resize( string partition_start,
00051 string partition_length,
00052 ExternalProgram::Stderr_Disposition stderr_disp =
00053 ExternalProgram::Stderr_To_Stdout );
00054
00055 private:
00056
00060 string partition;
00061
00065 string partition_device;
00066
00070 string partition_minor;
00071
00075 string partition_start;
00076
00080 string partition_end;
00081
00082
00086 ExternalProgram *process;
00087
00091 int exit_code;
00092 };
00093
00094 #endif