diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /sip/kio/global.sip | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/kio/global.sip')
-rw-r--r-- | sip/kio/global.sip | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/sip/kio/global.sip b/sip/kio/global.sip index 7f5a13b..e46997a 100644 --- a/sip/kio/global.sip +++ b/sip/kio/global.sip @@ -31,24 +31,24 @@ namespace KIO { typedef long long fileoffset_t; typedef unsigned long long filesize_t; -QString convertSize (KIO::filesize_t); +TQString convertSize (KIO::filesize_t); %If ( KDE_3_5_0 - ) -QString convertSizeWithBytes (KIO::filesize_t); +TQString convertSizeWithBytes (KIO::filesize_t); %End -QString number (KIO::filesize_t); -QString convertSizeFromKB (KIO::filesize_t); +TQString number (KIO::filesize_t); +TQString convertSizeFromKB (KIO::filesize_t); %If ( KDE_3_4_0 - ) uint calculateRemainingSeconds (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); -QString convertSeconds (uint); +TQString convertSeconds (uint); %End -QTime calculateRemaining (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); -QString itemsSummaryString (uint, uint, uint, KIO::filesize_t, bool); -QString encodeFileName (const QString&); -QString decodeFileName (const QString&); +TQTime calculateRemaining (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); +TQString itemsSummaryString (uint, uint, uint, KIO::filesize_t, bool); +TQString encodeFileName (const TQString&); +TQString decodeFileName (const TQString&); %If ( KDE_3_2_0 - ) @@ -152,18 +152,18 @@ enum Error ERR_DISK_FULL, ERR_IDENTICAL_FILES, ERR_SLAVE_DEFINED, - ERR_UPGRADE_REQUIRED, + ERR_UPGRADE_RETQUIRED, ERR_POST_DENIED }; %End -QString buildErrorString (int, const QString&); -//ig QString buildHTMLErrorString (int, const QString&, const KURL* = 0, int = -1); -QByteArray rawErrorDetail (int, const QString&, const KURL* = 0, int = -1); +TQString buildErrorString (int, const TQString&); +//ig TQString buildHTMLErrorString (int, const TQString&, const KURL* = 0, int = -1); +TQByteArray rawErrorDetail (int, const TQString&, const KURL* = 0, int = -1); %If ( KDE_3_2_0 - ) -QString unsupportedActionErrorString (const QString&, int); +TQString unsupportedActionErrorString (const TQString&, int); %If ( KDE_3_5_1 - ) @@ -214,14 +214,14 @@ enum CacheControl %End -KIO::CacheControl parseCacheControl (const QString&); -QString getCacheControlString (KIO::CacheControl); -QString findDeviceMountPoint (const QString&); -QString findPathMountPoint (const QString&); -bool probably_slow_mounted (const QString&); +KIO::CacheControl parseCacheControl (const TQString&); +TQString getCacheControlString (KIO::CacheControl); +TQString findDeviceMountPoint (const TQString&); +TQString findPathMountPoint (const TQString&); +bool probably_slow_mounted (const TQString&); %If ( KDE_3_1_0 - ) -bool manually_mounted (const QString&); +bool manually_mounted (const TQString&); %If ( KDE_3_2_0 - ) @@ -234,7 +234,7 @@ enum FileSystemFlag CaseInsensitive }; -bool testFileSystemFlag (const QString&, KIO::FileSystemFlag); +bool testFileSystemFlag (const TQString&, KIO::FileSystemFlag); %End %End @@ -248,16 +248,16 @@ class UDSAtom public: - QString m_str; + TQString m_str; long m_long; uint m_uds; }; // class UDSAtom -//ig typedef QValueList<KIO::UDSAtom> UDSEntry; -//ig typedef QValueList<KIO::UDSEntry> UDSEntryList; -//ig typedef QValueListIterator<UDSEntry> UDSEntryListIterator; -//ig typedef QValueListConstIterator<UDSEntry> UDSEntryListConstIterator; +//ig typedef TQValueList<KIO::UDSAtom> UDSEntry; +//ig typedef TQValueList<KIO::UDSEntry> UDSEntryList; +//ig typedef TQValueListIterator<UDSEntry> UDSEntryListIterator; +//ig typedef TQValueListConstIterator<UDSEntry> UDSEntryListConstIterator; %If ( KDE_3_4_0 - KDE_3_5_1 ) @@ -450,7 +450,7 @@ enum CacheControl %End //force -//ig typedef QMap<QString,QString> MetaData; +//ig typedef TQMap<TQString,TQString> MetaData; //end }; // namespace KIO @@ -500,11 +500,11 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KIO::UDSAtom> *cpplist = (QValueList<KIO::UDSAtom> *)sipCpp; + TQValueList<KIO::UDSAtom> *cpplist = (TQValueList<KIO::UDSAtom> *)sipCpp; PyObject *inst; // Get it. - QValueList<KIO::UDSAtom>::Iterator it; + TQValueList<KIO::UDSAtom>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KIO::UDSAtom(*it), sipType_KIO_UDSAtom, NULL)) == NULL) @@ -523,7 +523,7 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KIO::UDSAtom> *cpplist = new QValueList<KIO::UDSAtom>; + TQValueList<KIO::UDSAtom> *cpplist = new TQValueList<KIO::UDSAtom>; PyObject *elem; KIO::UDSAtom *cpp; @@ -568,11 +568,11 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KIO::UDSEntry> *cpplist = (QValueList<KIO::UDSEntry> *)sipCpp; + TQValueList<KIO::UDSEntry> *cpplist = (TQValueList<KIO::UDSEntry> *)sipCpp; PyObject *inst; // Get it. - QValueList<KIO::UDSEntry>::Iterator it; + TQValueList<KIO::UDSEntry>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { KIO::UDSEntry cpp = *it; @@ -593,7 +593,7 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KIO::UDSEntry> *cpplist = new QValueList<KIO::UDSEntry>; + TQValueList<KIO::UDSEntry> *cpplist = new TQValueList<KIO::UDSEntry>; PyObject *elem; KIO::UDSEntry *cpp; @@ -622,7 +622,7 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); %MappedType KIO::MetaData -//converts a Python dict of QString, QString +//converts a Python dict of TQString, TQString { %TypeHeaderCode #include<qmap.h> @@ -644,17 +644,17 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); // Get it. - const QMap<QString,QString> cppmap = *sipCpp; - QMap<QString,QString>::ConstIterator it; + const TQMap<TQString,TQString> cppmap = *sipCpp; + TQMap<TQString,TQString>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); - QString bcpp = it.data (); + TQString acpp = it.key (); + TQString bcpp = it.data (); PyObject *ainst; PyObject *binst; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQString(bcpp), sipType_QString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -669,25 +669,25 @@ KIO::MetaData testKIOMetaData (KIO::MetaData); %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,QString> *cppmap = new QMap<QString,QString>; + TQMap<TQString,TQString> *cppmap = new TQMap<TQString,TQString>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QString *bcpp; + TQString *acpp; + TQString *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state, bcpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); if (iserr) { |