Logo Search packages:      
Sourcecode: partitionmanager version File versions  Download package

NewOperation Class Reference

#include <newoperation.h>

Inheritance diagram for NewOperation:

Operation

List of all members.


Detailed Description

Create a Partition.

Creates the given Partition on the given Device.

Author:
vl@fidra.de

Definition at line 42 of file newoperation.h.


Public Types

enum  OperationStatus {
  StatusNone = 0, StatusPending, StatusRunning, StatusFinishedSuccess,
  StatusFinishedWarning, StatusError
}

Signals

void jobFinished (Job *, Operation *)
void jobStarted (Job *, Operation *)
int progressChanged (int)

Public Member Functions

QString description () const
virtual bool execute (Report &parent)
QString iconName () const
 NewOperation (Device &d, Partition *p)
void preview ()
 Apply the Operation to the current preview.
virtual void setStatus (OperationStatus s)
virtual OperationStatus status () const
virtual QIcon statusIcon () const
virtual QString statusText () const
qint32 totalProgress () const
void undo ()
 Undo applying the Operation to the current preview.

Static Public Member Functions

static bool canCreateNew (const Partition *p)
static PartitioncreateNew (const Partition &cloneFrom)

Protected Slots

void onJobFinished ()
void onJobStarted ()

Protected Member Functions

void addJob (Job *job)
CheckFileSystemJobcheckJob ()
CreateFileSystemJobcreateFileSystemJob ()
CreatePartitionJobcreatePartitionJob ()
void insertPreviewPartition (Device &targetDevice, Partition &newPartition)
const QList< Job * > & jobs () const
QList< Job * > & jobs ()
const PartitionnewPartition () const
PartitionnewPartition ()
qint32 progressBase () const
void removePreviewPartition (Device &device, Partition &p)
SetFileSystemLabelJobsetLabelJob ()
void setProgressBase (qint32 i)
const DevicetargetDevice () const
DevicetargetDevice ()

Private Attributes

CheckFileSystemJobm_CheckFileSystemJob
CreateFileSystemJobm_CreateFileSystemJob
CreatePartitionJobm_CreatePartitionJob
Partitionm_NewPartition
SetFileSystemLabelJobm_SetFileSystemLabelJob
Devicem_TargetDevice

Friends

class OperationStack

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index