Hydra 0.20
desktop::FileOp Class Reference

#include <FileOp.h>

Inheritance diagram for desktop::FileOp:

List of all members.

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)

Detailed Description

This provides a common interface to file operations. Subclasses can do various things, providing a nice consistance interface for callers to use.

Author:
Aleksander Demko

Member Function Documentation

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

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables