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

WIN_Partition Class Reference

Interface to the parted program. More...

#include <WIN_Partition.h>

List of all members.

Public Member Functions

 WIN_Partition (string partition_name)
 ~WIN_Partition ()
int status ()
bool get_progress_status (string &message_progress, string &message_directory, string &message_exception)
void resize (string partition_start, string partition_length, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout)

Private Attributes

string partition
string partition_device
string partition_minor
string partition_start
string partition_end
ExternalProgramprocess
int exit_code


Detailed Description

Interface to the parted program.


Constructor & Destructor Documentation

WIN_Partition::WIN_Partition string  partition_name  ) 
 

Create an new instance.

WIN_Partition::~WIN_Partition  ) 
 

Clean up.


Member Function Documentation

bool WIN_Partition::get_progress_status string &  message_progress,
string &  message_directory,
string &  message_exception
 

Read progress indication of the parted process.

void WIN_Partition::resize string  partition_start,
string  partition_length,
ExternalProgram::Stderr_Disposition  stderr_disp = ExternalProgram::Stderr_To_Stdout
 

Run parted with the specified arguments and route stderr to stdout.

int WIN_Partition::status  ) 
 

Return the exit status of the parted process, closing the connection if not already done.


Member Data Documentation

int WIN_Partition::exit_code [private]
 

The exit code of the parted process, or -1 if not yet known.

string WIN_Partition::partition [private]
 

The full name of the partition e.g. /dev/sda1

string WIN_Partition::partition_device [private]
 

The device of the partition e.g. /dev/sda

string WIN_Partition::partition_end [private]
 

New end of partition in MB on device (will be calculated)

string WIN_Partition::partition_minor [private]
 

The minor number of the partition e.g. 1

string WIN_Partition::partition_start [private]
 

New start of partition in MB on device (as provided by caller)

ExternalProgram* WIN_Partition::process [private]
 

The connection to the parted process.


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 06:36:36 2008 for yast2-storage by  doxygen 1.3.9.1