diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/kconfig_imp.h | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/kconfig_imp.h')
-rw-r--r-- | kjsembed/bindings/kconfig_imp.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/kjsembed/bindings/kconfig_imp.h b/kjsembed/bindings/kconfig_imp.h index 5eb99973..0e063cb0 100644 --- a/kjsembed/bindings/kconfig_imp.h +++ b/kjsembed/bindings/kconfig_imp.h @@ -36,7 +36,7 @@ #ifndef QT_ONLY class KConfig; #else -class TQSettings; +class TTQSettings; #endif namespace KJSEmbed { @@ -51,9 +51,9 @@ class Config : public BindingObject Q_PROPERTY( bool readDefaults READ readDefaults WRITE setReadDefaults ) public: - Config( TQObject *parent=0, const char *name=0); + Config( TTQObject *parent=0, const char *name=0); /* - Config( TQObject *parent, const char *name, const TQString& confName ); + Config( TTQObject *parent, const char *name, const TTQString& confName ); */ virtual ~Config(); @@ -70,62 +70,62 @@ public slots: // Group void setDesktopGroup(); - void setGroup(const TQString&); - TQString group(); - TQStringList groupList(); - TQString locale(); + void setGroup(const TTQString&); + TTQString group(); + TTQStringList groupList(); + TTQString locale(); void rollback( bool bDeep ); void sync(); - bool hasKey( const TQString& key ) const; - bool entryIsImmutable(const TQString &key) const; - void revertToDefault(const TQString &key); - bool hasDefault(const TQString &key) const; + bool hasKey( const TTQString& key ) const; + bool entryIsImmutable(const TTQString &key) const; + void revertToDefault(const TTQString &key); + bool hasDefault(const TTQString &key) const; void setFileWriteMode(int mode); - TQString readEntry(const TQString& pKey, const TQString& aDefault ) const; - TQVariant readPropertyEntry( const TQString& pKey, const TQVariant &var) const; - TQStringList readListEntry( const TQString& pKey ) const; - TQString readPathEntry( const TQString& pKey, const TQString & aDefault) const; - TQStringList readPathListEntry( const TQString& pKey ) const; - int readNumEntry( const TQString& pKey, int nDefault ) const; - uint readUnsignedNumEntry( const TQString& pKey, uint nDefault ) const; - long readLongNumEntry( const TQString& pKey, long nDefault ) const; - double readDoubleNumEntry( const TQString& pKey, double nDefault ) const; - TQFont readFontEntry( const TQString& pKey, const TQFont* pDefault) const; - bool readBoolEntry( const TQString& pKey, const bool bDefault ) const; - TQRect readRectEntry( const TQString& pKey, const TQRect* pDefault) const; - TQPoint readPointEntry( const TQString& pKey, const TQPoint* pDefault) const; - TQSize readSizeEntry( const TQString& pKey, const TQSize* pDefault) const; - TQColor readColorEntry( const TQString& pKey, const TQColor* pDefault) const; - TQDateTime readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const; - TQString readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const; - - void writeEntry( const TQString& pKey, const TQString& pValue ); - void writePropertyEntry( const TQString& pKey, const TQVariant& pValue ); - void writeListEntry( const TQString& pKey, const TQStringList &rValue ); - void writeNumEntry( const TQString& pKey, int nValue ); - void writeUnsignedNumEntry( const TQString& pKey, uint nValue ); - void writeLongNumEntry( const TQString& pKey, unsigned long nValue ); - void writeDoubleNumEntry( const TQString& pKey, double nValue ); - void writeBoolEntry( const TQString& pKey, bool bValue ); - void writeFontEntry( const TQString& pKey, const TQFont& rFont ); - void writeColorEntry( const TQString& pKey, const TQColor& rColor ); - void writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime ); - void writeRectEntry( const TQString& pKey, const TQRect& rValue ); - void writePointEntry( const TQString& pKey, const TQPoint& rValue ); - void writeSizeEntry( const TQString& pKey, const TQSize& rValue ); - void writePathEntry( const TQString& pKey, const TQString & path ); - void writePathListEntry( const TQString& pKey, const TQStringList &rValue); - void deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal ); - bool deleteGroup( const TQString& group, bool bDeep , bool bGlobal ); + TTQString readEntry(const TTQString& pKey, const TTQString& aDefault ) const; + TTQVariant readPropertyEntry( const TTQString& pKey, const TTQVariant &var) const; + TTQStringList readListEntry( const TTQString& pKey ) const; + TTQString readPathEntry( const TTQString& pKey, const TTQString & aDefault) const; + TTQStringList readPathListEntry( const TTQString& pKey ) const; + int readNumEntry( const TTQString& pKey, int nDefault ) const; + uint readUnsignedNumEntry( const TTQString& pKey, uint nDefault ) const; + long readLongNumEntry( const TTQString& pKey, long nDefault ) const; + double readDoubleNumEntry( const TTQString& pKey, double nDefault ) const; + TTQFont readFontEntry( const TTQString& pKey, const TTQFont* pDefault) const; + bool readBoolEntry( const TTQString& pKey, const bool bDefault ) const; + TTQRect readRectEntry( const TTQString& pKey, const TTQRect* pDefault) const; + TTQPoint readPointEntry( const TTQString& pKey, const TTQPoint* pDefault) const; + TTQSize readSizeEntry( const TTQString& pKey, const TTQSize* pDefault) const; + TTQColor readColorEntry( const TTQString& pKey, const TTQColor* pDefault) const; + TTQDateTime readDateTimeEntry( const TTQString& pKey, const TTQDateTime* pDefault) const; + TTQString readEntryUntranslated( const TTQString& pKey, const TTQString& aDefault ) const; + + void writeEntry( const TTQString& pKey, const TTQString& pValue ); + void writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue ); + void writeListEntry( const TTQString& pKey, const TTQStringList &rValue ); + void writeNumEntry( const TTQString& pKey, int nValue ); + void writeUnsignedNumEntry( const TTQString& pKey, uint nValue ); + void writeLongNumEntry( const TTQString& pKey, unsigned long nValue ); + void writeDoubleNumEntry( const TTQString& pKey, double nValue ); + void writeBoolEntry( const TTQString& pKey, bool bValue ); + void writeFontEntry( const TTQString& pKey, const TTQFont& rFont ); + void writeColorEntry( const TTQString& pKey, const TTQColor& rColor ); + void writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDateTime ); + void writeRectEntry( const TTQString& pKey, const TTQRect& rValue ); + void writePointEntry( const TTQString& pKey, const TTQPoint& rValue ); + void writeSizeEntry( const TTQString& pKey, const TTQSize& rValue ); + void writePathEntry( const TTQString& pKey, const TTQString & path ); + void writePathListEntry( const TTQString& pKey, const TTQStringList &rValue); + void deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal ); + bool deleteGroup( const TTQString& group, bool bDeep , bool bGlobal ); private: #ifndef QT_ONLY KConfig *m_config; #else - TQSettings *m_config; - TQString m_name; + TTQSettings *m_config; + TTQString m_name; bool m_forceGlobal; #endif }; |