// This is the SIP interface definition for QSettings. // // Copyright (c) 2007 // Riverbank Computing Limited // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc QSettings (Qt v3+) bool readBoolEntry const QString &key bool def = 0 bool *ok = 0 The ok is not passed and the returned value is a tuple of the bool result and the ok flag. double readDoubleEntry const QString &key double def = 0 bool *ok = 0 The ok is not passed and the returned value is a tuple of the double result and the ok flag. QString readEntry const QString &key const QString &def = QString::null bool *ok = 0 The ok is not passed and the returned value is a tuple of the QString result and the ok flag. QStringList readListEntry const QString &key bool *ok = 0 The ok is not passed and the returned value is a tuple of the QStringList result and the ok flag. QStringList readListEntry const QString &key const QChar &separator bool *ok = 0 The ok is not passed and the returned value is a tuple of the QStringList result and the ok flag. int readNumEntry const QString &key int def = 0 bool *ok = 0 The ok is not passed and the returned value is a tuple of the int result and the ok flag. bool writeEntry const QString &key bool value Not implemented. %End %If (Qt_3_0_0 -) class QSettings { %TypeHeaderCode #include %End public: %If (Qt_3_1_0 -) enum Format { Native, Ini }; %End enum System { Unix, Windows, Mac }; %If (Qt_3_1_0 -) enum Scope { User, Global }; %End QSettings(); %If (Qt_3_1_0 -) QSettings(Format); %End // bool writeEntry(const QString &,bool); bool writeEntry(const QString &,int /Constrained/); bool writeEntry(const QString &,double); // bool writeEntry(const QString &,const char *); bool writeEntry(const QString &,const QString &); bool writeEntry(const QString &,const QStringList &); bool writeEntry(const QString &,const QStringList &,const QChar &); QStringList entryList(const QString &) const; QStringList subkeyList(const QString &) const; QStringList readListEntry(const QString &,bool * = 0); QStringList readListEntry(const QString &,const QChar &,bool * = 0); QString readEntry(const QString &,const QString & = QString::null, bool * = 0); int readNumEntry(const QString &,int = 0,bool * = 0); double readDoubleEntry(const QString &,double = 0,bool * = 0); bool readBoolEntry(const QString &,bool = 0,bool * = 0); bool removeEntry(const QString &); void insertSearchPath(System,const QString &); void removeSearchPath(System,const QString &); %If (Qt_3_1_0 -) void setPath(const QString &,const QString &,Scope = Global); void beginGroup(const QString &); void endGroup(); void resetGroup(); QString group() const; %End %If (Qt_3_2_0 -) bool sync(); %End private: QSettings(const QSettings &); }; %End