// This is the SIP interface definition for TQSettings. // // Copyright (c) 2007 // Riverbank Computing Limited // // This file is part of PyTQt. // // This copy of PyTQt 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. // // PyTQt 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 // PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc TQSettings (TQt v3+) bool readBoolEntry const TQString &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 TQString &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. TQString readEntry const TQString &key const TQString &def = TQString::null bool *ok = 0 The ok is not passed and the returned value is a tuple of the TQString result and the ok flag. TQStringList readListEntry const TQString &key bool *ok = 0 The ok is not passed and the returned value is a tuple of the TQStringList result and the ok flag. TQStringList readListEntry const TQString &key const TQChar &separator bool *ok = 0 The ok is not passed and the returned value is a tuple of the TQStringList result and the ok flag. int readNumEntry const TQString &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 TQString &key bool value Not implemented. %End class TQSettings { %TypeHeaderCode #include %End public: enum Format { Native, Ini }; enum System { Unix, Windows, Mac }; enum Scope { User, Global }; TQSettings(); TQSettings(Format); // bool writeEntry(const TQString &,bool); bool writeEntry(const TQString &,int /Constrained/); bool writeEntry(const TQString &,double); // bool writeEntry(const TQString &,const char *); bool writeEntry(const TQString &,const TQString &); bool writeEntry(const TQString &,const TQStringList &); bool writeEntry(const TQString &,const TQStringList &,const TQChar &); TQStringList entryList(const TQString &) const; TQStringList subkeyList(const TQString &) const; TQStringList readListEntry(const TQString &,bool * = 0); TQStringList readListEntry(const TQString &,const TQChar &,bool * = 0); TQString readEntry(const TQString &,const TQString & = TQString::null, bool * = 0); int readNumEntry(const TQString &,int = 0,bool * = 0); double readDoubleEntry(const TQString &,double = 0,bool * = 0); bool readBoolEntry(const TQString &,bool = 0,bool * = 0); bool removeEntry(const TQString &); void insertSearchPath(System,const TQString &); void removeSearchPath(System,const TQString &); void setPath(const TQString &,const TQString &,Scope = Global); void beginGroup(const TQString &); void endGroup(); void resetGroup(); TQString group() const; bool sync(); private: TQSettings(const TQSettings &); };