Source: Y2MakefsComponent.h
|
|
|
|
// -*- c++ -*-
/*
* Maintainer: Arvin Schnell
*/
#ifndef Y2MakefsComponent_h
#define Y2MakefsComponent_h
#include
/**
* @short Install and uninstall packages
*/
class Y2MakefsComponent:public Y2Component
{
private:
/**
* Name of macro to call for progress bar, or NULL if quiet
*/
string report_macro;
/**
* type of partition (e.g. "ext2", "reiserfs", ...)
*/
string partition_type;
/**
* name of partition
*/
string partition_name;
/**
* options for partiton
*/
YCPList partition_options;
public:
/**
* Create a new makefs component
*/
Y2MakefsComponent::Y2MakefsComponent ()
: report_macro (""),
partition_type (""),
partition_name (""),
partition_options ()
{
}
/**
* What I'm called: "makefs"
*/
static string component_name () { return "makefs"; }
string name () const { return component_name (); }
/**
* Do the actual work of formatting.
*
* makefs (macro, partition_type, partition_name, partition_options)
*
* - macro is either nil or a symbol that is called during
* formatting as macro (partitionname, percent)
* - partitionname name of current partiton
* - percent how much of the current partition is formatted
*
* - partition_type
* either "ext2", "reiserfs", "fat", "xfs" or "jfs"
*
* - partition_name
*
* - partition_options
* a list of strings with some options
*/
YCPValue doActualWork (const YCPList & options, Y2Component * displayserver);
private:
YCPValue report_progress (Y2Component * displayserver, double percent);
};
#endif // Y2MakefsComponent_h
| Generated by: root on D60 on Mon Oct 20 16:16:32 2003, using kdoc 2.0a54. |