YourDefrag  SVN
cmd/src/YDConfigFile.h
Go to the documentation of this file.
00001 
00009 #ifndef YDCONFIGFILE_H
00010 #define YDCONFIGFILE_H
00011 
00012 #include <QString>
00013 #include <QSettings>
00014 #include <QList>
00015 #include <QStringList>
00016 
00017 #define YD_CONFIGFILE_DEFAULT   "\\YourDefrag.cfg"
00018 
00019 class YDConfigFile: public QObject {
00020 
00021 //      Q_OBJECT
00022 
00023 public:
00024         YDConfigFile(QString diskName, QObject *parent = NULL);
00025         YDConfigFile(const YDConfigFile &configFile);
00026         ~YDConfigFile();
00027 
00028         QString m_diskName;
00029         QStringList m_excludes;
00030         QStringList m_spaceHogs;
00031         int m_mode;
00032         int m_speed;
00033         int m_freeSpace;
00034         bool m_startFlag;
00035 
00036         bool load(QString fileName = QString::null);
00037         bool save(QString fileName = QString::null, bool hidden = true);
00038 
00039         QString getDefaultFileName();
00040 };
00041 
00042 #endif/*YDCONFIGFILE_H*/
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines