55 #ifndef QT_NO_SETTINGS
65 #ifdef Status // we seem to pick up a macro Status --> int somewhere
70 class QSettingsPrivate;
125 #ifndef QT_NO_QOBJECT
166 void remove(
const QString &key);
178 #ifndef QT_NO_TEXTCODEC
188 static void setPath(Format format, Scope scope,
const QString &path);
198 inline QT3_SUPPORT
bool writeEntry(
const QString &key,
bool value)
200 inline QT3_SUPPORT
bool writeEntry(
const QString &key,
double value)
202 inline QT3_SUPPORT
bool writeEntry(
const QString &key,
int value)
204 inline QT3_SUPPORT
bool writeEntry(
const QString &key,
const char *
value)
206 inline QT3_SUPPORT
bool writeEntry(
const QString &key,
const QString &value)
216 return value(key).toStringList();
225 return str.
split(separator);
232 return value(key, defaultValue).toString();
234 inline QT3_SUPPORT
int readNumEntry(
const QString &key,
int defaultValue = 0,
bool *ok = 0)
238 return value(key, defaultValue).toInt();
240 inline QT3_SUPPORT
double readDoubleEntry(
const QString &key,
double defaultValue = 0,
245 return value(key, defaultValue).toDouble();
247 inline QT3_SUPPORT
bool readBoolEntry(
const QString &key,
bool defaultValue =
false,
252 return value(key, defaultValue).toBool();
254 inline QT3_SUPPORT
bool removeEntry(
const QString &key)
255 {
remove(key);
return true; }
257 enum System { Unix, Windows, Mac };
258 inline QT3_SUPPORT
void insertSearchPath(System,
const QString &) {}
259 inline QT3_SUPPORT
void removeSearchPath(System,
const QString &) {}
262 Scope scope = Global)
265 organization, application);
267 inline QT3_SUPPORT
void resetGroup()
269 while (!
group().isEmpty())
295 #ifndef QT_NO_QOBJECT
301 void setPath_helper(Scope scope,
const QString &organization,
const QString &application);
309 #endif // QT_NO_SETTINGS
313 #endif // QSETTINGS_H
QFuture< void > map(Sequence &sequence, MapFunctor map)
QStringList childGroups() const
static QString fromAscii(const char *, int size=-1)
bool fallbacksEnabled() const
QSettings(const QString &organization, const QString &application=QString(), QObject *parent=0)
typedef Status(APIENTRYP PFNGLXGETTRANSPARENTINDEXSUNPROC)(Display *dpy
void beginGroup(const QString &prefix)
static void setPath(Format format, Scope scope, const QString &path)
QStringList allKeys() const
QScopedPointer< QObjectData > d_ptr
#define QT_BEGIN_NAMESPACE
QString organizationName() const
GLenum GLsizei GLenum format
void setFallbacksEnabled(bool b)
static Format defaultFormat()
QMap< QString, QVariant > SettingsMap
void setArrayIndex(int i)
void setIniCodec(QTextCodec *codec)
static Format registerFormat(const QString &extension, ReadFunc readFunc, WriteFunc writeFunc, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
QStringList childKeys() const
GLsizei const GLfloat * value
virtual bool event(QEvent *)
QString join(const QString &sep) const
bool contains(const QString &key) const
static void setSystemIniPath(const QString &dir)
QTextCodec * iniCodec() const
static void setUserIniPath(const QString &dir)
int beginReadArray(const QString &prefix)
static void setDefaultFormat(Format format)
void setValue(const QString &key, const QVariant &value)
QString applicationName() const
void beginWriteArray(const QString &prefix, int size=-1)