56 #include "QtCore/qdatetime.h" 57 #include "QtCore/qmap.h" 58 #include "QtCore/qmutex.h" 59 #include "QtCore/qiodevice.h" 60 #include "QtCore/qstack.h" 61 #include "QtCore/qstringlist.h" 63 #include "private/qobject_p.h" 65 #include "private/qscopedpointer_p.h" 68 #include "QtCore/qt_windows.h" 73 #if defined(Q_WS_QWS) || defined(Q_WS_QPA) 74 #define QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER 78 #define QSETTINGS_P_H_VERSION 3 80 #ifdef QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER 110 int theOriginalKeyPosition;
121 : num(-1), maxNum(-1) {}
123 : str(s), num(-1), maxNum(-1) {}
125 : str(s), num(0), maxNum(guessArraySize ? 0 : -1) {}
129 inline bool isArray()
const {
return num != -1; }
132 { num = i + 1;
if (maxNum != -1 && num > maxNum) maxNum = num; }
156 bool isWritable()
const;
159 static void clearCache();
173 #ifdef Q_DISABLE_COPY 179 friend class QConfFile_createsItself;
183 #ifndef QT_NO_QOBJECT
205 virtual void clear() = 0;
206 virtual void sync() = 0;
207 virtual void flush() = 0;
208 virtual bool isWritable()
const = 0;
214 void requestUpdate();
232 static bool iniUnescapedKey(
const QByteArray &key,
int from,
int to,
QString &result);
235 static bool iniUnescapedStringList(
const QByteArray &str,
int from,
int to,
246 #if !defined(Q_OS_BLACKBERRY) 248 F_Organization = 0x1,
290 bool isWritable()
const;
296 static bool readIniLine(
const QByteArray &data,
int &dataPos,
int &lineStart,
int &lineLen,
302 void syncConfFile(
int confFileNo);
308 void ensureAllSectionsParsed(
QConfFile *confFile)
const;
321 #endif // QSETTINGS_P_H static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QVariant class acts like a union for the most common Qt data types.
QString section(QChar sep, int start, int end=-1, SectionFlags flags=SectionDefault) const
This function returns a section of the string.
QString originalCaseKey() const
Status
The following status values are possible:
Qt::CaseSensitivity caseSensitivity
#define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
QString & operator=(QChar c)
The QAtomicInt class provides platform-independent atomic operations on integers. ...
The QSettings class provides persistent platform-independent application settings.
The QByteArray class provides an array of bytes.
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
QSettings::WriteFunc writeFunc
Format
This enum type specifies the storage format used by QSettings.
bool(* WriteFunc)(QIODevice &device, const SettingsMap &map)
Typedef for a pointer to a function with the following signature:
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
static LibLoadStatus status
The QString class provides a Unicode character string.
int arraySizeGuess() const
QChar * data()
Returns a pointer to the data stored in the QString.
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QSettings::ReadFunc readFunc
QSettingsGroup(const QString &s)
The QStringList class provides a list of strings.
ParsedSettingsMap addedKeys
static bool variantToString(const QVariant &arg, QString &out)
static QTextCodec * codec(MYSQL *mysql)
bool(* ReadFunc)(QIODevice &device, SettingsMap &map)
Typedef for a pointer to a function with the following signature:
static const Qt::CaseSensitivity IniCaseSensitivity
int originalKeyPosition() const
QSettingsGroup(const QString &s, bool guessArraySize)
ParsedSettingsMap originalKeys
void setArrayIndex(int i)
#define Q_DECLARE_PUBLIC(Class)
QSettingsKey(const QString &key, Qt::CaseSensitivity cs, int=-1)
The QDateTime class provides date and time functions.
ParsedSettingsMap removedKeys
void clear()
Clears the contents of the string and makes it empty.
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
QMap< QSettingsKey, QByteArray > UnparsedSettingsMap
UnparsedSettingsMap unparsedIniSections
#define Q_AUTOTEST_EXPORT
Q_CORE_EXPORT QTextStream & flush(QTextStream &s)
QMap< QSettingsKey, QVariant > ParsedSettingsMap
QStack< QSettingsGroup > groupStack
The QTextCodec class provides conversions between text encodings.
The QIODevice class is the base interface class of all I/O devices in Qt.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static QString fileName(const QString &fileUrl)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QString()
Constructs a null string.