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

CopyOperation Class Reference

#include <copyoperation.h>

Inheritance diagram for CopyOperation:

Operation

List of all members.


Detailed Description

Copy a Partition.

Copies a Partition from a given source Device to a Partition on a given target Device and handles overwriting the target Partition in case that is required.

Author:
vl@fidra.de

Definition at line 45 of file copyoperation.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

 CopyOperation (Device &targetdevice, Partition *copiedpartition, Device &sourcedevice, Partition *sourcepartition)
QString description () const
bool execute (Report &parent)
QString iconName () const
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 canCopy (const Partition *p)
static bool canPaste (const Partition *p, const Partition *source)
static PartitioncreateCopy (const Partition &target, const Partition &source)

Protected Slots

void onJobFinished ()
void onJobStarted ()

Protected Member Functions

void addJob (Job *job)
CheckFileSystemJobcheckSourceJob ()
CheckFileSystemJobcheckTargetJob ()
void cleanupOverwrittenPartition ()
const PartitioncopiedPartition () const
PartitioncopiedPartition ()
CopyFileSystemJobcopyFSJob ()
CreatePartitionJobcreatePartitionJob ()
void insertPreviewPartition (Device &targetDevice, Partition &newPartition)
const QList< Job * > & jobs () const
QList< Job * > & jobs ()
ResizeFileSystemJobmaximizeJob ()
bool mustDeleteOverwritten () const
const PartitionoverwrittenPartition () const
PartitionoverwrittenPartition ()
qint32 progressBase () const
void removePreviewPartition (Device &device, Partition &p)
void setOverwrittenPartition (Partition *p)
void setProgressBase (qint32 i)
void setSourcePartition (Partition *p)
const DevicesourceDevice () const
DevicesourceDevice ()
const PartitionsourcePartition () const
PartitionsourcePartition ()
const DevicetargetDevice () const
DevicetargetDevice ()

Private Attributes

CheckFileSystemJobm_CheckSourceJob
CheckFileSystemJobm_CheckTargetJob
Partitionm_CopiedPartition
CopyFileSystemJobm_CopyFSJob
CreatePartitionJobm_CreatePartitionJob
ResizeFileSystemJobm_MaximizeJob
bool m_MustDeleteOverwritten
Partitionm_OverwrittenPartition
Devicem_SourceDevice
Partitionm_SourcePartition
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