kdf
stdoption.h
Go to the documentation of this file.00001 /* 00002 ** 00003 ** Copyright (C) 1998 by Michael Kropfberger 00004 ** 00005 */ 00006 00007 /* 00008 ** This program is free software; you can redistribute it and/or modify 00009 ** it under the terms of the GNU General Public License as published by 00010 ** the Free Software Foundation; either version 2 of the License, or 00011 ** (at your option) any later version. 00012 ** 00013 ** This program is distributed in the hope that it will be useful, 00014 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 ** GNU General Public License for more details. 00017 ** 00018 ** You should have received a copy of the GNU General Public License 00019 ** along with this program in a file called COPYING; if not, write to 00020 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00021 ** MA 02110-1301, USA. 00022 */ 00023 00024 /* 00025 ** Bug reports and questions can be sent to <kde-devel@kde.org> 00026 */ 00027 00028 #ifndef _STD_OPTION_H_ 00029 #define _STD_OPTION_H_ 00030 00031 #include <QtCore/QString> 00032 00033 class CStdOption 00034 { 00035 public: 00036 CStdOption( void ); 00037 ~CStdOption( void ); 00038 00039 void updateConfiguration( void ); 00040 void writeConfiguration( void ); 00041 void writeDefaultFileManager( void ); 00042 00043 QString fileManager( void ); 00044 00045 int updateFrequency( void ); 00046 bool popupIfFull( void ); 00047 bool openFileManager( void ); 00048 00049 void setDefault( void ); 00050 void setFileManager( const QString &fileManager ); 00051 void setUpdateFrequency( int frequency ); 00052 void setPopupIfFull( bool popupIfFull ); 00053 void setOpenFileManager( bool openFileManagerOnMount ); 00054 00055 private: 00056 static QString mDefaultFileManager; 00057 static int mDefaultUpdateFrequency; 00058 QString mFileManager; 00059 int mUpdateFrequency; 00060 bool mPopupIfFull; 00061 bool mOpenFileManagerOnMount; 00062 }; 00063 00064 #endif 00065 00066 00067 00068 00069 00070 00071 00072 00073
KDE 4.2 API Reference