Definition at line 73 of file qsettings.h.
Public Types
|
| enum |
Status
{
NoError = 0,
AccessError,
FormatError } |
| enum |
Format
{
NativeFormat,
IniFormat,
InvalidFormat = 16,
CustomFormat1,
CustomFormat2,
CustomFormat3,
CustomFormat4,
CustomFormat5,
CustomFormat6,
CustomFormat7,
CustomFormat8,
CustomFormat9,
CustomFormat10,
CustomFormat11,
CustomFormat12,
CustomFormat13,
CustomFormat14,
CustomFormat15,
CustomFormat16
} |
| enum |
Scope
{
UserScope,
SystemScope } |
| typedef
QMap< QString, QVariant > |
SettingsMap |
| typedef
bool(* |
ReadFunc
)(QIODevice
&device, SettingsMap
&map) |
| typedef
bool(* |
WriteFunc
)(QIODevice
&device, const SettingsMap &map) |
Public Member Functions
|
| |
QSettings
(const QString
&organization, const QString &application=QString(), QObject *parent=0) |
| |
QSettings
(Scope
scope, const QString
&organization, const QString &application=QString(), QObject *parent=0) |
| |
QSettings
(Format
format, Scope
scope, const QString
&organization, const QString &application=QString(), QObject *parent=0) |
| |
QSettings
(const QString
&fileName, Format
format, QObject
*parent=0) |
| |
QSettings
(QObject
*parent=0) |
| |
~QSettings
() |
| void |
clear
() |
| void |
sync
() |
| Status |
status
() const |
| void |
beginGroup
(const QString
&prefix) |
| void |
endGroup
() |
| QString |
group
() const |
| int |
beginReadArray
(const QString
&prefix) |
| void |
beginWriteArray
(const QString
&prefix, int size=-1) |
| void |
endArray
() |
| void |
setArrayIndex
(int i) |
| QStringList |
allKeys
() const |
| QStringList |
childKeys
() const |
| QStringList |
childGroups
() const |
| bool |
isWritable
() const |
| void |
setValue
(const QString
&key, const QVariant &value) |
| QVariant |
value
(const QString
&key, const QVariant &defaultValue=QVariant()) const |
| void |
remove
(const QString
&key) |
| bool |
contains
(const QString
&key) const |
| void |
setFallbacksEnabled
(bool b) |
| bool |
fallbacksEnabled
() const |
| QString |
fileName
() const |
| Format |
format
() const |
| Scope |
scope
() const |
| QString |
organizationName
() const |
| QString |
applicationName
() const |
| void |
setIniCodec
(QTextCodec
*codec) |
| void |
setIniCodec
(const char *codecName) |
| QTextCodec * |
iniCodec
() const |
Static Public Member
Functions
|
| static
void |
setDefaultFormat
(Format
format) |
| static Format |
defaultFormat
() |
| static
void |
setSystemIniPath
(const QString
&dir) |
| static
void |
setUserIniPath
(const QString
&dir) |
| static
void |
setPath
(Format
format, Scope
scope, const QString
&path) |
| static Format |
registerFormat
(const QString
&extension, ReadFunc
readFunc, WriteFunc
writeFunc, Qt::CaseSensitivity
caseSensitivity=Qt::CaseSensitive) |
Protected Member Functions
|
| bool |
event
(QEvent *event) |