YourDefrag
SVN
|
Defragmenter work thread configuration. More...
#include <YDConfigFile.h>
Public Member Functions | |
YDConfigFile (QString diskName, QObject *parent=NULL) | |
Defragmenter config file constructor. | |
YDConfigFile (const YDConfigFile &configFile) | |
Defragmenter config file copy constructor. | |
~YDConfigFile () | |
Defragmenter config file destructor. | |
bool | load (QString fileName=QString::null) |
Load config file. | |
bool | save (QString fileName=QString::null, bool hidden=true) |
Save config file. | |
QString | getDefaultFileName () |
Get default file name. | |
Public Attributes | |
QString | m_diskName |
Disk name string. | |
QStringList | m_excludes |
File excludes list. | |
QStringList | m_spaceHogs |
File space hogs list. | |
int | m_mode |
Defragmenter mode. | |
int | m_speed |
Defragmenter speed in percents. | |
int | m_freeSpace |
Free space in percents. | |
bool | m_startFlag |
Defragmenter start flag. |
Defragmenter work thread configuration.
This class holds defragmenter configuration parameters and makes load/store operations.
YDConfigFile::YDConfigFile | ( | QString | diskName, |
QObject * | parent = NULL |
||
) |
Defragmenter config file constructor.
This function initializes defragmenter data.
[in] | diskName | Name of disk/path to defragment. |
[in] | parent | Parent object. |
YDConfigFile::YDConfigFile | ( | const YDConfigFile & | configFile | ) |
Defragmenter config file copy constructor.
This function initializes makes a copy of defragmenter data.
[in] | configFile | Reference config file variable. |
YDConfigFile::~YDConfigFile | ( | ) |
Defragmenter config file destructor.
QString YDConfigFile::getDefaultFileName | ( | ) |
Get default file name.
This function forms a default file name for configuration file.
bool YDConfigFile::load | ( | QString | fileName = QString::null | ) |
Load config file.
This function loads defragmenter configuration data out from a file.
[in] | fileName | File name to load data from. |
bool YDConfigFile::save | ( | QString | fileName = QString::null , |
bool | hidden = true |
||
) |
Save config file.
This function stores defragmenter configuration data in to a file.
[in] | fileName | File name to store data to. |
[in] | hidden | Mark the file as hidden one. |
QString YDConfigFile::m_diskName |
Disk name string.
QStringList YDConfigFile::m_excludes |
File excludes list.
Free space in percents.
Defragmenter mode.
QStringList YDConfigFile::m_spaceHogs |
File space hogs list.
Defragmenter speed in percents.
Defragmenter start flag.