]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/inifile.h
Changed the Common::IniFile class to work with 7-bit character INI files only.
[evaf] / src / libs / Common / inifile.h
index 21a1bc4346ac293b8d96b03992242210efce013a..2ebe1c1c863c4ec340443e9d271900cb9f844453 100644 (file)
@@ -59,7 +59,7 @@ namespace Internal {
  * of different data types:
  *
  * @li Bool - '0', 'false', 'off', 'no' are equal to false and '1', 'true', 'on', 'yes' are equal to true;
- * @li Char - a single character or an ASCII code as '\0NNN' (oct) or '\0xNN' (hex);
+ * @li Char - a single character or an UTF-16 code as '\0NNNNNN' (oct) or '\0xNNNN' (hex);
  * @li Date - date string in the ISO 8601 format YYYY-MM-DD;
  * @li DateTime - date and time string in the ISO 8601 format YYY-MM-DDTHH:MM:SSTZD;
  * @li Double - the decimal point is always '.' regardless of the locale;
@@ -119,7 +119,7 @@ public:
      *
      * @sa eVaf::Common::toVariant()
      */
-    QVariant getValue(QString const & paramName, QVariant const & defaultValue = QVariant::Invalid);
+    QVariant getValue(QByteArray const & paramName, QVariant const & defaultValue = QVariant::Invalid);
 
     /**
      * Writes a value to the INI file.
@@ -134,7 +134,7 @@ public:
      * The method returns true if the parameter value was written into the INI file and false if not. Use the errorString() method
      * to get a human-readable error string if writing to the INI file fails.
      */
-    bool setValue(QString const & paramName, QVariant const & value);
+    bool setValue(QByteArray const & paramName, QVariant const & value);
 
 
 private: