MoleQueue  0.8.0
 All Classes Functions Variables Enumerations Enumerator Pages
Signals | Public Member Functions | Static Public Attributes | Protected Slots | Protected Attributes | List of all members
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 ( Session session,
QObject *  parentObject = 0 
)
Parameters
sessionThe UIT session to use for this operation.
parentObjectThe parent object.

Member Function Documentation

qint64 hostId ( ) const
Returns
The host ID for the host this operation associated with.
void setHostId ( qint64  id)
Parameters
idThe host ID for the host this operation is associated with.
QString userName ( ) const
Returns
The user name of the user performing this file system operation.
void setUserName ( const QString &  user)
Parameters
userThe user name of the user performing this file system operation.
const Job& job ( ) const
Returns
The MoleQueue job this operation is associated with.
void setJob ( const Job j)
Parameters
jThe MoleQueue job this operation is associated with.
virtual void start ( )
pure virtual

Implemented by subclasses, start the operation.

Implemented in DirectoryDownload, DirectoryUpload, DirectoryDelete, and DirectoryCreate.

void finished ( )
signal

Emitted when the operation is complete.

void error ( const QString &  errorString)
signal

Emitted if an error occurs during the operation.

Parameters
errorStringThe error string describing the error.
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

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: