Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLSettings.h 00003 ------------------- 00004 begin : 28/03/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef FLSETTINGS_H_ 00020 #define FLSETTINGS_H_ 00021 00022 class FLSettings 00023 { 00024 public: 00025 static QStringList readListEntry(const QString &key, bool *retOk = 0); 00026 static QString readEntry(const QString &key, 00027 const QString &def = QString::null, bool *retOk = 0); 00028 static int readNumEntry(const QString &key, int def = 0, bool *retOk = 0); 00029 static double readDoubleEntry(const QString &key, double def = 0, bool *retOk = 0); 00030 static bool readBoolEntry(const QString &key, bool def = false, bool *retOk = 0); 00031 00032 static bool writeEntry(const QString &key, bool value); 00033 static bool writeEntry(const QString &key, double value); 00034 static bool writeEntry(const QString &key, int value); 00035 static bool writeEntry(const QString &key, const QString &value); 00036 static bool writeEntry(const QString &key, const QStringList &value); 00037 static bool writeEntryList(const QString &key, const QStringList &value); 00038 }; 00039 00040 #endif /* FLSETTINGS_H_ */