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

CopyFileSystemJob Class Reference

#include <copyfilesystemjob.h>

Inheritance diagram for CopyFileSystemJob:

Job

List of all members.


Detailed Description

Copy a FileSystem.

Copy a FileSystem on a given Partition and Device to another Partition on a (possibly other) Device.

Author:
vl@fidra.de

Definition at line 40 of file copyfilesystemjob.h.


Public Types

enum  JobStatus { Pending = 0, Success, Error }

Signals

void finished ()
void progress (int)
void started ()

Public Member Functions

 CopyFileSystemJob (Device &targetdevice, Partition &targetpartition, Device &sourcedevice, Partition &sourcepartition)
virtual QString description () const
virtual qint32 numSteps () const
virtual bool run (Report &parent)
JobStatus status () const
virtual QIcon statusIcon () const
virtual QString statusText () const

Static Public Member Functions

static FileSystem::Type detectFileSystem (PedDevice *pedDevice, PedPartition *pedPartition)

Protected Member Functions

void closePed ()
bool commit (quint32 timeout=10)
bool copyBlocks (Report &report, CopyTarget &target, CopySource &source)
FileSystem::Type detectFileSystemBySector (Report &report, Device &device, qint64 sector)
void emitProgress (int i)
void jobFinished (Report &report, bool b)
ReportjobStarted (Report &parent)
bool openPed (const QString &path, bool diskFailOk=false)
PedDevice * pedDevice ()
PedDisk * pedDisk ()
bool rollbackCopyBlocks (Report &report, CopyTarget &origTarget, CopySource &origSource)
void setStatus (JobStatus s)
const DevicesourceDevice () const
DevicesourceDevice ()
const PartitionsourcePartition () const
PartitionsourcePartition ()
const DevicetargetDevice () const
DevicetargetDevice ()
const PartitiontargetPartition () const
PartitiontargetPartition ()

Static Protected Member Functions

static bool commit (PedDisk *disk, quint32 timeout=10)
static PedFileSystemType * getPedFileSystemType (FileSystem::Type t)
static void pedTimerHandler (PedTimer *pedTimer, void *ctx)

Private Attributes

Devicem_SourceDevice
Partitionm_SourcePartition
Devicem_TargetDevice
Partitionm_TargetPartition

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

Generated by  Doxygen 1.6.0   Back to index