50class LIB_EXPORT TEIniFile
53 TEIniFile(
const QString &name = QString::null);
56 void setFileName(
const QString &name);
57 QString fileName()
const {
return f.name();}
63 void writeSection(
const QString §ion);
64 void writeComment(
const QString &comment);
65 void writeString(
const QString &name,
const QString &value);
66 void writeData(
const QString &name,
const QString &value);
67 void writeNumber(
const QString &name,
const int value,
const int base = 10);
68 void writeStringList(
const QString &name,
const QStringList &value);
69 void writeDataList(
const QString &name,
const QStringList &value);
70 void writeBool(
const QString &name,
const bool value);
71 void writeColor(
const QString &name,
const QColor& color);
72 void writeRect(
const QString &name,
const QRect& rect);
74 bool sectionExists(
const QString §ion)
75 {
return SectionList.contains(section); }
76 bool useSection(
const QString §ion);
77 const QString& readString(
const QString &name,
const QString &def = QString::null);
78 int readNumber(
const QString &name,
const int def = 0,
const int base = 10);
79 bool readBool(
const QString &name,
const bool def =
false);
80 const QColor& readColor(
const QString &name,
const QColor& def = QColor());
81 const QRect& readRect(
const QString &name,
const QRect& def = QRect());
83 void setString(
const QString &name,
const QString &value);
84 void setData(
const QString &name,
const QString &value);
85 void setNumber(
const QString &name,
const int value,
const int base = 10);
86 void setStringList(
const QString &name,
const QStringList &value);
87 void setDataList(
const QString &name,
const QStringList &value);
88 void setBool(
const QString &name,
const bool value);
89 void setColor(
const QString &name,
const QColor& color);
90 void setRect(
const QString &name,
const QRect& rect);
97 bool getString(
const QString & name, QString & value);
99 bool getNumber(
const QString & name,
int & value,
const int base=10);
100 bool getBool(
const QString & name,
bool & value);
108 QMap<QString, type_ValueList> SectionList;
109 QMap<QString, type_ValueList> SectionListDef;
110 QMapIterator<QString, type_ValueList> mi;
111 QString m_sCurSection;