signon  8.58
MountHandler Class Reference

Handles mounting and unmounting of file systems. More...

#include <crypto-handlers.h>

Static Public Member Functions

static bool mount (const QString &source, const QString &target, const QString &fileSystemType=QLatin1String("ext2"))
 Mounts a block device to a specific location. More...
 
static bool umount (const QString &target)
 Unmounts a block device from a specific location. More...
 

Detailed Description

Handles mounting and unmounting of file systems.

Definition at line 128 of file crypto-handlers.h.

Member Function Documentation

bool MountHandler::mount ( const QString &  source,
const QString &  target,
const QString &  fileSystemType = QLatin1String("ext2") 
)
static

Mounts a block device to a specific location.

Parameters
toMountFile system to be mounted.
mounthPathPath to where the file system will be mounted.
fileSystemTypeThe type of the file system to be mounted.
Returns
true upon success, false otherwise.

Definition at line 162 of file crypto-handlers.cpp.

Referenced by CryptoManager::backupFiles().

bool MountHandler::umount ( const QString &  target)
static

Unmounts a block device from a specific location.

Parameters
mounthPathPath of the file system to be unmounted.
Returns
true upon success, false otherwise.

Definition at line 173 of file crypto-handlers.cpp.

References TRACE.

Referenced by CryptoManager::backupFiles().


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