Hydra 0.20
|
#include <FileOp.h>
Public Types | |
enum | { Op_Del = 1, Op_Move, Op_Copy } |
Public Member Functions | |
virtual bool | delFile (const QString &srcfile)=0 |
virtual bool | moveFile (const QString &srcfile, const QString &destfile)=0 |
virtual bool | copyFile (const QString &srcfile, const QString &destfile)=0 |
virtual bool | delDir (const QString &dirname)=0 |
bool | opFile (int op, const QString &srcfile, const QString &destfile) |
This provides a common interface to file operations. Subclasses can do various things, providing a nice consistance interface for callers to use.
bool desktop::FileOp::opFile | ( | int | op, |
const QString & | srcfile, | ||
const QString & | destfile | ||
) |
Perform one file operation, based on the op field, which is one of Op_Del, Op_Move or Op_Copy