The FileOperationManager class provides functionality for copying and moving files with progress.
More...
#include <FileOperationManager.h>
|
enum | AccessType { Writable
, Readable
} |
| The AccessType enum represents the type of access to check for.
|
|
|
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...
|
|
The FileOperationManager class provides functionality for copying and moving files with progress.
◆ areTreesAccessible()
bool FileOperationManager::areTreesAccessible |
( |
const QStringList & |
paths, |
|
|
AccessType |
accessType |
|
) |
| |
|
static |
Check whether a list of paths is accessible (readable or writable).
- Parameters
-
paths | The list of paths to check. |
accessType | The 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
-
fromPaths | The list of source file paths. |
toPath | The 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
-
fromPaths | The list of source file paths. |
toPath | The destination folder path. |
The documentation for this class was generated from the following files: