MoleQueue 0.9.0
Loading...
Searching...
No Matches
FileSystemOperation Class Referenceabstract

#include <filesystemoperation.h>

Inheritance diagram for FileSystemOperation:
DirectoryCreate DirectoryDelete DirectoryDownload DirectoryUpload

Signals

void finished ()
void error (const QString &errorString)

Public Member Functions

 FileSystemOperation (Session *session, QObject *parentObject=0)
qint64 hostId () const
void setHostId (qint64 id)
QString userName () const
void setUserName (const QString &user)
const Jobjob () const
void setJob (const Job &j)
virtual void start ()=0

Static Public Attributes

static const QString noSuchFileOrDir

Protected Slots

virtual void requestError (const QString &errorString)

Protected Attributes

Sessionm_session
qint64 m_hostID
QString m_userName
Job m_job

Detailed Description

abstract base class of UIT file system operations.

See DirectoryDownload and DirectoryUpload for examples of concrete implementations.

Constructor & Destructor Documentation

◆ FileSystemOperation()

FileSystemOperation ( Session * session,
QObject * parentObject = 0 )
Parameters
sessionThe UIT session to use for this operation.
parentObjectThe parent object.

Member Function Documentation

◆ hostId()

qint64 hostId ( ) const
Returns
The host ID for the host this operation associated with.

◆ setHostId()

void setHostId ( qint64 id)
Parameters
idThe host ID for the host this operation is associated with.

◆ userName()

QString userName ( ) const
Returns
The user name of the user performing this file system operation.

◆ setUserName()

void setUserName ( const QString & user)
Parameters
userThe user name of the user performing this file system operation.

◆ job()

const Job & job ( ) const
Returns
The MoleQueue job this operation is associated with.

◆ setJob()

void setJob ( const Job & j)
Parameters
jThe MoleQueue job this operation is associated with.

◆ start()

virtual void start ( )
pure virtual

Implemented by subclasses, start the operation.

Implemented in DirectoryCreate, DirectoryDelete, DirectoryDownload, and DirectoryUpload.

◆ finished

void finished ( )
signal

Emitted when the operation is complete.

◆ error

void error ( const QString & errorString)
signal

Emitted if an error occurs during the operation.

Parameters
errorStringThe error string describing the error.

◆ requestError

virtual void requestError ( const QString & errorString)
protectedvirtualslot

Slot called when an error occurs while performing the operation.

Parameters
errorStringString describing the error.

Member Data Documentation

◆ noSuchFileOrDir

const QString noSuchFileOrDir
static

Error string produced by UIT statFile(...) when an file/directory doesn't exist.


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