Filer
Public Types | Static Public Member Functions | List of all members
FileOperationManager Class Reference

The FileOperationManager class provides functionality for copying and moving files with progress. More...

#include <FileOperationManager.h>

Public Types

enum  AccessType { Writable , Readable }
 The AccessType enum represents the type of access to check for.
 

Static Public Member Functions

static bool areTreesAccessible (const QStringList &paths, AccessType accessType)
 Check whether a list of paths is accessible (readable or writable). More...
 
static void copyWithProgress (const QStringList &fromPaths, const QString &toPath)
 Copies a list of files to a destination folder with progress. More...
 
static void moveWithProgress (const QStringList &fromPaths, const QString &toPath)
 Moves a list of files to a destination folder with progress. More...
 
static QString findFileOperationBinary ()
 Finds the path to the file operation binary, 'fileoperation'. More...
 

Detailed Description

The FileOperationManager class provides functionality for copying and moving files with progress.

Member Function Documentation

◆ areTreesAccessible()

bool FileOperationManager::areTreesAccessible ( const QStringList &  paths,
AccessType  accessType 
)
static

Check whether a list of paths is accessible (readable or writable).

Parameters
pathsThe list of paths to check.
accessTypeThe type of access to check for.
Returns
True if the paths are accessible, false otherwise.

◆ copyWithProgress()

void FileOperationManager::copyWithProgress ( const QStringList &  fromPaths,
const QString &  toPath 
)
static

Copies a list of files to a destination folder with progress.

Parameters
fromPathsThe list of source file paths.
toPathThe destination folder path.

◆ findFileOperationBinary()

QString FileOperationManager::findFileOperationBinary ( )
static

Finds the path to the file operation binary, 'fileoperation'.

Note
The binary should be shipped with this application. All file operation functionality is implemented in the binary.
Returns
The path to the binary.

◆ moveWithProgress()

void FileOperationManager::moveWithProgress ( const QStringList &  fromPaths,
const QString &  toPath 
)
static

Moves a list of files to a destination folder with progress.

Parameters
fromPathsThe list of source file paths.
toPathThe destination folder path.

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