30 #include <QtCore/QString>
32 #include <kapplication.h>
34 #include <kconfiggroup.h>
38 int CStdOption::mDefaultUpdateFrequency = 60;
53 KConfigGroup config(KGlobal::config(),
"KDFConfig");
54 mFileManager = config.readPathEntry(
55 "FileManagerCommand", mDefaultFileManager );
56 mUpdateFrequency = config.readEntry(
57 "UpdateFrequency", mDefaultUpdateFrequency );
58 mPopupIfFull = config.readEntry(
59 "PopupIfFull",
true );
60 mOpenFileManagerOnMount = config.readEntry(
61 "OpenFileMgrOnMount",
false );
67 KConfigGroup config(KGlobal::config(),
"KDFConfig");
68 config.writeEntry(
"UpdateFrequency", mUpdateFrequency );
69 config.writePathEntry(
"FileManagerCommand", mFileManager );
70 config.writeEntry(
"PopupIfFull", mPopupIfFull );
71 config.writeEntry(
"OpenFileMgrOnMount", mOpenFileManagerOnMount );
78 KConfigGroup config(KGlobal::config(),
"KDFConfig");
79 config.writePathEntry(
"FileManagerCommand", mDefaultFileManager );
87 return( mFileManager );
93 return( mUpdateFrequency );
99 return( mPopupIfFull );
105 return( mOpenFileManagerOnMount );
111 mFileManager = mDefaultFileManager;
112 mUpdateFrequency = mDefaultUpdateFrequency;
114 mOpenFileManagerOnMount =
false;
126 mUpdateFrequency = frequency;
138 mOpenFileManagerOnMount = openFileManagerOnMount;
void writeConfiguration(void)
void setUpdateFrequency(int frequency)
void setFileManager(const QString &fileManager)
bool openFileManager(void)
void writeDefaultFileManager(void)
void setPopupIfFull(bool popupIfFull)
QString fileManager(void)
void setOpenFileManager(bool openFileManagerOnMount)
int updateFrequency(void)
void updateConfiguration(void)