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

ResizeOperation Class Reference

#include <resizeoperation.h>

Inheritance diagram for ResizeOperation:

Operation

List of all members.


Detailed Description

Resizes a Partition and FileSystem.

Resize the given Partition and its FileSystem on the given Device so they start with the given new start sector and end with the given new last sector.

Author:
vl@fidra.de

Definition at line 50 of file resizeoperation.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
bool execute (Report &parent)
QString iconName () const
void preview ()
 Apply the Operation to the current preview.
 ResizeOperation (Device &d, Partition &p, qint64 newfirst, qint64 newlast)
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 canGrow (const Partition *p)
static bool canMove (const Partition *p)
static bool canShrink (const Partition *p)

Protected Types

enum  ResizeAction {
  None = 0, MoveLeft = 1, MoveRight = 2, Grow = 4,
  Shrink = 8, MoveLeftGrow = 5, MoveRightGrow = 6, MoveLeftShrink = 9,
  MoveRightShrink = 10
}

Protected Slots

void onJobFinished ()
void onJobStarted ()

Protected Member Functions

void addJob (Job *job)
CheckFileSystemJobcheckOriginalJob ()
CheckFileSystemJobcheckResizedJob ()
bool grow (Report &report)
ResizeFileSystemJobgrowResizeJob ()
SetPartGeometryJobgrowSetGeomJob ()
void insertPreviewPartition (Device &targetDevice, Partition &newPartition)
const QList< Job * > & jobs () const
QList< Job * > & jobs ()
bool move (Report &report)
SetPartGeometryJobmoveExtendedJob ()
MoveFileSystemJobmoveFileSystemJob ()
SetPartGeometryJobmoveSetGeomJob ()
qint64 newFirstSector () const
qint64 newLastSector () const
qint64 newLength () const
qint64 origFirstSector () const
qint64 origLastSector () const
qint64 origLength () const
const Partitionpartition () const
Partitionpartition ()
qint32 progressBase () const
void removePreviewPartition (Device &device, Partition &p)
ResizeAction resizeAction () const
void setProgressBase (qint32 i)
bool shrink (Report &report)
ResizeFileSystemJobshrinkResizeJob ()
SetPartGeometryJobshrinkSetGeomJob ()
const DevicetargetDevice () const
DevicetargetDevice ()

Private Attributes

CheckFileSystemJobm_CheckOriginalJob
CheckFileSystemJobm_CheckResizedJob
ResizeFileSystemJobm_GrowResizeJob
SetPartGeometryJobm_GrowSetGeomJob
SetPartGeometryJobm_MoveExtendedJob
MoveFileSystemJobm_MoveFileSystemJob
SetPartGeometryJobm_MoveSetGeomJob
qint64 m_NewFirstSector
qint64 m_NewLastSector
const qint64 m_OrigFirstSector
const qint64 m_OrigLastSector
Partitionm_Partition
ResizeFileSystemJobm_ShrinkResizeJob
SetPartGeometryJobm_ShrinkSetGeomJob
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