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

RestoreOperation Class Reference

#include <restoreoperation.h>

Inheritance diagram for RestoreOperation:

Operation

List of all members.


Detailed Description

Restore a Partition.

Restores the FileSystem from a file to the given Partition on the given Device, handling overwriting a previous Partition in case that is necessary.

Author:
vl@fidra.de

Definition at line 46 of file restoreoperation.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.
 RestoreOperation (Device &d, Partition *p, const QString &filename)
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 canRestore (const Partition *p)
static PartitioncreateRestorePartition (const Device &device, PartitionNode &parent, qint64 start, const QString &fileName)

Protected Slots

void onJobFinished ()
void onJobStarted ()

Protected Member Functions

void addJob (Job *job)
CheckFileSystemJobcheckTargetJob ()
void cleanupOverwrittenPartition ()
CreatePartitionJobcreatePartitionJob ()
const QString & fileName () const
qint64 imageLength () const
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)
RestoreFileSystemJobrestoreJob ()
const PartitionrestorePartition () const
PartitionrestorePartition ()
void setOverwrittenPartition (Partition *p)
void setProgressBase (qint32 i)
const DevicetargetDevice () const
DevicetargetDevice ()

Private Attributes

CheckFileSystemJobm_CheckTargetJob
CreatePartitionJobm_CreatePartitionJob
const QString m_FileName
qint64 m_ImageLength
ResizeFileSystemJobm_MaximizeJob
bool m_MustDeleteOverwritten
Partitionm_OverwrittenPartition
RestoreFileSystemJobm_RestoreJob
Partitionm_RestorePartition
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