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 | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/kio')
72 files changed, 1032 insertions, 1032 deletions
diff --git a/sip/kio/authinfo.sip b/sip/kio/authinfo.sip index 0a835a6..0832cd8 100644 --- a/sip/kio/authinfo.sip +++ b/sip/kio/authinfo.sip @@ -39,14 +39,14 @@ public: bool isModified () const; void setModified (bool); KURL url; - QString username; - QString password; - QString prompt; - QString caption; - QString comment; - QString commentLabel; - QString realmValue; - QString digestInfo; + TQString username; + TQString password; + TQString prompt; + TQString caption; + TQString comment; + TQString commentLabel; + TQString realmValue; + TQString digestInfo; bool verifyPath; bool readOnly; bool keepPassword; @@ -57,8 +57,8 @@ protected: %If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KIO::AuthInfo&); -//igx QDataStream& operator >> (QDataStream&, KIO::AuthInfo&); +//igx TQDataStream& operator << (TQDataStream&, const KIO::AuthInfo&); +//igx TQDataStream& operator >> (TQDataStream&, KIO::AuthInfo&); %End @@ -83,10 +83,10 @@ public: { public: - QString type; - QString machine; - QString login; - QString password; + TQString type; + TQString machine; + TQString login; + TQString password; KStringListMap macdef; }; // class AutoLogin @@ -94,12 +94,12 @@ public: public: static KIO::NetRC* self (); - bool lookup (const KURL&, KIO::NetRC::AutoLogin&, bool = 0, QString = QString ::null , int = 6); + bool lookup (const KURL&, KIO::NetRC::AutoLogin&, bool = 0, TQString = TQString ::null , int = 6); void reload (); protected: -//ig QString extract (const char*, const char*, int&); - int openf (const QString&); +//ig TQString extract (const char*, const char*, int&); + int openf (const TQString&); %If ( KDE_3_2_0 - ) bool parse (int); @@ -125,10 +125,10 @@ protected: %MappedType KStringListMap { -//converts a Python dict of QString:QStringList +//converts a Python dict of TQString:TQStringList %TypeHeaderCode #include <qmap.h> -typedef QMap<QString, QStringList> KStringListMap; +typedef TQMap<TQString, TQStringList> KStringListMap; %End %ConvertFromTypeCode @@ -146,12 +146,12 @@ typedef QMap<QString, QStringList> KStringListMap; // Get it. - const QMap<QString, QStringList> map = *sipCpp; - QMap<QString, QStringList>::ConstIterator it; + const TQMap<TQString, TQStringList> map = *sipCpp; + TQMap<TQString, TQStringList>::ConstIterator it; for (it = map.begin (); it != map.end (); ++it) { - PyObject *sKey = PyString_FromString ((const char *)((QString)it.key ())); + PyObject *sKey = PyString_FromString ((const char *)((TQString)it.key ())); PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_QStringList, sipTransferObj); if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0)) @@ -171,19 +171,19 @@ typedef QMap<QString, QStringList> KStringListMap; if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + TQMap<TQString, TQStringList> *map = new TQMap<TQString, TQStringList>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - QString *sKey; - QStringList *sData; + TQString *sKey; + TQStringList *sData; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, sKey_state, sData_state; - sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); - sData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + sKey = (TQString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + sData = (TQStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); if (iserr) { diff --git a/sip/kio/chmodjob.sip b/sip/kio/chmodjob.sip index 887a5ff..df93c7a 100644 --- a/sip/kio/chmodjob.sip +++ b/sip/kio/chmodjob.sip @@ -50,6 +50,6 @@ protected: }; // class ChmodJob -KIO::ChmodJob* chmod (const KFileItemList&, int, int, QString, QString, bool, bool = 1); +KIO::ChmodJob* chmod (const KFileItemList&, int, int, TQString, TQString, bool, bool = 1); }; // namespace KIO diff --git a/sip/kio/connection.sip b/sip/kio/connection.sip index 67e535f..4b35123 100644 --- a/sip/kio/connection.sip +++ b/sip/kio/connection.sip @@ -35,12 +35,12 @@ class Task public: int cmd; - QByteArray data; + TQByteArray data; }; // class Task -class Connection : QObject +class Connection : TQObject { %TypeHeaderCode #include <connection.h> @@ -51,14 +51,14 @@ public: Connection (); void init (KSocket*); void init (int, int); - void connect (QObject* = 0, const char* = 0); + void connect (TQObject* = 0, const char* = 0); void close (); int fd_from () const; int fd_to () const; bool inited () const; - void send (int, const QByteArray& = QByteArray ()); - bool sendnow (int, const QByteArray&); -//ig int read (int*, QByteArray&); + void send (int, const TQByteArray& = TQByteArray ()); + bool sendnow (int, const TQByteArray&); +//ig int read (int*, TQByteArray&); void suspend (); void resume (); bool suspended () const; diff --git a/sip/kio/davjob.sip b/sip/kio/davjob.sip index ff140b0..3336f86 100644 --- a/sip/kio/davjob.sip +++ b/sip/kio/davjob.sip @@ -36,20 +36,20 @@ class DavJob : KIO::TransferJob public: - DavJob (const KURL&, int, const QString&, bool); - QDomDocument& response (); + DavJob (const KURL&, int, const TQString&, bool); + TQDomDocument& response (); protected slots: virtual void slotFinished (); - virtual void slotData (const QByteArray&); + virtual void slotData (const TQByteArray&); protected: }; // class DavJob -KIO::DavJob* davPropFind (const KURL&, const QDomDocument&, QString, bool = 1); -KIO::DavJob* davPropPatch (const KURL&, const QDomDocument&, bool = 1); -KIO::DavJob* davSearch (const KURL&, const QString&, const QString&, const QString&, bool = 1); +KIO::DavJob* davPropFind (const KURL&, const TQDomDocument&, TQString, bool = 1); +KIO::DavJob* davPropPatch (const KURL&, const TQDomDocument&, bool = 1); +KIO::DavJob* davSearch (const KURL&, const TQString&, const TQString&, const TQString&, bool = 1); }; // namespace KIO %End diff --git a/sip/kio/defaultprogress.sip b/sip/kio/defaultprogress.sip index 3646086..aedaa56 100644 --- a/sip/kio/defaultprogress.sip +++ b/sip/kio/defaultprogress.sip @@ -37,13 +37,13 @@ public: DefaultProgress (bool = 1); %If ( KDE_3_1_0 - ) - DefaultProgress (QWidget* /TransferThis/, const char* = 0); + DefaultProgress (TQWidget* /TransferThis/, const char* = 0); %If ( KDE_3_2_1 - ) bool keepOpen () const; %If ( KDE_3_4_0 - ) - static QString makePercentString (ulong, KIO::filesize_t, ulong); + static TQString makePercentString (ulong, KIO::filesize_t, ulong); %End %End @@ -60,7 +60,7 @@ public slots: virtual void slotProcessedDirs (KIO::Job*, ulong); virtual void slotSpeed (KIO::Job*, ulong); virtual void slotPercent (KIO::Job*, ulong); - virtual void slotInfoMessage (KIO::Job*, const QString&); + virtual void slotInfoMessage (KIO::Job*, const TQString&); virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); virtual void slotDeleting (KIO::Job*, const KURL&); @@ -71,8 +71,8 @@ public slots: virtual void slotCreatingDir (KIO::Job*, const KURL&); virtual void slotStating (KIO::Job*, const KURL&); - virtual void slotMounting (KIO::Job*, const QString&, const QString&); - virtual void slotUnmounting (KIO::Job*, const QString&); + virtual void slotMounting (KIO::Job*, const TQString&, const TQString&); + virtual void slotUnmounting (KIO::Job*, const TQString&); virtual void slotCanResume (KIO::Job*, KIO::filesize_t); %If ( KDE_3_1_0 - ) diff --git a/sip/kio/forwardingslavebase.sip b/sip/kio/forwardingslavebase.sip index 23f3903..18ea824 100644 --- a/sip/kio/forwardingslavebase.sip +++ b/sip/kio/forwardingslavebase.sip @@ -28,7 +28,7 @@ namespace KIO { -class ForwardingSlaveBase : QObject, KIO::SlaveBase +class ForwardingSlaveBase : TQObject, KIO::SlaveBase { %TypeHeaderCode #include <forwardingslavebase.h> @@ -36,7 +36,7 @@ class ForwardingSlaveBase : QObject, KIO::SlaveBase public: - ForwardingSlaveBase (const QCString&, const QCString&, const QCString&); + ForwardingSlaveBase (const TQCString&, const TQCString&, const TQCString&); virtual void get (const KURL&); virtual void put (const KURL&, int, bool, bool); virtual void stat (const KURL&); @@ -44,7 +44,7 @@ public: virtual void listDir (const KURL&); virtual void mkdir (const KURL&, int); virtual void rename (const KURL&, const KURL&, bool); - virtual void symlink (const QString&, const KURL&, bool); + virtual void symlink (const TQString&, const KURL&, bool); virtual void chmod (const KURL&, int); virtual void copy (const KURL&, const KURL&, int, bool); virtual void del (const KURL&, bool); 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) { diff --git a/sip/kio/job.sip b/sip/kio/job.sip index 2f6339e..511b625 100644 --- a/sip/kio/job.sip +++ b/sip/kio/job.sip @@ -29,20 +29,20 @@ KIO::SimpleJob* mkdir (const KURL&, int = -1); KIO::SimpleJob* rmdir (const KURL&); KIO::SimpleJob* chmod (const KURL&, int); KIO::SimpleJob* rename (const KURL&, const KURL&, bool); -KIO::SimpleJob* symlink (const QString&, const KURL&, bool, bool = 1); -KIO::SimpleJob* special (const KURL&, const QByteArray&, bool = 1); -KIO::SimpleJob* mount (bool, const char*, const QString&, const QString&, bool = 1); -KIO::SimpleJob* unmount (const QString&, bool = 1); +KIO::SimpleJob* symlink (const TQString&, const KURL&, bool, bool = 1); +KIO::SimpleJob* special (const KURL&, const TQByteArray&, bool = 1); +KIO::SimpleJob* mount (bool, const char*, const TQString&, const TQString&, bool = 1); +KIO::SimpleJob* unmount (const TQString&, bool = 1); KIO::SimpleJob* http_update_cache (const KURL&, bool, time_t); KIO::StatJob* stat (const KURL&, bool = 1); KIO::StatJob* stat (const KURL&, bool, short, bool = 1); KIO::TransferJob* get (const KURL&, bool = 0, bool = 1); KIO::TransferJob* put (const KURL&, int, bool, bool, bool = 1); -KIO::TransferJob* http_post (const KURL&, const QByteArray&, bool = 1); +KIO::TransferJob* http_post (const KURL&, const TQByteArray&, bool = 1); %If ( KDE_3_3_0 - ) KIO::StoredTransferJob* storedGet (const KURL&, bool = 0, bool = 1); -KIO::StoredTransferJob* storedPut (const QByteArray&, const KURL&, int, bool, bool, bool = 1); +KIO::StoredTransferJob* storedPut (const TQByteArray&, const KURL&, int, bool, bool, bool = 1); %End KIO::MultiGetJob* multi_get (long, const KURL&, const KIO::MetaData&); diff --git a/sip/kio/jobclasses.sip b/sip/kio/jobclasses.sip index c8f257f..e3bceac 100644 --- a/sip/kio/jobclasses.sip +++ b/sip/kio/jobclasses.sip @@ -26,7 +26,7 @@ namespace KIO { -class Job : QObject +class Job : TQObject { %TypeHeaderCode #include <jobclasses.h> @@ -40,11 +40,11 @@ public: virtual void kill (bool = 1); int error (); int progressId (); - const QString& errorText (); - QString errorString (); - QStringList detailedErrorStrings (const KURL* = 0, int = -1) const; - void showErrorDialog (QWidget* = 0); - void setAutoErrorHandlingEnabled (bool, QWidget* = 0); + const TQString& errorText (); + TQString errorString (); + TQStringList detailedErrorStrings (const KURL* = 0, int = -1) const; + void showErrorDialog (TQWidget* = 0); + void setAutoErrorHandlingEnabled (bool, TQWidget* = 0); bool isAutoErrorHandlingEnabled () const; %If ( KDE_3_5_0 - ) @@ -58,8 +58,8 @@ public: bool isInteractive () const; %End - void setWindow (QWidget*); - QWidget* window () const; + void setWindow (TQWidget*); + TQWidget* window () const; %If ( KDE_3_1_0 - ) void setParentJob (KIO::Job*); @@ -67,12 +67,12 @@ public: %End void setMetaData (const KIO::MetaData&); - void addMetaData (const QString&, const QString&); - void addMetaData (const QMap<QString,QString>&); - void mergeMetaData (const QMap<QString,QString>&); + void addMetaData (const TQString&, const TQString&); + void addMetaData (const TQMap<TQString,TQString>&); + void mergeMetaData (const TQMap<TQString,TQString>&); KIO::MetaData outgoingMetaData () const; KIO::MetaData metaData () const; - QString queryMetaData (const QString&); + TQString queryMetaData (const TQString&); %If ( KDE_3_2_0 - ) KIO::filesize_t getProcessedSize (); @@ -82,10 +82,10 @@ public: signals: void result (KIO::Job*); void canceled (KIO::Job*); - void infoMessage (KIO::Job*, const QString&); + void infoMessage (KIO::Job*, const TQString&); %If ( KDE_3_5_0 - ) - void warning (KIO::Job*, const QString&); + void warning (KIO::Job*, const TQString&); %End void connected (KIO::Job*); @@ -97,7 +97,7 @@ signals: protected slots: virtual void slotResult (KIO::Job*); void slotSpeed (KIO::Job*, ulong); - void slotInfoMessage (KIO::Job*, const QString&); + void slotInfoMessage (KIO::Job*, const TQString&); void slotSpeedTimeout (); protected: @@ -146,7 +146,7 @@ class SimpleJob : KIO::Job public: - SimpleJob (const KURL&, int, const QByteArray&, bool); + SimpleJob (const KURL&, int, const TQByteArray&, bool); const KURL& url () const; virtual void kill (bool = 1); virtual void putOnHold (); @@ -165,15 +165,15 @@ public slots: protected slots: virtual void slotFinished (); - void slotWarning (const QString&); - void slotInfoMessage (const QString&); + void slotWarning (const TQString&); + void slotInfoMessage (const TQString&); void slotConnected (); void slotProcessedSize (KIO::filesize_t); void slotSpeed (ulong); virtual void slotMetaData (const KIO::MetaData&); public slots: - virtual void slotError (int, const QString&); + virtual void slotError (int, const TQString&); protected slots: void slotNeedProgressId (); @@ -206,7 +206,7 @@ class StatJob : KIO::SimpleJob public: - StatJob (const KURL&, int, const QByteArray&, bool); + StatJob (const KURL&, int, const TQByteArray&, bool); void setSide (bool); void setDetails (short); const KIO::UDSEntry& statResult () const; @@ -248,7 +248,7 @@ class MkdirJob : KIO::SimpleJob public: - MkdirJob (const KURL&, int, const QByteArray&, bool); + MkdirJob (const KURL&, int, const TQByteArray&, bool); virtual void start (KIO::Slave*); signals: @@ -279,7 +279,7 @@ class DirectCopyJob : KIO::SimpleJob public: - DirectCopyJob (const KURL&, int, const QByteArray&, bool); + DirectCopyJob (const KURL&, int, const TQByteArray&, bool); virtual void start (KIO::Slave*); signals: @@ -298,7 +298,7 @@ class TransferJob : KIO::SimpleJob public: - TransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); + TransferJob (const KURL&, int, const TQByteArray&, const TQByteArray&, bool); virtual void start (KIO::Slave*); virtual void slotResult (KIO::Job*); void suspend (); @@ -308,32 +308,32 @@ public: %If ( KDE_3_2_0 - ) void setAsyncDataEnabled (bool); - void sendAsyncData (const QByteArray&); + void sendAsyncData (const TQByteArray&); void setReportDataSent (bool); bool reportDataSent (); %End signals: - void data (KIO::Job*, const QByteArray&); - void dataReq (KIO::Job*, QByteArray&); + void data (KIO::Job*, const TQByteArray&); + void dataReq (KIO::Job*, TQByteArray&); void redirection (KIO::Job*, const KURL&); %If ( KDE_3_1_0 - ) void permanentRedirection (KIO::Job*, const KURL&, const KURL&); %End - void mimetype (KIO::Job*, const QString&); + void mimetype (KIO::Job*, const TQString&); void canResume (KIO::Job*, KIO::filesize_t); protected slots: virtual void slotRedirection (const KURL&); virtual void slotFinished (); - virtual void slotData (const QByteArray&); + virtual void slotData (const TQByteArray&); virtual void slotDataReq (); - virtual void slotMimetype (const QString&); + virtual void slotMimetype (const TQString&); virtual void slotNeedSubURLData (); - virtual void slotSubURLData (KIO::Job*, const QByteArray&); + virtual void slotSubURLData (KIO::Job*, const TQByteArray&); %If ( KDE_3_2_0 - ) virtual void slotMetaData (const KIO::MetaData&); @@ -365,9 +365,9 @@ class StoredTransferJob : KIO::TransferJob public: - StoredTransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); - void setData (const QByteArray&); - QByteArray data () const; + StoredTransferJob (const KURL&, int, const TQByteArray&, const TQByteArray&, bool); + void setData (const TQByteArray&); + TQByteArray data () const; }; // class StoredTransferJob @@ -387,15 +387,15 @@ public: void get (long, const KURL&, const KIO::MetaData&); signals: - void data (long, const QByteArray&); - void mimetype (long, const QString&); + void data (long, const TQByteArray&); + void mimetype (long, const TQString&); void result (long); protected slots: virtual void slotRedirection (const KURL&); virtual void slotFinished (); - virtual void slotData (const QByteArray&); - virtual void slotMimetype (const QString&); + virtual void slotData (const TQByteArray&); + virtual void slotMimetype (const TQString&); protected: //igx virtual void virtual_hook (int, void*); @@ -411,8 +411,8 @@ class MimetypeJob : KIO::TransferJob public: - MimetypeJob (const KURL&, int, const QByteArray&, bool); - QString mimetype () const; + MimetypeJob (const KURL&, int, const TQByteArray&, bool); + TQString mimetype () const; virtual void start (KIO::Slave*); protected slots: @@ -449,8 +449,8 @@ public: public slots: void slotStart (); - void slotData (KIO::Job*, const QByteArray&); - void slotDataReq (KIO::Job*, QByteArray&); + void slotData (KIO::Job*, const TQByteArray&); + void slotDataReq (KIO::Job*, TQByteArray&); protected slots: virtual void slotResult (KIO::Job*); @@ -486,7 +486,7 @@ class ListJob : KIO::SimpleJob public: - ListJob (const KURL&, bool, bool = 0, QString = QString ::null , bool = 1); + ListJob (const KURL&, bool, bool = 0, TQString = TQString ::null , bool = 1); virtual void start (KIO::Slave*); %If ( KDE_3_4_3 - ) @@ -536,7 +536,7 @@ class CopyInfo public: KURL uSource; KURL uDest; - QString linkDest; + TQString linkDest; mode_t permissions; time_t ctime; time_t mtime; @@ -580,18 +580,18 @@ signals: void totalDirs (KIO::Job*, ulong); %If ( KDE_3_2_0 - ) - void aboutToCreate (KIO::Job*, const QValueList<KIO::CopyInfo>&); + void aboutToCreate (KIO::Job*, const TQValueList<KIO::CopyInfo>&); %End void processedFiles (KIO::Job*, ulong); void processedDirs (KIO::Job*, ulong); void copying (KIO::Job*, const KURL&, const KURL&); - void linking (KIO::Job*, const QString&, const KURL&); + void linking (KIO::Job*, const TQString&, const KURL&); void moving (KIO::Job*, const KURL&, const KURL&); void creatingDir (KIO::Job*, const KURL&); void renamed (KIO::Job*, const KURL&, const KURL&); void copyingDone (KIO::Job*, const KURL&, const KURL&, bool, bool); - void copyingLinkDone (KIO::Job*, const KURL&, const QString&, const KURL&); + void copyingLinkDone (KIO::Job*, const KURL&, const TQString&, const KURL&); protected: @@ -679,7 +679,7 @@ protected: -%MappedType QValueList<KIO::CopyInfo> +%MappedType TQValueList<KIO::CopyInfo> //converts a Python list of KIO::CopyInfo { %TypeHeaderCode @@ -695,11 +695,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KIO::CopyInfo> *cpplist = (QValueList<KIO::CopyInfo> *)sipCpp; + TQValueList<KIO::CopyInfo> *cpplist = (TQValueList<KIO::CopyInfo> *)sipCpp; PyObject *inst; // Get it. - QValueList<KIO::CopyInfo>::Iterator it; + TQValueList<KIO::CopyInfo>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KIO::CopyInfo(*it), sipType_KIO_CopyInfo, NULL)) == NULL) @@ -718,7 +718,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KIO::CopyInfo> *cpplist = new QValueList<KIO::CopyInfo>; + TQValueList<KIO::CopyInfo> *cpplist = new TQValueList<KIO::CopyInfo>; PyObject *elem; KIO::CopyInfo *cpp; diff --git a/sip/kio/kacl.sip b/sip/kio/kacl.sip index d7d7fe2..8997ce3 100644 --- a/sip/kio/kacl.sip +++ b/sip/kio/kacl.sip @@ -34,7 +34,7 @@ class KACL public: - KACL (const QString&); + KACL (const TQString&); KACL (const KACL&); KACL (mode_t); KACL (); @@ -51,16 +51,16 @@ public: bool isExtended () const; ushort maskPermissions (bool&) const; bool setMaskPermissions (ushort); - ushort namedUserPermissions (const QString&, bool*) const; - bool setNamedUserPermissions (const QString&, ushort); + ushort namedUserPermissions (const TQString&, bool*) const; + bool setNamedUserPermissions (const TQString&, ushort); ACLUserPermissionsList allUserPermissions () const; bool setAllUserPermissions (const ACLUserPermissionsList&); - ushort namedGroupPermissions (const QString&, bool*) const; - bool setNamedGroupPermissions (const QString&, ushort); + ushort namedGroupPermissions (const TQString&, bool*) const; + bool setNamedGroupPermissions (const TQString&, ushort); ACLGroupPermissionsList allGroupPermissions () const; bool setAllGroupPermissions (const ACLGroupPermissionsList&); - bool setACL (const QString&); - QString asString () const; + bool setACL (const TQString&); + TQString asString () const; protected: virtual void virtual_hook (int, void*); @@ -71,24 +71,24 @@ protected: %If ( KDE_3_5_0 - ) -typedef QPair<QString,unsigned short> ACLUserPermissions; -typedef QValueList<ACLUserPermissions> ACLUserPermissionsList; -//igx typedef QValueListIterator<ACLUserPermissions> ACLUserPermissionsIterator; -//igx typedef QValueListConstIterator<ACLUserPermissions> ACLUserPermissionsConstIterator; -//igx typedef QPair<QString,unsigned short> ACLGroupPermissions; -//igx typedef QValueList<ACLGroupPermissions> ACLGroupPermissionsList; -//igx typedef QValueListIterator<ACLGroupPermissions> ACLGroupPermissionsIterator; -//igx typedef QValueListConstIterator<ACLGroupPermissions> ACLGroupPermissionsConstIterator; -//igx QDataStream& operator << (QDataStream&, const KACL&); -//igx QDataStream& operator >> (QDataStream&, KACL&); +typedef TQPair<TQString,unsigned short> ACLUserPermissions; +typedef TQValueList<ACLUserPermissions> ACLUserPermissionsList; +//igx typedef TQValueListIterator<ACLUserPermissions> ACLUserPermissionsIterator; +//igx typedef TQValueListConstIterator<ACLUserPermissions> ACLUserPermissionsConstIterator; +//igx typedef TQPair<TQString,unsigned short> ACLGroupPermissions; +//igx typedef TQValueList<ACLGroupPermissions> ACLGroupPermissionsList; +//igx typedef TQValueListIterator<ACLGroupPermissions> ACLGroupPermissionsIterator; +//igx typedef TQValueListConstIterator<ACLGroupPermissions> ACLGroupPermissionsConstIterator; +//igx TQDataStream& operator << (TQDataStream&, const KACL&); +//igx TQDataStream& operator >> (TQDataStream&, KACL&); //force typedef ACLUserPermissionsList ACLGroupPermissionsList; //end %End -%MappedType QValueList<ACLUserPermissions> -//converts a Python list of ACLUserPermissions tuples (QString, int) +%MappedType TQValueList<ACLUserPermissions> +//converts a Python list of ACLUserPermissions tuples (TQString, int) { %TypeHeaderCode #include <qvaluelist.h> @@ -105,16 +105,16 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList; if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<ACLUserPermissions> *cpplist = (QValueList<ACLUserPermissions> *)sipCpp; + TQValueList<ACLUserPermissions> *cpplist = (TQValueList<ACLUserPermissions> *)sipCpp; PyObject *inst; // Get it. - QValueList<ACLUserPermissions>::Iterator it; + TQValueList<ACLUserPermissions>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { - QString s = (*it).first; + TQString s = (*it).first; ushort u = (*it).second; - PyObject *pys = sipConvertFromNewType(new QString(s), sipType_QString, sipTransferObj); + PyObject *pys = sipConvertFromNewType(new TQString(s), sipType_QString, sipTransferObj); if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL) || PyList_Append (pylist, inst) < 0) { @@ -133,9 +133,9 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList; if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<ACLUserPermissions> *cpplist = new QValueList<ACLUserPermissions>; + TQValueList<ACLUserPermissions> *cpplist = new TQValueList<ACLUserPermissions>; - QString *p1; + TQString *p1; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) @@ -144,7 +144,7 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList; PyObject *elem = PyList_GET_ITEM (sipPy, i); PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); - p1 = (QString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); + p1 = (TQString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); if (iserr) { diff --git a/sip/kio/kar.sip b/sip/kio/kar.sip index 08560f2..59eca9b 100644 --- a/sip/kio/kar.sip +++ b/sip/kio/kar.sip @@ -34,12 +34,12 @@ class KAr : KArchive public: - KAr (const QString&); - KAr (QIODevice*); - QString fileName (); - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + KAr (const TQString&); + KAr (TQIODevice*); + TQString fileName (); + virtual bool prepareWriting (const TQString&, const TQString&, const TQString&, uint); virtual bool doneWriting (uint); - virtual bool writeDir (const QString&, const QString&, const QString&); + virtual bool writeDir (const TQString&, const TQString&, const TQString&); protected: virtual bool openArchive (int); diff --git a/sip/kio/karchive.sip b/sip/kio/karchive.sip index 45c634b..def99a0 100644 --- a/sip/kio/karchive.sip +++ b/sip/kio/karchive.sip @@ -32,7 +32,7 @@ class KArchive protected: - KArchive (QIODevice*); + KArchive (TQIODevice*); public: virtual bool open (int); @@ -44,31 +44,31 @@ public: bool isOpened () const; int mode () const; - QIODevice* device () const; + TQIODevice* device () const; const KArchiveDirectory* directory () const; %If ( KDE_3_2_0 - ) - bool addLocalFile (const QString&, const QString&); - bool addLocalDirectory (const QString&, const QString&); + bool addLocalFile (const TQString&, const TQString&); + bool addLocalDirectory (const TQString&, const TQString&); %End - virtual bool writeDir (const QString&, const QString&, const QString&) = 0; + virtual bool writeDir (const TQString&, const TQString&, const TQString&) = 0; %If ( KDE_3_2_0 - ) - bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeDir (const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); + bool writeSymLink (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); %End - virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); + virtual bool writeFile (const TQString&, const TQString&, const TQString&, uint, const char*); %If ( KDE_3_2_0 - ) - bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); + bool writeFile (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t, const char*); %End - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint) = 0; + virtual bool prepareWriting (const TQString&, const TQString&, const TQString&, uint) = 0; %If ( KDE_3_2_0 - ) - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool prepareWriting (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); bool writeData (const char*, uint); %End @@ -78,18 +78,18 @@ protected: virtual bool openArchive (int) = 0; virtual bool closeArchive () = 0; virtual KArchiveDirectory* rootDir (); - KArchiveDirectory* findOrCreate (const QString&); - void setDevice (QIODevice*); + KArchiveDirectory* findOrCreate (const TQString&); + void setDevice (TQIODevice*); void setRootDir (KArchiveDirectory*); protected: //igx virtual void virtual_hook (int, void*); %If ( KDE_3_2_0 - ) - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeFile_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); - bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool prepareWriting_impl (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile_impl (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t, const char*); + bool writeDir_impl (const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); bool writeData_impl (const char*, uint); %End @@ -112,14 +112,14 @@ class KArchiveEntry public: - KArchiveEntry (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); - QDateTime datetime () const; + KArchiveEntry (KArchive*, const TQString&, int, int, const TQString&, const TQString&, const TQString&); + TQDateTime datetime () const; int date () const; - QString name () const; + TQString name () const; mode_t permissions () const; - QString user () const; - QString group () const; - QString symlink () const; + TQString user () const; + TQString group () const; + TQString symlink () const; virtual bool isFile () const; virtual bool isDirectory () const; @@ -140,7 +140,7 @@ class KArchiveFile : KArchiveEntry public: - KArchiveFile (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&, int, int); + KArchiveFile (KArchive*, const TQString&, int, int, const TQString&, const TQString&, const TQString&, int, int); int position () const; int size () const; @@ -148,12 +148,12 @@ public: void setSize (int); %End - virtual QByteArray data () const; - QIODevice* device () const; + virtual TQByteArray data () const; + TQIODevice* device () const; virtual bool isFile () const; %If ( KDE_3_1_0 - ) - void copyTo (const QString&) const; + void copyTo (const TQString&) const; %End @@ -171,14 +171,14 @@ class KArchiveDirectory : KArchiveEntry public: - KArchiveDirectory (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); - QStringList entries () const; - KArchiveEntry* entry (QString); + KArchiveDirectory (KArchive*, const TQString&, int, int, const TQString&, const TQString&, const TQString&); + TQStringList entries () const; + KArchiveEntry* entry (TQString); void addEntry (KArchiveEntry*); virtual bool isDirectory () const; %If ( KDE_3_1_0 - ) - void copyTo (const QString&, bool = 1) const; + void copyTo (const TQString&, bool = 1) const; %End diff --git a/sip/kio/kautomount.sip b/sip/kio/kautomount.sip index 5a41740..924d670 100644 --- a/sip/kio/kautomount.sip +++ b/sip/kio/kautomount.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KAutoMount : QObject +class KAutoMount : TQObject { %TypeHeaderCode #include <kautomount.h> @@ -32,7 +32,7 @@ class KAutoMount : QObject public: - KAutoMount (bool, const QString&, const QString&, const QString&, const QString&, bool = 1); + KAutoMount (bool, const TQString&, const TQString&, const TQString&, const TQString&, bool = 1); signals: void finished (); @@ -51,7 +51,7 @@ private: }; // class KAutoMount -class KAutoUnmount : QObject +class KAutoUnmount : TQObject { %TypeHeaderCode #include <kautomount.h> @@ -59,7 +59,7 @@ class KAutoUnmount : QObject public: - KAutoUnmount (const QString&, const QString&); + KAutoUnmount (const TQString&, const TQString&); signals: void finished (); diff --git a/sip/kio/kdatatool.sip b/sip/kio/kdatatool.sip index 3473e4d..8395429 100644 --- a/sip/kio/kdatatool.sip +++ b/sip/kio/kdatatool.sip @@ -35,19 +35,19 @@ public: KDataToolInfo (); KDataToolInfo (const KService::Ptr&, KInstance*); KDataToolInfo (const KDataToolInfo&); - QString dataType () const; - QStringList mimeTypes () const; + TQString dataType () const; + TQStringList mimeTypes () const; bool isReadOnly () const; - QPixmap icon () const; - QPixmap miniIcon () const; - QString iconName () const; - QStringList userCommands () const; - QStringList commands () const; - KDataTool* createTool (QObject* /Transfer/ = 0, const char* = 0) const; + TQPixmap icon () const; + TQPixmap miniIcon () const; + TQString iconName () const; + TQStringList userCommands () const; + TQStringList commands () const; + KDataTool* createTool (TQObject* /Transfer/ = 0, const char* = 0) const; KService::Ptr service () const; KInstance* instance () const; bool isValid () const; - static QValueList<KDataToolInfo> query (const QString&, const QString&, KInstance*); + static TQValueList<KDataToolInfo> query (const TQString&, const TQString&, KInstance*); }; // class KDataToolInfo @@ -60,11 +60,11 @@ class KDataToolAction : KAction public: - KDataToolAction (const QString&, const KDataToolInfo&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); - static QPtrList<KAction> dataToolActionList (const QValueList<KDataToolInfo>&, const QObject*, const char*); + KDataToolAction (const TQString&, const KDataToolInfo&, const TQString&, TQObject* /TransferThis/ = 0, const char* = 0); + static TQPtrList<KAction> dataToolActionList (const TQValueList<KDataToolInfo>&, const TQObject*, const char*); signals: - void toolActivated (const KDataToolInfo&, const QString&); + void toolActivated (const KDataToolInfo&, const TQString&); protected: virtual void slotActivated (); @@ -75,7 +75,7 @@ protected: }; // class KDataToolAction -class KDataTool : QObject +class KDataTool : TQObject { %TypeHeaderCode #include <kdatatool.h> @@ -83,10 +83,10 @@ class KDataTool : QObject public: - KDataTool (QObject* /TransferThis/ = 0, const char* = 0); + KDataTool (TQObject* /TransferThis/ = 0, const char* = 0); void setInstance (KInstance*); KInstance* instance () const; - virtual bool run (const QString&, void*, const QString&, const QString&) = 0; + virtual bool run (const TQString&, void*, const TQString&, const TQString&) = 0; protected: //igx virtual void virtual_hook (int, void*); @@ -95,7 +95,7 @@ protected: -%MappedType QValueList<KDataToolInfo> +%MappedType TQValueList<KDataToolInfo> //converts a Python list of KDataToolInfo { %TypeHeaderCode @@ -117,11 +117,11 @@ protected: // Get it. - QValueList<KDataToolInfo> *dlist = (QValueList<KDataToolInfo> *)sipCpp; + TQValueList<KDataToolInfo> *dlist = (TQValueList<KDataToolInfo> *)sipCpp; PyObject *inst; - QValueList<KDataToolInfo>::Iterator it; + TQValueList<KDataToolInfo>::Iterator it; for( it = dlist->begin(); it != dlist->end(); ++it ) { if ((inst = sipConvertFromNewType(new KDataToolInfo(*it), sipType_KDataToolInfo, NULL)) == NULL @@ -142,7 +142,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KDataToolInfo> *dList = new QValueList<KDataToolInfo>; + TQValueList<KDataToolInfo> *dList = new TQValueList<KDataToolInfo>; PyObject *elem; KDataToolInfo *d; diff --git a/sip/kio/kdcopservicestarter.sip b/sip/kio/kdcopservicestarter.sip index fd1684c..ec9bf56 100644 --- a/sip/kio/kdcopservicestarter.sip +++ b/sip/kio/kdcopservicestarter.sip @@ -35,8 +35,8 @@ class KDCOPServiceStarter public: static KDCOPServiceStarter* self (); - int findServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); - virtual int startServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); + int findServiceFor (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , TQString* = 0, TQCString* = 0, int = 0); + virtual int startServiceFor (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , TQString* = 0, TQCString* = 0, int = 0); protected: KDCOPServiceStarter (); diff --git a/sip/kio/kdirlister.sip b/sip/kio/kdirlister.sip index 1526279..e48bea0 100644 --- a/sip/kio/kdirlister.sip +++ b/sip/kio/kdirlister.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KDirLister : QObject +class KDirLister : TQObject { %TypeHeaderCode #include <kdirlister.h> @@ -39,7 +39,7 @@ public: bool autoUpdate () const; virtual void setAutoUpdate (bool); bool autoErrorHandlingEnabled () const; - void setAutoErrorHandlingEnabled (bool, QWidget* /Transfer/); + void setAutoErrorHandlingEnabled (bool, TQWidget* /Transfer/); bool showingDotFiles () const; virtual void setShowingDotFiles (bool); bool dirOnlyMode () const; @@ -56,23 +56,23 @@ public: KFileItem* rootItem () const; virtual KFileItem* findByURL (const KURL&) const; KFileItem* find (const KURL&) const; - virtual KFileItem* findByName (const QString&) const; - virtual void setNameFilter (const QString&); - const QString& nameFilter () const; - virtual void setMimeFilter (const QStringList&); + virtual KFileItem* findByName (const TQString&) const; + virtual void setNameFilter (const TQString&); + const TQString& nameFilter () const; + virtual void setMimeFilter (const TQStringList&); %If ( KDE_3_1_0 - ) - void setMimeExcludeFilter (const QStringList&); + void setMimeExcludeFilter (const TQStringList&); %End virtual void clearMimeFilter (); - const QStringList& mimeFilters () const; - bool matchesFilter (const QString&) const; - bool matchesMimeFilter (const QString&) const; + const TQStringList& mimeFilters () const; + bool matchesFilter (const TQString&) const; + bool matchesMimeFilter (const TQString&) const; %If ( KDE_3_1_0 - ) - void setMainWindow (QWidget*); - QWidget* mainWindow (); + void setMainWindow (TQWidget*); + TQWidget* mainWindow (); enum WhichItems { @@ -99,7 +99,7 @@ signals: void itemsFilteredByMime (const KFileItemList&); void deleteItem (KFileItem*); void refreshItems (const KFileItemList&); - void infoMessage (const QString&); + void infoMessage (const TQString&); void percent (int); void totalSize (KIO::filesize_t); void processedSize (KIO::filesize_t); @@ -108,11 +108,11 @@ signals: protected: virtual bool matchesFilter (const KFileItem*) const; virtual bool matchesMimeFilter (const KFileItem*) const; - virtual bool doNameFilter (const QString&, const QPtrList<QRegExp>&) const; - virtual bool doMimeFilter (const QString&, const QStringList&) const; + virtual bool doNameFilter (const TQString&, const TQPtrList<TQRegExp>&) const; + virtual bool doMimeFilter (const TQString&, const TQStringList&) const; %If ( KDE_3_1_0 - ) - bool doMimeExcludeFilter (const QString&, const QStringList&) const; + bool doMimeExcludeFilter (const TQString&, const TQStringList&) const; %End virtual bool validURL (const KURL&) const; @@ -145,7 +145,7 @@ protected: // Get it. - QPtrList<KFileItem> *cpplist = (QPtrList<KFileItem> *)sipCpp; + TQPtrList<KFileItem> *cpplist = (TQPtrList<KFileItem> *)sipCpp; KFileItem *cpp; PyObject *inst; @@ -167,7 +167,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<KFileItem> *cpplist = new QPtrList<KFileItem>; + TQPtrList<KFileItem> *cpplist = new TQPtrList<KFileItem>; PyObject *elem; KFileItem *cpp; @@ -195,8 +195,8 @@ protected: }; -%MappedType QPtrList<QRegExp> -//converts a Python list of QRegExp +%MappedType TQPtrList<TQRegExp> +//converts a Python list of TQRegExp { %TypeHeaderCode #include <qregexp.h> @@ -215,8 +215,8 @@ protected: // Get it. - QPtrList<QRegExp> *cpplist = (QPtrList<QRegExp> *)sipCpp; - QRegExp *cpp; + TQPtrList<TQRegExp> *cpplist = (TQPtrList<TQRegExp> *)sipCpp; + TQRegExp *cpp; PyObject *inst; // the loop depends on the type of iterator the tmeplate makes available @@ -237,16 +237,16 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<QRegExp> *cpplist = new QPtrList<QRegExp>; + TQPtrList<TQRegExp> *cpplist = new TQPtrList<TQRegExp>; PyObject *elem; - QRegExp *cpp; + TQRegExp *cpp; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) { elem = PyList_GET_ITEM (sipPy, i); - cpp = (QRegExp *)sipForceConvertToType(elem, sipType_QRegExp, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + cpp = (TQRegExp *)sipForceConvertToType(elem, sipType_QRegExp, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { diff --git a/sip/kio/kdirnotify.sip b/sip/kio/kdirnotify.sip index 1f3fbb9..2fc96d0 100644 --- a/sip/kio/kdirnotify.sip +++ b/sip/kio/kdirnotify.sip @@ -34,9 +34,9 @@ class KDirNotify : DCOPObject public: %If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); + virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); + TQCStringList functions (); + TQCStringList interfaces (); %End diff --git a/sip/kio/kdirwatch.sip b/sip/kio/kdirwatch.sip index 41867dd..d94b9fb 100644 --- a/sip/kio/kdirwatch.sip +++ b/sip/kio/kdirwatch.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KDirWatch : QObject +class KDirWatch : TQObject { %TypeHeaderCode #include <kdirwatch.h> @@ -32,22 +32,22 @@ class KDirWatch : QObject public: - KDirWatch (QObject* /TransferThis/ = 0, const char* = 0); - void addDir (const QString&, bool = 0, bool = 0); - void addFile (const QString&); - QDateTime ctime (const QString&); - void removeDir (const QString&); - void removeFile (const QString&); - bool stopDirScan (const QString&); - bool restartDirScan (const QString&); + KDirWatch (TQObject* /TransferThis/ = 0, const char* = 0); + void addDir (const TQString&, bool = 0, bool = 0); + void addFile (const TQString&); + TQDateTime ctime (const TQString&); + void removeDir (const TQString&); + void removeFile (const TQString&); + bool stopDirScan (const TQString&); + bool restartDirScan (const TQString&); void startScan (bool = 0, bool = 0); void stopScan (); bool isStopped (); - bool contains (const QString&) const; + bool contains (const TQString&) const; static void statistics (); - void setCreated (const QString&); - void setDirty (const QString&); - void setDeleted (const QString&); + void setCreated (const TQString&); + void setDirty (const TQString&); + void setDeleted (const TQString&); %If ( KDE_3_5_1 - ) @@ -74,9 +74,9 @@ public: signals: - void dirty (const QString&); - void created (const QString&); - void deleted (const QString&); + void dirty (const TQString&); + void created (const TQString&); + void deleted (const TQString&); public: diff --git a/sip/kio/kemailsettings.sip b/sip/kio/kemailsettings.sip index 8041d0b..95c9930 100644 --- a/sip/kio/kemailsettings.sip +++ b/sip/kio/kemailsettings.sip @@ -64,19 +64,19 @@ public: }; KEMailSettings (); - QStringList profiles () const; - QString currentProfileName () const; - void setProfile (const QString&); - QString defaultProfileName () const; - void setDefault (const QString&); - QString getSetting (KEMailSettings::Setting); - void setSetting (KEMailSettings::Setting, const QString&); + TQStringList profiles () const; + TQString currentProfileName () const; + void setProfile (const TQString&); + TQString defaultProfileName () const; + void setDefault (const TQString&); + TQString getSetting (KEMailSettings::Setting); + void setSetting (KEMailSettings::Setting, const TQString&); public: %If ( - KDE_3_2_0 ) -//ig QString getExtendedSetting (KEMailSettings::Extension, const QString&); -//ig void setExtendedSetting (KEMailSettings::Extension, const QString&, const QString&); +//ig TQString getExtendedSetting (KEMailSettings::Extension, const TQString&); +//ig void setExtendedSetting (KEMailSettings::Extension, const TQString&, const TQString&); %End diff --git a/sip/kio/kfilefilter.sip b/sip/kio/kfilefilter.sip index cbe6561..481f004 100644 --- a/sip/kio/kfilefilter.sip +++ b/sip/kio/kfilefilter.sip @@ -55,12 +55,12 @@ public: bool filterSpecials () const; %If ( KDE_3_1_0 - ) - void setNameFilters (const QString&, bool, const QChar& = ' '); + void setNameFilters (const TQString&, bool, const TQChar& = ' '); %End - virtual void setNameFilters (const QString&); - virtual void setMimeFilters (const QStringList&); - QStringList mimeFilters () const; + virtual void setNameFilters (const TQString&); + virtual void setMimeFilters (const TQStringList&); + TQStringList mimeFilters () const; virtual void setModeFilter (mode_t); mode_t modeFilter () const; virtual bool passesFilter (const KFileItem*) const; @@ -73,7 +73,7 @@ protected: public: %If ( - KDE_3_2_0 ) -//ig QString nameFilters () const; +//ig TQString nameFilters () const; %End diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip index 3bba31c..985efdf 100644 --- a/sip/kio/kfileitem.sip +++ b/sip/kio/kfileitem.sip @@ -40,7 +40,7 @@ public: KFileItem (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); KFileItem (mode_t, mode_t, const KURL&, bool = 0); - KFileItem (const KURL&, const QString&, mode_t); + KFileItem (const KURL&, const TQString&, mode_t); KFileItem (const KFileItem&); void refresh (); void refreshMimeType (); @@ -48,11 +48,11 @@ public: void setURL (const KURL&); %If ( KDE_3_2_0 - ) - void setName (const QString&); + void setName (const TQString&); %End mode_t permissions () const; - QString permissionsString () const; + TQString permissionsString () const; %If ( KDE_3_5_0 - ) bool hasExtendedACL () const; @@ -61,8 +61,8 @@ public: %End mode_t mode () const; - QString user () const; - QString group () const; + TQString user () const; + TQString group () const; bool isLink () const; bool isDir () const; bool isFile () const; @@ -77,10 +77,10 @@ public: bool isHidden () const; %End - QString linkDest () const; + TQString linkDest () const; %If ( KDE_3_4_0 - ) - QString localPath () const; + TQString localPath () const; %End KIO::filesize_t size () const; @@ -95,20 +95,20 @@ public: time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; %End - QString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; + TQString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; bool isLocalFile () const; - const QString& text () const; - const QString& name (bool = 0) const; - QString mimetype () const; + const TQString& text () const; + const TQString& name (bool = 0) const; + TQString mimetype () const; KMimeType::Ptr determineMimeType (); KMimeType::Ptr mimeTypePtr (); bool isMimeTypeKnown () const; - QString mimeComment (); - QString iconName (); - QPixmap pixmap (int, int = 0) const; + TQString mimeComment (); + TQString iconName (); + TQPixmap pixmap (int, int = 0) const; int overlays () const; - QString getStatusBarInfo (); - QString getToolTipText (int = 6); + TQString getStatusBarInfo (); + TQString getToolTipText (int = 6); bool acceptsDrops (); void run (); const KIO::UDSEntry& entry () const; @@ -123,7 +123,7 @@ public: %If ( KDE_3_5_0 - ) void setFileMode (mode_t); - void setMimeType (const QString&); + void setMimeType (const TQString&); %End const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; @@ -146,26 +146,26 @@ protected: void readUDSEntry (bool); %End - QString parsePermissions (mode_t) const; + TQString parsePermissions (mode_t) const; protected: //igx virtual void virtual_hook (int, void*); }; // class KFileItem -typedef QPtrList<KFileItem> KFileItemList; +typedef TQPtrList<KFileItem> KFileItemList; %If ( KDE_3_1_4 - ) -//ig typedef QPtrListIterator<KFileItem> KFileItemListIterator; +//ig typedef TQPtrListIterator<KFileItem> KFileItemListIterator; %If ( KDE_3_2_0 - ) -//igx QDataStream& operator << (QDataStream&, const KFileItem&); -//igx QDataStream& operator >> (QDataStream&, KFileItem&); +//igx TQDataStream& operator << (TQDataStream&, const KFileItem&); +//igx TQDataStream& operator >> (TQDataStream&, KFileItem&); %End %End %If ( - KDE_3_1_4 ) -//ig typedef QListIterator<KFileItem> KFileItemListIterator; +//ig typedef TQListIterator<KFileItem> KFileItemListIterator; %End diff --git a/sip/kio/kfilemetainfo.sip b/sip/kio/kfilemetainfo.sip index b0418be..a5d8b78 100644 --- a/sip/kio/kfilemetainfo.sip +++ b/sip/kio/kfilemetainfo.sip @@ -94,16 +94,16 @@ public: { public: - QStringList supportedKeys () const; - const QString& name () const; - const QString& translatedName () const; - const KFileMimeTypeInfo::ItemInfo* itemInfo (const QString&) const; + TQStringList supportedKeys () const; + const TQString& name () const; + const TQString& translatedName () const; + const KFileMimeTypeInfo::ItemInfo* itemInfo (const TQString&) const; uint attributes () const; bool supportsVariableKeys () const; const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; private: - GroupInfo (const QString&, const QString&); + GroupInfo (const TQString&, const TQString&); }; // class GroupInfo @@ -115,44 +115,44 @@ public: public: ItemInfo (); - const QString& prefix () const; - const QString& suffix () const; - QVariant::Type type () const; - const QString& key () const; + const TQString& prefix () const; + const TQString& suffix () const; + TQVariant::Type type () const; + const TQString& key () const; %If ( KDE_3_1_0 - ) - QString string (const QVariant&, bool = 1) const; + TQString string (const TQVariant&, bool = 1) const; %End bool isVariableItem () const; - const QString& translatedKey () const; + const TQString& translatedKey () const; uint attributes () const; uint hint () const; uint unit () const; private: - ItemInfo (const QString&, const QString&, QVariant::Type); + ItemInfo (const TQString&, const TQString&, TQVariant::Type); }; // class ItemInfo public: - QValidator* createValidator (const QString&, const QString&, QObject* /Transfer/ = 0, const char* = 0) const; - QStringList supportedGroups () const; - QStringList translatedGroups () const; - QStringList preferredGroups () const; - QString mimeType () const; - const KFileMimeTypeInfo::GroupInfo* groupInfo (const QString&) const; - QStringList supportedKeys () const; - QStringList preferredKeys () const; - KFileMimeTypeInfo::GroupInfo* addGroupInfo (const QString&, const QString&); - QString m_translatedName; - QStringList m_supportedKeys; + TQValidator* createValidator (const TQString&, const TQString&, TQObject* /Transfer/ = 0, const char* = 0) const; + TQStringList supportedGroups () const; + TQStringList translatedGroups () const; + TQStringList preferredGroups () const; + TQString mimeType () const; + const KFileMimeTypeInfo::GroupInfo* groupInfo (const TQString&) const; + TQStringList supportedKeys () const; + TQStringList preferredKeys () const; + KFileMimeTypeInfo::GroupInfo* addGroupInfo (const TQString&, const TQString&); + TQString m_translatedName; + TQStringList m_supportedKeys; uint m_attr; -//ig QDict<ItemInfo> m_itemDict; +//ig TQDict<ItemInfo> m_itemDict; protected: - KFileMimeTypeInfo (const QString&); + KFileMimeTypeInfo (const TQString&); public: @@ -202,20 +202,20 @@ public: typedef KFileMimeTypeInfo::Hint Hint; //ig typedef KFileMimeTypeInfo::Unit Unit; typedef KFileMimeTypeInfo::Attributes Attributes; - KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const QString&, const QVariant&); + KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const TQString&, const TQVariant&); KFileMetaInfoItem (const KFileMetaInfoItem&); KFileMetaInfoItem (); - QString key () const; - QString translatedKey () const; - const QVariant& value () const; - QString string (bool = 1) const; - bool setValue (const QVariant&); - QVariant::Type type () const; + TQString key () const; + TQString translatedKey () const; + const TQVariant& value () const; + TQString string (bool = 1) const; + bool setValue (const TQVariant&); + TQVariant::Type type () const; bool isEditable () const; bool isRemoved () const; bool isModified () const; - QString prefix () const; - QString suffix () const; + TQString prefix () const; + TQString suffix () const; uint hint () const; //ig uint unit () const; uint attributes () const; @@ -242,7 +242,7 @@ class KFileMetaInfoGroup public: - KFileMetaInfoGroup (const QString&, const KFileMimeTypeInfo*); + KFileMetaInfoGroup (const TQString&, const KFileMimeTypeInfo*); KFileMetaInfoGroup (const KFileMetaInfoGroup&); KFileMetaInfoGroup (); bool isValid () const; @@ -252,11 +252,11 @@ public: bool isModified () const; %If ( KDE_3_1_4 - ) - KFileMetaInfoItem operator [] (const QString&) const; + KFileMetaInfoItem operator [] (const TQString&) const; %MethodCode //returns (KFileMetaInfoItem) -//takes key | (QString) - KFileMetaInfoItem sipResObj = ((*sipCpp) [*static_cast<const QString*>(a0)]); +//takes key | (TQString) + KFileMetaInfoItem sipResObj = ((*sipCpp) [*static_cast<const TQString*>(a0)]); sipRes = &sipResObj; %End @@ -264,28 +264,28 @@ public: %End - KFileMetaInfoItem item (const QString&) const; + KFileMetaInfoItem item (const TQString&) const; KFileMetaInfoItem item (uint) const; - const QVariant value (const QString&) const; - QStringList supportedKeys () const; + const TQVariant value (const TQString&) const; + TQStringList supportedKeys () const; bool supportsVariableKeys () const; - bool contains (const QString&) const; - QStringList keys () const; - QStringList preferredKeys () const; - KFileMetaInfoItem addItem (const QString&); - bool removeItem (const QString&); - QStringList removedItems (); - QString name () const; + bool contains (const TQString&) const; + TQStringList keys () const; + TQStringList preferredKeys () const; + KFileMetaInfoItem addItem (const TQString&); + bool removeItem (const TQString&); + TQStringList removedItems (); + TQString name () const; %If ( KDE_3_2_0 - ) - QString translatedName () const; + TQString translatedName () const; %End uint attributes () const; protected: void setAdded (); - KFileMetaInfoItem appendItem (const QString&, const QVariant&); + KFileMetaInfoItem appendItem (const TQString&, const TQVariant&); void ref (); void deref (); @@ -316,52 +316,52 @@ public: Everything }; - KFileMetaInfo (const QString&, const QString& = QString ::null , uint = Fastest ); + KFileMetaInfo (const TQString&, const TQString& = TQString ::null , uint = Fastest ); %If ( KDE_3_2_0 - ) - KFileMetaInfo (const KURL&, const QString& = QString ::null , uint = Fastest ); + KFileMetaInfo (const KURL&, const TQString& = TQString ::null , uint = Fastest ); %End KFileMetaInfo (); KFileMetaInfo (const KFileMetaInfo&); - QStringList groups () const; - QStringList supportedGroups () const; - QStringList preferredGroups () const; - QStringList preferredKeys () const; - QStringList supportedKeys () const; - QStringList editableGroups () const; - KFileMetaInfoItem item (const QString&) const; + TQStringList groups () const; + TQStringList supportedGroups () const; + TQStringList preferredGroups () const; + TQStringList preferredKeys () const; + TQStringList supportedKeys () const; + TQStringList editableGroups () const; + KFileMetaInfoItem item (const TQString&) const; KFileMetaInfoItem item (const Hint) const; - KFileMetaInfoItem saveItem (const QString&, const QString& = QString ::null , bool = 1); - KFileMetaInfoGroup group (const QString&) const; + KFileMetaInfoItem saveItem (const TQString&, const TQString& = TQString ::null , bool = 1); + KFileMetaInfoGroup group (const TQString&) const; %If ( KDE_3_1_4 - ) - KFileMetaInfoGroup operator [] (const QString&) const; + KFileMetaInfoGroup operator [] (const TQString&) const; %MethodCode //returns (KFileMetaInfoGroup) -//takes key | (QString) - KFileMetaInfoGroup sipResObj = ((*sipCpp) [*static_cast<const QString*>(a0)]); +//takes key | (TQString) + KFileMetaInfoGroup sipResObj = ((*sipCpp) [*static_cast<const TQString*>(a0)]); sipRes = &sipResObj; %End %End - bool addGroup (const QString&); - bool removeGroup (const QString&); - QStringList removedGroups (); + bool addGroup (const TQString&); + bool removeGroup (const TQString&); + TQStringList removedGroups (); bool applyChanges (); %If ( KDE_3_5_3 - ) - bool applyChanges (const QString&); + bool applyChanges (const TQString&); %End - bool contains (const QString&) const; - bool containsGroup (const QString&) const; - const QVariant value (const QString&) const; + bool contains (const TQString&) const; + bool containsGroup (const TQString&) const; + const TQVariant value (const TQString&) const; bool isValid () const; bool isEmpty () const; - QString mimeType () const; - QString path () const; + TQString mimeType () const; + TQString path () const; %If ( KDE_3_2_0 - ) KURL url () const; @@ -369,7 +369,7 @@ public: protected: - KFileMetaInfoGroup appendGroup (const QString&); + KFileMetaInfoGroup appendGroup (const TQString&); KFilePlugin* plugin () const; void ref (); void deref (); @@ -377,7 +377,7 @@ protected: }; // class KFileMetaInfo -class KFilePlugin : QObject +class KFilePlugin : TQObject { %TypeHeaderCode #include <kfilemetainfo.h> @@ -385,24 +385,24 @@ class KFilePlugin : QObject public: - KFilePlugin (QObject* /TransferThis/, const char*, const QStringList&); + KFilePlugin (TQObject* /TransferThis/, const char*, const TQStringList&); virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; virtual bool writeInfo (const KFileMetaInfo&) const; - virtual QValidator* createValidator (const QString&, const QString&, const QString&, QObject*, const char*) const; + virtual TQValidator* createValidator (const TQString&, const TQString&, const TQString&, TQObject*, const char*) const; protected: - KFileMimeTypeInfo* addMimeTypeInfo (const QString&); - KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const QString&, const QString&) const; + KFileMimeTypeInfo* addMimeTypeInfo (const TQString&); + KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const TQString&, const TQString&) const; void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; - void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, QVariant::Type, uint) const; - KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const QString&, const QString&, QVariant::Type); + void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, TQVariant::Type, uint) const; + KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const TQString&, const TQString&, TQVariant::Type); void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); void setHint (KFileMimeTypeInfo::ItemInfo*, uint); void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); - void setPrefix (KFileMimeTypeInfo::ItemInfo*, const QString&); - void setSuffix (KFileMimeTypeInfo::ItemInfo*, const QString&); - KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const QString&); - void appendItem (KFileMetaInfoGroup&, const QString&, QVariant); + void setPrefix (KFileMimeTypeInfo::ItemInfo*, const TQString&); + void setSuffix (KFileMimeTypeInfo::ItemInfo*, const TQString&); + KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const TQString&); + void appendItem (KFileMetaInfoGroup&, const TQString&, TQVariant); protected: //igx virtual void virtual_hook (int, void*); @@ -410,7 +410,7 @@ protected: }; // class KFilePlugin -class KFileMetaInfoProvider : QObject +class KFileMetaInfoProvider : TQObject { %TypeHeaderCode #include <kfilemetainfo.h> @@ -419,23 +419,23 @@ class KFileMetaInfoProvider : QObject public: static KFileMetaInfoProvider* self (); - KFilePlugin* plugin (const QString&); + KFilePlugin* plugin (const TQString&); %If ( KDE_3_4_0 - ) - KFilePlugin* plugin (const QString&, const QString&); + KFilePlugin* plugin (const TQString&, const TQString&); %End - const KFileMimeTypeInfo* mimeTypeInfo (const QString&); + const KFileMimeTypeInfo* mimeTypeInfo (const TQString&); %If ( KDE_3_4_0 - ) - const KFileMimeTypeInfo* mimeTypeInfo (const QString&, const QString&); + const KFileMimeTypeInfo* mimeTypeInfo (const TQString&, const TQString&); %End - QStringList preferredKeys (const QString&) const; - QStringList preferredGroups (const QString&) const; + TQStringList preferredKeys (const TQString&) const; + TQStringList preferredGroups (const TQString&) const; %If ( KDE_3_1_0 - ) - QStringList supportedMimeTypes () const; + TQStringList supportedMimeTypes () const; %End @@ -451,10 +451,10 @@ private: %If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoItem&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoItem&); -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoGroup&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoGroup&); -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfo&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfo&); +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoItem&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoItem&); +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoGroup&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoGroup&); +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfo&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfo&); %End diff --git a/sip/kio/kfileshare.sip b/sip/kio/kfileshare.sip index 69c5236..8b917dd 100644 --- a/sip/kio/kfileshare.sip +++ b/sip/kio/kfileshare.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -//ig class KFileSharePrivate : QObject; +//ig class KFileSharePrivate : TQObject; %If ( KDE_3_1_0 - ) @@ -43,7 +43,7 @@ public: static void readShareList (); %End - static bool isDirectoryShared (const QString&); + static bool isDirectoryShared (const TQString&); enum Authorization { @@ -54,8 +54,8 @@ public: }; static KFileShare::Authorization authorization (); - static QString findExe (const char*); - static bool setShared (const QString&, bool); + static TQString findExe (const char*); + static bool setShared (const TQString&, bool); %If ( KDE_3_3_0 - ) @@ -67,7 +67,7 @@ public: static bool sharingEnabled (); static bool isRestricted (); - static QString fileShareGroup (); + static TQString fileShareGroup (); static KFileShare::ShareMode shareMode (); static bool sambaEnabled (); static bool nfsEnabled (); @@ -77,7 +77,7 @@ public: public: %If ( - KDE_3_1_5 ) -//ig static bool setShared (const QString&, bool, bool); +//ig static bool setShared (const TQString&, bool, bool); %End diff --git a/sip/kio/kfilterbase.sip b/sip/kio/kfilterbase.sip index bf931bc..c74da0b 100644 --- a/sip/kio/kfilterbase.sip +++ b/sip/kio/kfilterbase.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KFilterBase : QObject +class KFilterBase : TQObject { %TypeHeaderCode #include <qobject.h> @@ -36,16 +36,16 @@ public: KFilterBase (); %If ( KDE_3_1_2 - ) - void setDevice (QIODevice*, bool = 0); + void setDevice (TQIODevice*, bool = 0); %End - QIODevice* device (); + TQIODevice* device (); virtual void init (int) = 0; virtual int mode () const = 0; virtual void terminate (); virtual void reset (); virtual bool readHeader () = 0; - virtual bool writeHeader (const QCString&) = 0; + virtual bool writeHeader (const TQCString&) = 0; virtual void setOutBuffer (char*, uint) = 0; virtual void setInBuffer (const char*, uint) = 0; virtual bool inBufferEmpty () const; @@ -62,8 +62,8 @@ public: virtual Result uncompress () = 0; virtual KFilterBase::Result compress (bool) = 0; - static KFilterBase* findFilterByFileName (const QString&); - static KFilterBase* findFilterByMimeType (const QString&); + static KFilterBase* findFilterByFileName (const TQString&); + static KFilterBase* findFilterByMimeType (const TQString&); protected: diff --git a/sip/kio/kfilterdev.sip b/sip/kio/kfilterdev.sip index 37bd1dc..eb24d16 100644 --- a/sip/kio/kfilterdev.sip +++ b/sip/kio/kfilterdev.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KFilterDev : QIODevice +class KFilterDev : TQIODevice { %TypeHeaderCode #include <kfilterdev.h> @@ -36,29 +36,29 @@ public: virtual bool open (int); virtual void close (); virtual void flush (); - void setOrigFileName (const QCString&); + void setOrigFileName (const TQCString&); %If ( KDE_3_1_0 - ) void setSkipHeaders (); %End - virtual QIODevice::Offset size () const; - virtual QIODevice::Offset at () const; - virtual bool at (QIODevice::Offset); + virtual TQIODevice::Offset size () const; + virtual TQIODevice::Offset at () const; + virtual bool at (TQIODevice::Offset); virtual bool atEnd () const; //ig virtual Q_LONG readBlock (char*, Q_ULONG); //ig virtual Q_LONG writeBlock (const char*, Q_ULONG); virtual int getch (); virtual int putch (int); virtual int ungetch (int); - static QIODevice* createFilterDevice (KFilterBase*, QFile*); + static TQIODevice* createFilterDevice (KFilterBase*, TQFile*); public: - static QIODevice* deviceForFile (const QString&, const QString& = QString ::null , bool = 0); - static QIODevice* device (QIODevice*, const QString&); + static TQIODevice* deviceForFile (const TQString&, const TQString& = TQString ::null , bool = 0); + static TQIODevice* device (TQIODevice*, const TQString&); %If ( KDE_3_1_0 - ) - static QIODevice* device (QIODevice*, const QString&, bool); + static TQIODevice* device (TQIODevice*, const TQString&, bool); %End diff --git a/sip/kio/kimageio.sip b/sip/kio/kimageio.sip index 879506f..a6a1cdc 100644 --- a/sip/kio/kimageio.sip +++ b/sip/kio/kimageio.sip @@ -40,20 +40,20 @@ public: }; static void registerFormats (); - static bool canWrite (const QString&); - static bool canRead (const QString&); - static QStringList types (KImageIO::Mode = Writing ); - static QString pattern (KImageIO::Mode = Reading ); - static QString suffix (const QString&); + static bool canWrite (const TQString&); + static bool canRead (const TQString&); + static TQStringList types (KImageIO::Mode = Writing ); + static TQString pattern (KImageIO::Mode = Reading ); + static TQString suffix (const TQString&); %If ( KDE_3_1_0 - ) - static QString typeForMime (const QString&); + static TQString typeForMime (const TQString&); %End - static QString type (const QString&); - static QStringList mimeTypes (KImageIO::Mode = Writing ); - static bool isSupported (const QString&, KImageIO::Mode = Writing ); - static QString mimeType (const QString&); + static TQString type (const TQString&); + static TQStringList mimeTypes (KImageIO::Mode = Writing ); + static bool isSupported (const TQString&, KImageIO::Mode = Writing ); + static TQString mimeType (const TQString&); }; // class KImageIO diff --git a/sip/kio/kmimemagic.sip b/sip/kio/kmimemagic.sip index 0dc31c6..ae01d5c 100644 --- a/sip/kio/kmimemagic.sip +++ b/sip/kio/kmimemagic.sip @@ -33,10 +33,10 @@ class KMimeMagicResult public: KMimeMagicResult (); - const QString mimeType (); + const TQString mimeType (); int accuracy (); bool isValid (); - void setMimeType (const QString&); + void setMimeType (const TQString&); void setAccuracy (int); void setInvalid (); @@ -58,13 +58,13 @@ public: KMimeMagic (); %End - KMimeMagic (const QString&); - bool mergeConfig (const QString&); + KMimeMagic (const TQString&); + bool mergeConfig (const TQString&); bool mergeBufConfig (char*); void setFollowLinks (bool); - KMimeMagicResult* findFileType (const QString&); - KMimeMagicResult* findBufferType (const QByteArray&); - KMimeMagicResult* findBufferFileType (const QByteArray&, const QString&); + KMimeMagicResult* findFileType (const TQString&); + KMimeMagicResult* findBufferType (const TQByteArray&); + KMimeMagicResult* findBufferFileType (const TQByteArray&, const TQString&); static KMimeMagic* self (); protected: diff --git a/sip/kio/kmimetype.sip b/sip/kio/kmimetype.sip index ba25572..c8c5059 100644 --- a/sip/kio/kmimetype.sip +++ b/sip/kio/kmimetype.sip @@ -34,38 +34,38 @@ class KMimeType : KServiceType public: typedef KSharedPtr<KMimeType> Ptr; - typedef QValueList<KMimeType::Ptr> List; + typedef TQValueList<KMimeType::Ptr> List; public: - KMimeType (const QString&, const QString&, const QString&, const QString&, const QStringList&); - KMimeType (const QString&); + KMimeType (const TQString&, const TQString&, const TQString&, const TQString&, const TQStringList&); + KMimeType (const TQString&); KMimeType (KDesktopFile*); - KMimeType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; - virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; - static QPixmap pixmapForURL (const KURL&, mode_t = 0, KIcon::Group = KIcon ::Desktop , int = 0, int = 0, QString* = 0); - static QString iconForURL (const KURL&, mode_t = 0); - static QString favIconForURL (const KURL&); - QString comment () const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; - const QStringList& patterns () const; - virtual void load (QDataStream&); - virtual void save (QDataStream&); - virtual QVariant property (const QString&) const; - virtual QStringList propertyNames () const; - static KMimeType::Ptr mimeType (const QString&); + KMimeType (TQDataStream&, int); + virtual TQString icon (const TQString&, bool) const; + virtual TQString icon (const KURL&, bool) const; + virtual TQPixmap pixmap (KIcon::Group, int = 0, int = 0, TQString* = 0) const; + virtual TQPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, TQString* = 0) const; + static TQPixmap pixmapForURL (const KURL&, mode_t = 0, KIcon::Group = KIcon ::Desktop , int = 0, int = 0, TQString* = 0); + static TQString iconForURL (const KURL&, mode_t = 0); + static TQString favIconForURL (const KURL&); + TQString comment () const; + virtual TQString comment (const TQString&, bool) const; + virtual TQString comment (const KURL&, bool) const; + const TQStringList& patterns () const; + virtual void load (TQDataStream&); + virtual void save (TQDataStream&); + virtual TQVariant property (const TQString&) const; + virtual TQStringList propertyNames () const; + static KMimeType::Ptr mimeType (const TQString&); static KMimeType::Ptr findByURL (const KURL&, mode_t = 0, bool = 0, bool = 0); %If ( KDE_3_2_0 - ) static KMimeType::Ptr findByURL (const KURL&, mode_t, bool, bool, bool*); %End - static KMimeType::Ptr findByPath (const QString&, mode_t = 0, bool = 0); - static KMimeType::Ptr findByContent (const QByteArray&, int* = 0); - static KMimeType::Ptr findByFileContent (const QString&, int* = 0); + static KMimeType::Ptr findByPath (const TQString&, mode_t = 0, bool = 0); + static KMimeType::Ptr findByContent (const TQByteArray&, int* = 0); + static KMimeType::Ptr findByFileContent (const TQString&, int* = 0); %If ( KDE_3_2_1 - ) @@ -92,24 +92,24 @@ public: %If ( KDE_3_2_0 - ) -//ig static KMimeType::Format findFormatByFileContent (const QString&); +//ig static KMimeType::Format findFormatByFileContent (const TQString&); %End static KMimeType::List allMimeTypes (); - static const QString& defaultMimeType (); + static const TQString& defaultMimeType (); %If ( KDE_3_2_0 - ) static KMimeType::Ptr defaultMimeTypePtr (); - QString parentMimeType () const; - bool is (const QString&) const /PyName=is_/; //'is' is a reserved keyword in python; - static KMimeType::Ptr diagnoseFileName (const QString&, QString&); + TQString parentMimeType () const; + bool is (const TQString&) const /PyName=is_/; //'is' is a reserved keyword in python; + static KMimeType::Ptr diagnoseFileName (const TQString&, TQString&); %End protected: - void loadInternal (QDataStream&); + void loadInternal (TQDataStream&); void init (KDesktopFile*); - static void errorMissingMimeType (const QString&); + static void errorMissingMimeType (const TQString&); static void buildDefaultType (); static void checkEssentialMimeTypes (); @@ -135,11 +135,11 @@ class KFolderType : KMimeType public: KFolderType (KDesktopFile*); - KFolderType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; + KFolderType (TQDataStream&, int); + virtual TQString icon (const TQString&, bool) const; + virtual TQString icon (const KURL&, bool) const; + virtual TQString comment (const TQString&, bool) const; + virtual TQString comment (const KURL&, bool) const; protected: //igx virtual void virtual_hook (int, void*); @@ -174,9 +174,9 @@ public: bool isEmpty () const; %End - QString m_strName; - QString m_strIcon; - QString m_strExec; + TQString m_strName; + TQString m_strIcon; + TQString m_strExec; KDEDesktopMimeType::ServiceType m_type; bool m_display; @@ -185,32 +185,32 @@ public: public: KDEDesktopMimeType (KDesktopFile*); - KDEDesktopMimeType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; - static QValueList<KDEDesktopMimeType::Service> builtinServices (const KURL&); - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, bool); + KDEDesktopMimeType (TQDataStream&, int); + virtual TQString icon (const TQString&, bool) const; + virtual TQString icon (const KURL&, bool) const; + virtual TQPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, TQString* = 0) const; + virtual TQString comment (const TQString&, bool) const; + virtual TQString comment (const KURL&, bool) const; + static TQValueList<KDEDesktopMimeType::Service> builtinServices (const KURL&); + static TQValueList<KDEDesktopMimeType::Service> userDefinedServices (const TQString&, bool); %If ( KDE_3_4_0 - ) - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool); + static TQValueList<KDEDesktopMimeType::Service> userDefinedServices (const TQString&, KConfig&, bool); %If ( KDE_3_5_0 - ) - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool, const KURL::List&); + static TQValueList<KDEDesktopMimeType::Service> userDefinedServices (const TQString&, KConfig&, bool, const KURL::List&); %End %End - static void executeService (const QString&, KDEDesktopMimeType::Service&); + static void executeService (const TQString&, KDEDesktopMimeType::Service&); static void executeService (const KURL::List&, KDEDesktopMimeType::Service&); static pid_t run (const KURL&, bool); protected: - virtual QPixmap pixmap (KIcon::Group, int, int, QString*) const; + virtual TQPixmap pixmap (KIcon::Group, int, int, TQString*) const; static pid_t runFSDevice (const KURL&, const KSimpleConfig&); - static pid_t runApplication (const KURL&, const QString&); + static pid_t runApplication (const KURL&, const TQString&); static pid_t runLink (const KURL&, const KSimpleConfig&); static pid_t runMimeType (const KURL&, const KSimpleConfig&); @@ -229,7 +229,7 @@ class KExecMimeType : KMimeType public: KExecMimeType (KDesktopFile*); - KExecMimeType (QDataStream&, int); + KExecMimeType (TQDataStream&, int); protected: //igx virtual void virtual_hook (int, void*); @@ -281,7 +281,7 @@ protected: }; -%MappedType QValueList<KDEDesktopMimeType::Service> +%MappedType TQValueList<KDEDesktopMimeType::Service> //converts a Python list of KDEDesktopMimeType.Service { %TypeHeaderCode @@ -298,11 +298,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KDEDesktopMimeType::Service> *cpplist = (QValueList<KDEDesktopMimeType::Service> *)sipCpp; + TQValueList<KDEDesktopMimeType::Service> *cpplist = (TQValueList<KDEDesktopMimeType::Service> *)sipCpp; PyObject *inst; // Get it. - QValueList<KDEDesktopMimeType::Service>::Iterator it; + TQValueList<KDEDesktopMimeType::Service>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KDEDesktopMimeType::Service(*it), sipType_KDEDesktopMimeType_Service, NULL)) == NULL) @@ -321,7 +321,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KDEDesktopMimeType::Service> *cpplist = new QValueList<KDEDesktopMimeType::Service>; + TQValueList<KDEDesktopMimeType::Service> *cpplist = new TQValueList<KDEDesktopMimeType::Service>; PyObject *elem; KDEDesktopMimeType::Service *cpp; @@ -349,7 +349,7 @@ protected: }; -%MappedType QValueList<KMimeType::Ptr> +%MappedType TQValueList<KMimeType::Ptr> //converts a Python list of KMimeType { %TypeHeaderCode @@ -371,11 +371,11 @@ protected: // Get it. - QValueList<KMimeType::Ptr> *cList = (QValueList<KMimeType::Ptr> *)sipCpp; + TQValueList<KMimeType::Ptr> *cList = (TQValueList<KMimeType::Ptr> *)sipCpp; PyObject *inst; KMimeType *svc; - QValueList<KMimeType::Ptr>::Iterator it; + TQValueList<KMimeType::Ptr>::Iterator it; for( it = cList->begin(); it != cList->end(); ++it ) { svc = new KMimeType (*(KMimeType *)((KMimeType::Ptr)(*it)).data ()); @@ -397,7 +397,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KMimeType::Ptr> *cList = new QValueList<KMimeType::Ptr>; + TQValueList<KMimeType::Ptr> *cList = new TQValueList<KMimeType::Ptr>; PyObject *elem; KMimeType *service; int iserr = 0; diff --git a/sip/kio/kmimetypechooser.sip b/sip/kio/kmimetypechooser.sip index b0a8987..7c08a50 100644 --- a/sip/kio/kmimetypechooser.sip +++ b/sip/kio/kmimetypechooser.sip @@ -26,7 +26,7 @@ %If ( KDE_3_3_0 - ) -class KMimeTypeChooser : QVBox +class KMimeTypeChooser : TQVBox { %TypeHeaderCode #include <kmimetypechooser.h> @@ -42,9 +42,9 @@ public: EditButton }; - KMimeTypeChooser (const QString& = QString ::null , const QStringList& = 0, const QString& = QString ::null , const QStringList& = QStringList (), int = Comments |Patterns |EditButton , QWidget* /TransferThis/ = 0, const char* = 0); - QStringList mimeTypes () const; - QStringList patterns () const; + KMimeTypeChooser (const TQString& = TQString ::null , const TQStringList& = 0, const TQString& = TQString ::null , const TQStringList& = TQStringList (), int = Comments |Patterns |EditButton , TQWidget* /TransferThis/ = 0, const char* = 0); + TQStringList mimeTypes () const; + TQStringList patterns () const; public slots: void editMimeType (); @@ -64,8 +64,8 @@ class KMimeTypeChooserDialog : KDialogBase public: - KMimeTypeChooserDialog (const QString& = QString ::null , const QString& = QString ::null , const QStringList& = QStringList (), const QString& = QString ::null , const QStringList& = QStringList (), int = KMimeTypeChooser ::Comments |KMimeTypeChooser ::Patterns |KMimeTypeChooser ::EditButton , QWidget* /TransferThis/ = 0, const char* = 0); - KMimeTypeChooserDialog (const QString&, const QString&, const QStringList&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooserDialog (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQStringList& = TQStringList (), const TQString& = TQString ::null , const TQStringList& = TQStringList (), int = KMimeTypeChooser ::Comments |KMimeTypeChooser ::Patterns |KMimeTypeChooser ::EditButton , TQWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooserDialog (const TQString&, const TQString&, const TQStringList&, const TQString&, TQWidget* /TransferThis/ = 0, const char* = 0); KMimeTypeChooser* chooser (); }; // class KMimeTypeChooserDialog diff --git a/sip/kio/knfsshare.sip b/sip/kio/knfsshare.sip index 6f36f02..4eabf33 100644 --- a/sip/kio/knfsshare.sip +++ b/sip/kio/knfsshare.sip @@ -26,7 +26,7 @@ %If ( KDE_3_3_0 - ) -class KNFSShare : QObject +class KNFSShare : TQObject { %TypeHeaderCode #include <knfsshare.h> @@ -35,9 +35,9 @@ class KNFSShare : QObject public: static KNFSShare* instance (); - bool isDirectoryShared (const QString&) const; - QStringList sharedDirectories () const; - QString exportsPath () const; + bool isDirectoryShared (const TQString&) const; + TQStringList sharedDirectories () const; + TQString exportsPath () const; signals: void changed (); diff --git a/sip/kio/kpac.sip b/sip/kio/kpac.sip index 7560514..51e7c4d 100644 --- a/sip/kio/kpac.sip +++ b/sip/kio/kpac.sip @@ -32,10 +32,10 @@ class KPAC public: - virtual QString proxyForURL (const KURL&) = 0; + virtual TQString proxyForURL (const KURL&) = 0; virtual bool init (const KURL&) = 0; virtual bool discover () = 0; - virtual void badProxy (const QString&) = 0; + virtual void badProxy (const TQString&) = 0; protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/kprotocolinfo.sip b/sip/kio/kprotocolinfo.sip index ef173be..f3fdcb3 100644 --- a/sip/kio/kprotocolinfo.sip +++ b/sip/kio/kprotocolinfo.sip @@ -35,13 +35,13 @@ public: typedef KSharedPtr<KProtocolInfo> Ptr; public: - KProtocolInfo (const QString&); + KProtocolInfo (const TQString&); virtual bool isValid () const; - virtual QString name () const; - static QStringList protocols (); + virtual TQString name () const; + static TQStringList protocols (); static bool isKnownProtocol (const KURL&); - static bool isKnownProtocol (const QString&); - static QString exec (const QString&) /PyName=exec_/; + static bool isKnownProtocol (const TQString&); + static TQString exec (const TQString&) /PyName=exec_/; enum Type { @@ -53,7 +53,7 @@ public: static KProtocolInfo::Type inputType (const KURL&); static KProtocolInfo::Type outputType (const KURL&); - static QStringList listing (const KURL&); + static TQStringList listing (const KURL&); %If ( KDE_3_2_0 - ) @@ -62,9 +62,9 @@ public: public: ExtraField (); - ExtraField (const QString&, const QString&); - QString name; - QString type; + ExtraField (const TQString&, const TQString&); + TQString name; + TQString type; }; // class ExtraField @@ -74,15 +74,15 @@ public: %If ( KDE_3_2_0 - ) - typedef QValueList<KProtocolInfo::ExtraField> ExtraFieldList; + typedef TQValueList<KProtocolInfo::ExtraField> ExtraFieldList; static KProtocolInfo::ExtraFieldList extraFields (const KURL&); %End static bool isSourceProtocol (const KURL&); static bool isHelperProtocol (const KURL&); - static bool isHelperProtocol (const QString&); + static bool isHelperProtocol (const TQString&); static bool isFilterProtocol (const KURL&); - static bool isFilterProtocol (const QString&); + static bool isFilterProtocol (const TQString&); static bool supportsListing (const KURL&); static bool supportsReading (const KURL&); static bool supportsWriting (const KURL&); @@ -107,44 +107,44 @@ public: static KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying (const KURL&); %End - static QString defaultMimetype (const KURL&); - static QString icon (const QString&); - static QString config (const QString&); - static int maxSlaves (const QString&); - static bool determineMimetypeFromExtension (const QString&); + static TQString defaultMimetype (const KURL&); + static TQString icon (const TQString&); + static TQString config (const TQString&); + static int maxSlaves (const TQString&); + static bool determineMimetypeFromExtension (const TQString&); %If ( KDE_3_2_0 - ) - static QString docPath (const QString&); - static QString protocolClass (const QString&); - static bool showFilePreview (const QString&); - static KURL::URIMode uriParseMode (const QString&); + static TQString docPath (const TQString&); + static TQString protocolClass (const TQString&); + static bool showFilePreview (const TQString&); + static KURL::URIMode uriParseMode (const TQString&); %If ( KDE_3_3_0 - ) - static QStringList capabilities (const QString&); - static QString proxiedBy (const QString&); + static TQStringList capabilities (const TQString&); + static TQString proxiedBy (const TQString&); %End %End public: - KProtocolInfo (QDataStream&, int); - virtual void load (QDataStream&); - virtual void save (QDataStream&); - static Type inputType (const QString&); - static Type outputType (const QString&); - static QStringList listing (const QString&); - static bool isSourceProtocol (const QString&); - static bool supportsListing (const QString&); - static bool supportsReading (const QString&); - static bool supportsWriting (const QString&); - static bool supportsMakeDir (const QString&); - static bool supportsDeleting (const QString&); - static bool supportsLinking (const QString&); - static bool supportsMoving (const QString&); - static bool canCopyFromFile (const QString&); - static bool canCopyToFile (const QString&); - static QString defaultMimetype (const QString&); + KProtocolInfo (TQDataStream&, int); + virtual void load (TQDataStream&); + virtual void save (TQDataStream&); + static Type inputType (const TQString&); + static Type outputType (const TQString&); + static TQStringList listing (const TQString&); + static bool isSourceProtocol (const TQString&); + static bool supportsListing (const TQString&); + static bool supportsReading (const TQString&); + static bool supportsWriting (const TQString&); + static bool supportsMakeDir (const TQString&); + static bool supportsDeleting (const TQString&); + static bool supportsLinking (const TQString&); + static bool supportsMoving (const TQString&); + static bool canCopyFromFile (const TQString&); + static bool canCopyToFile (const TQString&); + static TQString defaultMimetype (const TQString&); protected: @@ -168,8 +168,8 @@ protected: %If ( KDE_3_2_0 - ) -//igx QDataStream& operator >> (QDataStream&, KProtocolInfo::ExtraField&); -//igx QDataStream& operator << (QDataStream&, const KProtocolInfo::ExtraField&); +//igx TQDataStream& operator >> (TQDataStream&, KProtocolInfo::ExtraField&); +//igx TQDataStream& operator << (TQDataStream&, const KProtocolInfo::ExtraField&); %End @@ -217,7 +217,7 @@ protected: %If (KDE_3_2_0 - ) -%MappedType QValueList<KProtocolInfo::ExtraField> +%MappedType TQValueList<KProtocolInfo::ExtraField> //converts a Python list of KProtocolInfo::ExtraField { %TypeHeaderCode @@ -233,11 +233,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KProtocolInfo::ExtraField> *cpplist = (QValueList<KProtocolInfo::ExtraField> *)sipCpp; + TQValueList<KProtocolInfo::ExtraField> *cpplist = (TQValueList<KProtocolInfo::ExtraField> *)sipCpp; PyObject *inst; // Get it. - QValueList<KProtocolInfo::ExtraField>::Iterator it; + TQValueList<KProtocolInfo::ExtraField>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KProtocolInfo::ExtraField(*it), sipType_KProtocolInfo_ExtraField, sipTransferObj)) == NULL) @@ -256,7 +256,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KProtocolInfo::ExtraField> *cpplist = new QValueList<KProtocolInfo::ExtraField>; + TQValueList<KProtocolInfo::ExtraField> *cpplist = new TQValueList<KProtocolInfo::ExtraField>; PyObject *elem; KProtocolInfo::ExtraField *cpp; diff --git a/sip/kio/kprotocolmanager.sip b/sip/kio/kprotocolmanager.sip index ba1da67..093e537 100644 --- a/sip/kio/kprotocolmanager.sip +++ b/sip/kio/kprotocolmanager.sip @@ -32,9 +32,9 @@ class KProtocolManager public: - static QString defaultUserAgent (); - static QString defaultUserAgent (const QString&); - static QString userAgentForHost (const QString&); + static TQString defaultUserAgent (); + static TQString defaultUserAgent (const TQString&); + static TQString userAgentForHost (const TQString&); static int readTimeout (); static int connectTimeout (); static int proxyConnectTimeout (); @@ -60,20 +60,20 @@ public: }; static KProtocolManager::ProxyAuthMode proxyAuthMode (); - static QString noProxyFor (); + static TQString noProxyFor (); %If ( KDE_3_5_1 - ) - static QString noProxyForRaw (); + static TQString noProxyForRaw (); %End - static QString proxyFor (const QString&); - static QString proxyForURL (const KURL&); - static void badProxy (const QString&); - static QString proxyConfigScript (); + static TQString proxyFor (const TQString&); + static TQString proxyForURL (const KURL&); + static void badProxy (const TQString&); + static TQString proxyConfigScript (); static bool useCache (); static int maxCacheAge (); static int maxCacheSize (); - static QString cacheDir (); + static TQString cacheDir (); static KIO::CacheControl cacheControl (); static bool autoResume (); static bool markPartial (); @@ -85,7 +85,7 @@ public: static bool persistentConnections (); static void reparseConfiguration (); - static QString slaveProtocol (const KURL&, QString&); + static TQString slaveProtocol (const KURL&, TQString&); static KConfig* config (); public: diff --git a/sip/kio/kremoteencoding.sip b/sip/kio/kremoteencoding.sip index 92a7f9c..857e305 100644 --- a/sip/kio/kremoteencoding.sip +++ b/sip/kio/kremoteencoding.sip @@ -35,11 +35,11 @@ class KRemoteEncoding public: KRemoteEncoding (const char* = 0); - QString decode (const QCString&) const; - QCString encode (const QString&) const; - QCString encode (const KURL&) const; - QCString directory (const KURL&, bool = 1) const; - QCString fileName (const KURL&) const; + TQString decode (const TQCString&) const; + TQCString encode (const TQString&) const; + TQCString encode (const KURL&) const; + TQCString directory (const KURL&, bool = 1) const; + TQCString fileName (const KURL&) const; const char* encoding () const; %If ( KDE_3_5_0 - ) diff --git a/sip/kio/krun.sip b/sip/kio/krun.sip index ba4791a..5a0457f 100644 --- a/sip/kio/krun.sip +++ b/sip/kio/krun.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KRun : QObject +class KRun : TQObject { %TypeHeaderCode #include <krun.h> @@ -35,7 +35,7 @@ public: KRun (const KURL&, mode_t = 0, bool = 0, bool = 1); %If ( KDE_3_2_0 - ) - KRun (const KURL&, QWidget*, mode_t = 0, bool = 0, bool = 1); + KRun (const KURL&, TQWidget*, mode_t = 0, bool = 0, bool = 1); %End void abort (); @@ -43,7 +43,7 @@ public: bool hasFinished () const; bool autoDelete () const; void setAutoDelete (bool); - void setPreferredService (const QString&); + void setPreferredService (const TQString&); %If ( KDE_3_2_0 - ) void setRunExecutables (bool); @@ -52,12 +52,12 @@ public: void setEnableExternalBrowser (bool); %If ( KDE_3_5_3 - ) - void setSuggestedFileName (const QString&); + void setSuggestedFileName (const TQString&); %End %If ( KDE_3_5_2 - ) - static pid_t run (const KService&, const KURL::List&, QWidget*, bool = 0); + static pid_t run (const KService&, const KURL::List&, TQWidget*, bool = 0); %End %End @@ -72,28 +72,28 @@ public: static pid_t run (const KService&, const KURL::List&); %If ( KDE_3_5_3 - ) - static pid_t run (const KService&, const KURL::List&, QWidget*, bool, const QString&); + static pid_t run (const KService&, const KURL::List&, TQWidget*, bool, const TQString&); %End - static pid_t run (const QString&, const KURL::List&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + static pid_t run (const TQString&, const KURL::List&, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null ); %If ( KDE_3_2_0 - ) - static pid_t runURL (const KURL&, const QString&, bool, bool); + static pid_t runURL (const KURL&, const TQString&, bool, bool); %End %If ( KDE_3_1_0 - ) - static pid_t runURL (const KURL&, const QString&, bool); + static pid_t runURL (const KURL&, const TQString&, bool); %End - static pid_t runURL (const KURL&, const QString&); + static pid_t runURL (const KURL&, const TQString&); %If ( KDE_3_5_3 - ) - static pid_t runURL (const KURL&, const QString&, bool, bool, const QString&); + static pid_t runURL (const KURL&, const TQString&, bool, bool, const TQString&); %End - static pid_t runCommand (QString); - static pid_t runCommand (const QString&, const QString&, const QString&); + static pid_t runCommand (TQString); + static pid_t runCommand (const TQString&, const TQString&, const TQString&); %If ( KDE_3_1_0 - ) static bool displayOpenWithDialog (const KURL::List&, bool); @@ -102,33 +102,33 @@ public: static bool displayOpenWithDialog (const KURL::List&); %If ( KDE_3_5_3 - ) - static bool displayOpenWithDialog (const KURL::List&, bool, const QString&); + static bool displayOpenWithDialog (const KURL::List&, bool, const TQString&); %End - static void shellQuote (QString&); + static void shellQuote (TQString&); %If ( KDE_3_1_0 - ) - static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool); + static TQStringList processDesktopExec (const KService&, const KURL::List&, bool, bool); %End - static QStringList processDesktopExec (const KService&, const KURL::List&, bool); + static TQStringList processDesktopExec (const KService&, const KURL::List&, bool); %If ( KDE_3_5_3 - ) - static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool, const QString&); + static TQStringList processDesktopExec (const KService&, const KURL::List&, bool, bool, const TQString&); %End %If ( KDE_3_1_0 - ) - static QString binaryName (const QString&, bool); + static TQString binaryName (const TQString&, bool); %If ( KDE_3_2_0 - ) - static bool isExecutable (const QString&); + static bool isExecutable (const TQString&); %If ( KDE_3_3_0 - ) - static bool isExecutableFile (const KURL&, const QString&); + static bool isExecutableFile (const KURL&, const TQString&); %If ( KDE_3_4_0 - ) - static bool checkStartupNotify (const QString&, const KService*, bool*, QCString*); + static bool checkStartupNotify (const TQString&, const KService*, bool*, TQCString*); %End %End @@ -145,13 +145,13 @@ signals: protected slots: void slotTimeout (); void slotScanFinished (KIO::Job*); - void slotScanMimeType (KIO::Job*, const QString&); + void slotScanMimeType (KIO::Job*, const TQString&); virtual void slotStatResult (KIO::Job*); protected: virtual void init (); virtual void scanFile (); - virtual void foundMimeType (const QString&); + virtual void foundMimeType (const TQString&); virtual void killJob (); protected: @@ -174,7 +174,7 @@ public: }; // class KOpenWithHandler -class KProcessRunner : QObject +class KProcessRunner : TQObject { %TypeHeaderCode #include <krun.h> @@ -182,10 +182,10 @@ class KProcessRunner : QObject public: - static pid_t run (KProcess*, const QString&); + static pid_t run (KProcess*, const TQString&); %If ( KDE_3_1_4 - ) - static pid_t run (KProcess*, const QString&, const KStartupInfoId&); + static pid_t run (KProcess*, const TQString&, const KStartupInfoId&); %End pid_t pid () const; @@ -194,10 +194,10 @@ protected slots: void slotProcessExited (KProcess*); private: - KProcessRunner (KProcess*, const QString&); + KProcessRunner (KProcess*, const TQString&); %If ( KDE_3_1_4 - ) - KProcessRunner (KProcess*, const QString&, const KStartupInfoId&); + KProcessRunner (KProcess*, const TQString&, const KStartupInfoId&); %End KProcessRunner (); diff --git a/sip/kio/ksambashare.sip b/sip/kio/ksambashare.sip index 3e57eea..a1e6a95 100644 --- a/sip/kio/ksambashare.sip +++ b/sip/kio/ksambashare.sip @@ -26,7 +26,7 @@ %If ( KDE_3_3_0 - ) -class KSambaShare : QObject +class KSambaShare : TQObject { %TypeHeaderCode #include <ksambashare.h> @@ -35,9 +35,9 @@ class KSambaShare : QObject public: static KSambaShare* instance (); - bool isDirectoryShared (const QString&) const; - QStringList sharedDirectories () const; - QString smbConfPath () const; + bool isDirectoryShared (const TQString&) const; + TQStringList sharedDirectories () const; + TQString smbConfPath () const; signals: void changed (); diff --git a/sip/kio/kscan.sip b/sip/kio/kscan.sip index e6159e2..3355b34 100644 --- a/sip/kio/kscan.sip +++ b/sip/kio/kscan.sip @@ -32,18 +32,18 @@ class KScanDialog : KDialogBase public: - static KScanDialog* getScanDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static KScanDialog* getScanDialog (TQWidget* /Transfer/ = 0, const char* = 0, bool = 0); virtual bool setup (); protected: - KScanDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KScanDialog (int = Tabbed , int = Close |Help , TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0); int id () const; int nextId (); signals: - void preview (const QImage&, int); - void finalImage (const QImage&, int); - void textRecognized (const QString&, int); + void preview (const TQImage&, int); + void finalImage (const TQImage&, int); + void textRecognized (const TQString&, int); protected: //igx virtual void virtual_hook (int, void*); @@ -59,12 +59,12 @@ class KScanDialogFactory : KLibFactory public: - virtual KScanDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + virtual KScanDialog* createDialog (TQWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; protected: - KScanDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - void setName (const QCString&); + KScanDialogFactory (TQObject* /TransferThis/ = 0, const char* = 0); + virtual TQObject* createObject (TQObject* /Transfer/ = 0, const char* = 0, const char* = "TQObject", const TQStringList& = TQStringList ()); + void setName (const TQCString&); KInstance* instance () const; protected: @@ -81,15 +81,15 @@ class KOCRDialog : KDialogBase public: - static KOCRDialog* getOCRDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static KOCRDialog* getOCRDialog (TQWidget* /Transfer/ = 0, const char* = 0, bool = 0); protected: - KOCRDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KOCRDialog (int = Tabbed , int = Close |Help , TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0); int id () const; int nextId (); signals: - void textRecognized (const QString&, int); + void textRecognized (const TQString&, int); protected: //igx virtual void virtual_hook (int, void*); @@ -105,12 +105,12 @@ class KOCRDialogFactory : KLibFactory public: - virtual KOCRDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + virtual KOCRDialog* createDialog (TQWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; protected: - KOCRDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - void setName (const QCString&); + KOCRDialogFactory (TQObject* /TransferThis/ = 0, const char* = 0); + virtual TQObject* createObject (TQObject* /Transfer/ = 0, const char* = 0, const char* = "TQObject", const TQStringList& = TQStringList ()); + void setName (const TQCString&); KInstance* instance () const; protected: diff --git a/sip/kio/kservice.sip b/sip/kio/kservice.sip index fcb0aaf..cee5e51 100644 --- a/sip/kio/kservice.sip +++ b/sip/kio/kservice.sip @@ -33,30 +33,30 @@ class KService : KSycocaEntry public: //ig typedef KSharedPtr<KService> Ptr; -//ig typedef QValueList<KService::Ptr> List; +//ig typedef TQValueList<KService::Ptr> List; public: - KService (const QString&, const QString&, const QString&); - KService (const QString&); + KService (const TQString&, const TQString&, const TQString&); + KService (const TQString&); KService (KDesktopFile*); - KService (QDataStream&, int); - virtual QString type () /PyName=type_/; - virtual QString name () const; - QString exec () /PyName=exec_/; - QString library () const; - QString init () const; - QString icon () const; - QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; + KService (TQDataStream&, int); + virtual TQString type () /PyName=type_/; + virtual TQString name () const; + TQString exec () /PyName=exec_/; + TQString library () const; + TQString init () const; + TQString icon () const; + TQPixmap pixmap (KIcon::Group, int = 0, int = 0, TQString* = 0) const; bool terminal () const; - QString terminalOptions () const; + TQString terminalOptions () const; bool substituteUid () const; - QString username () const; - QString desktopEntryPath () const; - QString desktopEntryName () const; + TQString username () const; + TQString desktopEntryPath () const; + TQString desktopEntryName () const; %If ( KDE_3_2_0 - ) - QString menuId () const; - QString storageId () const; + TQString menuId () const; + TQString storageId () const; %End @@ -69,80 +69,80 @@ public: }; DCOPServiceType_t DCOPServiceType () const; - QString path () const; - QString comment () const; - QString genericName () const; + TQString path () const; + TQString comment () const; + TQString genericName () const; %If ( KDE_3_2_0 - ) - QString untranslatedGenericName () const; + TQString untranslatedGenericName () const; %End - QStringList keywords () const; + TQStringList keywords () const; %If ( KDE_3_1_0 - ) - QStringList categories () const; + TQStringList categories () const; %End - QStringList serviceTypes () const; - bool hasServiceType (const QString&) const; + TQStringList serviceTypes () const; + bool hasServiceType (const TQString&) const; bool allowAsDefault () const; bool allowMultipleFiles () const; int initialPreference () const; %If ( KDE_3_2_0 - ) - int initialPreferenceForMimeType (const QString&) const; + int initialPreferenceForMimeType (const TQString&) const; %End void setInitialPreference (int); bool noDisplay () const; %If ( KDE_3_1_0 - ) - QString parentApp () const; + TQString parentApp () const; %End - virtual QVariant property (const QString&) const; + virtual TQVariant property (const TQString&) const; %If ( KDE_3_2_0 - ) - QVariant property (const QString&, QVariant::Type) const; + TQVariant property (const TQString&, TQVariant::Type) const; %End - virtual QStringList propertyNames () const; + virtual TQStringList propertyNames () const; bool isValid () const; %If ( KDE_3_2_0 - ) - QString locateLocal (); + TQString locateLocal (); %End - virtual void load (QDataStream&); - virtual void save (QDataStream&); + virtual void load (TQDataStream&); + virtual void save (TQDataStream&); %If ( KDE_3_2_0 - ) - void setMenuId (const QString&); + void setMenuId (const TQString&); void setTerminal (bool); - void setTerminalOptions (const QString&); + void setTerminalOptions (const TQString&); %End - static KService::Ptr serviceByName (const QString&); - static KService::Ptr serviceByDesktopPath (const QString&); - static KService::Ptr serviceByDesktopName (const QString&); + static KService::Ptr serviceByName (const TQString&); + static KService::Ptr serviceByDesktopPath (const TQString&); + static KService::Ptr serviceByDesktopName (const TQString&); %If ( KDE_3_2_0 - ) - static KService::Ptr serviceByMenuId (const QString&); - static KService::Ptr serviceByStorageId (const QString&); + static KService::Ptr serviceByMenuId (const TQString&); + static KService::Ptr serviceByStorageId (const TQString&); %End static KService::List allServices (); static KService::List allInitServices (); %If ( KDE_3_2_0 - ) - static QString newServicePath (bool, const QString&, QString* = 0, const QStringList* = 0); - static void rebuildKSycoca (QWidget* /Transfer/); + static TQString newServicePath (bool, const TQString&, TQString* = 0, const TQStringList* = 0); + static void rebuildKSycoca (TQWidget* /Transfer/); %End protected: void init (KDesktopFile*); - QStringList& accessServiceTypes (); + TQStringList& accessServiceTypes (); %If ( KDE_3_1_1 - ) @@ -210,14 +210,14 @@ protected: #include <qvaluelist.h> #include <kservice.h> //typedef KSharedPtr<KService> Ptr; -//typedef QValueList<Ptr> SvcList; +//typedef TQValueList<Ptr> SvcList; //typedef KService::List SvcList; -typedef QValueList<KService::Ptr> List; +typedef TQValueList<KService::Ptr> List; %End %ConvertFromTypeCode // Convert to a Python list of Ptr (KService). -#define QUOTE "" +#define TQUOTE "" if (!sipCpp) return PyList_New (0); diff --git a/sip/kio/kservicegroup.sip b/sip/kio/kservicegroup.sip index bbe1847..49ebce7 100644 --- a/sip/kio/kservicegroup.sip +++ b/sip/kio/kservicegroup.sip @@ -36,24 +36,24 @@ public: //ig typedef KSharedPtr<KSycocaEntry> SPtr; %If ( KDE_3_1_2 - ) -//ig typedef QValueList<KServiceGroup::SPtr> List; +//ig typedef TQValueList<KServiceGroup::SPtr> List; %End public: %If ( KDE_3_1_0 - ) - KServiceGroup (const QString&); + KServiceGroup (const TQString&); %End - KServiceGroup (const QString&, const QString&); - KServiceGroup (QDataStream&, int, bool); + KServiceGroup (const TQString&, const TQString&); + KServiceGroup (TQDataStream&, int, bool); bool isValid () const; - virtual QString name () const; - virtual QString relPath () const; - QString caption () const; - QString icon () const; - QString comment () const; + virtual TQString name () const; + virtual TQString relPath () const; + TQString caption () const; + TQString icon () const; + TQString comment () const; int childCount (); %If ( KDE_3_1_0 - ) @@ -74,19 +74,19 @@ public: %If ( KDE_3_2_0 - ) - QStringList suppressGenericNames () const; - void setLayoutInfo (const QStringList&); + TQStringList suppressGenericNames () const; + void setLayoutInfo (const TQStringList&); %If ( KDE_3_3_0 - ) - QStringList layoutInfo () const; + TQStringList layoutInfo () const; %End %End %End - virtual void load (QDataStream&); - virtual void save (QDataStream&); + virtual void load (TQDataStream&); + virtual void save (TQDataStream&); %If ( KDE_3_2_0 - ) KServiceGroup::List entries (bool, bool, bool, bool = 0); @@ -98,21 +98,21 @@ public: virtual KServiceGroup::List entries (bool = 0); %End - QString baseGroupName () const; + TQString baseGroupName () const; %If ( KDE_3_2_0 - ) - QString directoryEntryPath () const; + TQString directoryEntryPath () const; %End - static KServiceGroup::Ptr baseGroup (const QString&); + static KServiceGroup::Ptr baseGroup (const TQString&); static KServiceGroup::Ptr root (); - static KServiceGroup::Ptr group (const QString&); + static KServiceGroup::Ptr group (const TQString&); %If ( KDE_3_1_0 - ) - static KServiceGroup::Ptr childGroup (const QString& /Transfer/); + static KServiceGroup::Ptr childGroup (const TQString& /Transfer/); %If ( KDE_3_5_0 - ) - void parseAttribute (const QString&, bool&, bool&, bool&, bool&, int&); + void parseAttribute (const TQString&, bool&, bool&, bool&, bool&, int&); %End %End @@ -127,7 +127,7 @@ protected: public: %If ( - KDE_3_1_2 ) -//ig typedef QValueList<Ptr> List; +//ig typedef TQValueList<Ptr> List; %End @@ -149,9 +149,9 @@ public: public: KServiceSeparator (); bool isValid () const; - virtual QString name () const; - virtual void load (QDataStream&); - virtual void save (QDataStream&); + virtual TQString name () const; + virtual void load (TQDataStream&); + virtual void save (TQDataStream&); }; // class KServiceSeparator diff --git a/sip/kio/kservicetype.sip b/sip/kio/kservicetype.sip index adb6897..da8099b 100644 --- a/sip/kio/kservicetype.sip +++ b/sip/kio/kservicetype.sip @@ -32,32 +32,32 @@ class KServiceType : KSycocaEntry public: - typedef QValueList<KServiceType::Ptr> List; + typedef TQValueList<KServiceType::Ptr> List; public: - KServiceType (const QString&, const QString&, const QString&, const QString&); - KServiceType (const QString&); + KServiceType (const TQString&, const TQString&, const TQString&, const TQString&); + KServiceType (const TQString&); KServiceType (KDesktopFile*); - KServiceType (QDataStream&, int); - QString icon () const; - QString comment () const; - QString name () const; - QString desktopEntryPath () const; + KServiceType (TQDataStream&, int); + TQString icon () const; + TQString comment () const; + TQString name () const; + TQString desktopEntryPath () const; bool isDerived () const; - QString parentServiceType () const; + TQString parentServiceType () const; %If ( KDE_3_1_0 - ) - bool inherits (const QString&) const; + bool inherits (const TQString&) const; %End - virtual QVariant property (const QString&) const; - virtual QStringList propertyNames () const; + virtual TQVariant property (const TQString&) const; + virtual TQStringList propertyNames () const; bool isValid () const; - virtual QVariant::Type propertyDef (const QString&) const; - virtual QStringList propertyDefNames () const; - virtual const QMap<QString,QVariant::Type>& propertyDefs () const; - virtual void save (QDataStream&); - virtual void load (QDataStream&); + virtual TQVariant::Type propertyDef (const TQString&) const; + virtual TQStringList propertyDefNames () const; + virtual const TQMap<TQString,TQVariant::Type>& propertyDefs () const; + virtual void save (TQDataStream&); + virtual void load (TQDataStream&); %If ( KDE_3_2_0 - ) KServiceType::Ptr parentType (); @@ -65,8 +65,8 @@ public: KService::List services (); %End - static KServiceType::Ptr serviceType (const QString&); - static KService::List offers (const QString&); + static KServiceType::Ptr serviceType (const TQString&); + static KService::List offers (const TQString&); static KServiceType::List allServiceTypes (); protected: @@ -124,8 +124,8 @@ protected: }; -%MappedType QMap<QString,QVariant::Type> -//converts a Python dict of QString:QVariant +%MappedType TQMap<TQString,TQVariant::Type> +//converts a Python dict of TQString:TQVariant { %TypeHeaderCode #include <qmap.h> @@ -147,16 +147,16 @@ protected: // Get it. - const QMap<QString,QVariant::Type> cppmap = *sipCpp; - QMap<QString,QVariant::Type>::ConstIterator it; + const TQMap<TQString,TQVariant::Type> cppmap = *sipCpp; + TQMap<TQString,TQVariant::Type>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); + TQString acpp = it.key (); int bcpp = (int) it.data (); PyObject *ainst; PyObject *binst = PyInt_FromLong (bcpp); - if (((ainst = sipConvertFromNewType(new QString (acpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_QString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -171,23 +171,23 @@ protected: %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,QVariant::Type> *cppmap = new QMap<QString,QVariant::Type>; + TQMap<TQString,TQVariant::Type> *cppmap = new TQMap<TQString,TQVariant::Type>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QVariant::Type bcpp; + TQString *acpp; + TQVariant::Type bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); if (iserr || !PyInt_Check(belem)) { @@ -199,7 +199,7 @@ protected: return 0; } - bcpp = (QVariant::Type) PyInt_AS_LONG(belem); + bcpp = (TQVariant::Type) PyInt_AS_LONG(belem); cppmap->insert (*acpp, bcpp); @@ -213,7 +213,7 @@ protected: }; -%MappedType QValueList<KServiceType::Ptr> +%MappedType TQValueList<KServiceType::Ptr> //converts a Python list of KServiceType { %TypeHeaderCode @@ -233,11 +233,11 @@ protected: return NULL; // Get it. - QValueList<KServiceType::Ptr> *cList = (QValueList<KServiceType::Ptr> *)sipCpp; + TQValueList<KServiceType::Ptr> *cList = (TQValueList<KServiceType::Ptr> *)sipCpp; PyObject *inst; KSharedPtr <KServiceType> *svc; - QValueList<KServiceType::Ptr>::Iterator it; + TQValueList<KServiceType::Ptr>::Iterator it; for( it = cList->begin(); it != cList->end(); ++it ) { KSharedPtr <KServiceType> svcptr = static_cast<KServiceType::Ptr>(*it); @@ -261,7 +261,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KServiceType::Ptr> *cList = new QValueList<KServiceType::Ptr>; + TQValueList<KServiceType::Ptr> *cList = new TQValueList<KServiceType::Ptr>; PyObject *elem; KServiceType *service; diff --git a/sip/kio/kshellcompletion.sip b/sip/kio/kshellcompletion.sip index 2ada63c..34049eb 100644 --- a/sip/kio/kshellcompletion.sip +++ b/sip/kio/kshellcompletion.sip @@ -33,11 +33,11 @@ class KShellCompletion : KURLCompletion public: KShellCompletion (); - QString makeCompletion (const QString&); + TQString makeCompletion (const TQString&); protected: - void postProcessMatch (QString*); - void postProcessMatches (QStringList*); + void postProcessMatch (TQString*); + void postProcessMatches (TQStringList*); //ig void postProcessMatches (KCompletionMatches*) const; protected: diff --git a/sip/kio/kshred.sip b/sip/kio/kshred.sip index e5277de..966a3bf 100644 --- a/sip/kio/kshred.sip +++ b/sip/kio/kshred.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KShred : QObject +class KShred : TQObject { %TypeHeaderCode #include <kshred.h> @@ -32,18 +32,18 @@ class KShred : QObject public: - KShred (QString); + KShred (TQString); bool fill1s (); bool fill0s (); bool fillbyte (uint); bool fillrandom (); bool fillpattern (uchar*, uint); bool shred (); - static bool shred (QString); + static bool shred (TQString); signals: void processedSize (KIO::filesize_t); - void infoMessage (const QString&); + void infoMessage (const TQString&); }; // class KShred diff --git a/sip/kio/ksycoca.sip b/sip/kio/ksycoca.sip index 959fde8..528a723 100644 --- a/sip/kio/ksycoca.sip +++ b/sip/kio/ksycoca.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KSycoca : QObject, DCOPObject +class KSycoca : TQObject, DCOPObject { %TypeHeaderCode #include <ksycoca.h> @@ -34,9 +34,9 @@ class KSycoca : QObject, DCOPObject public: %If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); + virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); + TQCStringList functions (); + TQCStringList interfaces (); %End @@ -51,17 +51,17 @@ public: static int version (); %End - QDataStream* findEntry (int, KSycocaType& /Out/); - QDataStream* findFactory (KSycocaFactoryId); - QString kfsstnd_prefixes (); - QString language (); + TQDataStream* findEntry (int, KSycocaType& /Out/); + TQDataStream* findFactory (KSycocaFactoryId); + TQString kfsstnd_prefixes (); + TQString language (); ulong timeStamp (); %If ( KDE_3_1_0 - ) ulong updateSignature (); %If ( KDE_3_2_0 - ) - QStringList allResourceDirs (); + TQStringList allResourceDirs (); %End %End @@ -73,7 +73,7 @@ public: void disableAutoRebuild (); %End - static QString determineRelativePath (const QString&, const char*); + static TQString determineRelativePath (const TQString&, const char*); static bool isChanged (const char*); %If ( KDE_3_1_0 - ) @@ -83,7 +83,7 @@ public: public: - void notifyDatabaseChanged (const QStringList&); + void notifyDatabaseChanged (const TQStringList&); signals: void databaseChanged (); diff --git a/sip/kio/ksycocadict.sip b/sip/kio/ksycocadict.sip index 83497d2..ae92d04 100644 --- a/sip/kio/ksycocadict.sip +++ b/sip/kio/ksycocadict.sip @@ -34,16 +34,16 @@ class KSycocaDict public: KSycocaDict (); - KSycocaDict (QDataStream*, int); - void add (const QString&, KSycocaEntry*); - void remove (const QString&); - int find_string (const QString&); + KSycocaDict (TQDataStream*, int); + void add (const TQString&, KSycocaEntry*); + void remove (const TQString&); + int find_string (const TQString&); uint count (); void clear (); - void save (QDataStream&); + void save (TQDataStream&); protected: - Q_UINT32 hashKey (const QString&); + Q_UINT32 hashKey (const TQString&); }; // class KSycocaDict diff --git a/sip/kio/ksycocaentry.sip b/sip/kio/ksycocaentry.sip index d2e7e8d..3544c61 100644 --- a/sip/kio/ksycocaentry.sip +++ b/sip/kio/ksycocaentry.sip @@ -37,24 +37,24 @@ public: public: //ig typedef KSharedPtr<KSycocaEntry> Ptr; -//ig typedef QValueList<KSycocaEntry::Ptr> List; +//ig typedef TQValueList<KSycocaEntry::Ptr> List; public: - KSycocaEntry (const QString&); + KSycocaEntry (const TQString&); %If ( KDE_3_1_0 - ) - static void read (QDataStream&, QString&); - static void read (QDataStream&, QStringList&); + static void read (TQDataStream&, TQString&); + static void read (TQDataStream&, TQStringList&); %End - KSycocaEntry (QDataStream&, int); - virtual QString name () const = 0; - QString entryPath () const; + KSycocaEntry (TQDataStream&, int); + virtual TQString name () const = 0; + TQString entryPath () const; virtual bool isValid () const = 0; virtual bool isDeleted () const; int offset (); - virtual void save (QDataStream&); - virtual void load (QDataStream&) = 0; + virtual void save (TQDataStream&); + virtual void load (TQDataStream&) = 0; protected: diff --git a/sip/kio/ksycocafactory.sip b/sip/kio/ksycocafactory.sip index 1e8d162..44cb184 100644 --- a/sip/kio/ksycocafactory.sip +++ b/sip/kio/ksycocafactory.sip @@ -40,7 +40,7 @@ protected: public: int offset (); //ig KSycocaEntryDict* entryDict (); - virtual KSycocaEntry* createEntry (const QString&, const char*) = 0; + virtual KSycocaEntry* createEntry (const TQString&, const char*) = 0; virtual void addEntry (KSycocaEntry*, const char*); %If ( KDE_3_2_0 - ) @@ -49,8 +49,8 @@ public: virtual KSycocaEntry* createEntry (int) = 0; KSycocaEntry::List allEntries (); - virtual void save (QDataStream&); - virtual void saveHeader (QDataStream&); + virtual void save (TQDataStream&); + virtual void saveHeader (TQDataStream&); //ig virtual const KSycocaResourceList* resourceList () const; protected: @@ -60,4 +60,4 @@ protected: }; // class KSycocaFactory -//ig typedef QDict<KSycocaEntry::Ptr> KSycocaEntryDict; +//ig typedef TQDict<KSycocaEntry::Ptr> KSycocaEntryDict; diff --git a/sip/kio/ktar.sip b/sip/kio/ktar.sip index f67b4d1..4d8adf8 100644 --- a/sip/kio/ktar.sip +++ b/sip/kio/ktar.sip @@ -32,25 +32,25 @@ class KTar : KArchive public: - KTar (const QString&, const QString& = QString ::null ); - KTar (QIODevice*); - QString fileName (); - void setOrigFileName (const QCString&); + KTar (const TQString&, const TQString& = TQString ::null ); + KTar (TQIODevice*); + TQString fileName (); + void setOrigFileName (const TQCString&); %If ( KDE_3_2_0 - ) - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); %End - virtual bool writeDir (const QString&, const QString&, const QString&); + virtual bool writeDir (const TQString&, const TQString&, const TQString&); %If ( KDE_3_2_0 - ) - bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeDir (const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); %End - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + virtual bool prepareWriting (const TQString&, const TQString&, const TQString&, uint); %If ( KDE_3_2_0 - ) - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool prepareWriting (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); %End virtual bool doneWriting (uint); @@ -63,9 +63,9 @@ protected: //igx virtual void virtual_hook (int, void*); %If ( KDE_3_2_0 - ) - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool prepareWriting_impl (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); + bool writeDir_impl (const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); %End diff --git a/sip/kio/ktrader.sip b/sip/kio/ktrader.sip index 1a2e358..19de25a 100644 --- a/sip/kio/ktrader.sip +++ b/sip/kio/ktrader.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KTrader : QObject +class KTrader : TQObject { %TypeHeaderCode #include <ktrader.h> @@ -32,14 +32,14 @@ class KTrader : QObject public: -//ig typedef QValueList<KService::Ptr> OfferList; +//ig typedef TQValueList<KService::Ptr> OfferList; %If ( KDE_3_1_0 - ) -//ig typedef QValueListIterator<KService::Ptr> OfferListIterator; +//ig typedef TQValueListIterator<KService::Ptr> OfferListIterator; %End - virtual KTrader::OfferList query (const QString&, const QString& = QString ::null , const QString& = QString ::null ) const; - KTrader::OfferList query (const QString&, const QString&, const QString&, const QString&) const; + virtual KTrader::OfferList query (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null ) const; + KTrader::OfferList query (const TQString&, const TQString&, const TQString&, const TQString&) const; static KTrader* self (); protected: @@ -69,11 +69,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KService::Ptr> *cpplist = (QValueList<KService::Ptr> *)sipCpp; + TQValueList<KService::Ptr> *cpplist = (TQValueList<KService::Ptr> *)sipCpp; PyObject *inst; // Get it. - QValueList<KService::Ptr>::Iterator it; + TQValueList<KService::Ptr>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { KService::Ptr cpp = *it; @@ -94,7 +94,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KService::Ptr> *cpplist = new QValueList<KService::Ptr>; + TQValueList<KService::Ptr> *cpplist = new TQValueList<KService::Ptr>; PyObject *elem; KService::Ptr *cpp; diff --git a/sip/kio/kurifilter.sip b/sip/kio/kurifilter.sip index e9f8f21..c2c331c 100644 --- a/sip/kio/kurifilter.sip +++ b/sip/kio/kurifilter.sip @@ -49,37 +49,37 @@ public: KURIFilterData (); KURIFilterData (const KURL&); - KURIFilterData (const QString&); + KURIFilterData (const TQString&); KURIFilterData (const KURIFilterData&); bool hasBeenFiltered () const; KURL uri () const; - QString errorMsg () const; + TQString errorMsg () const; URITypes uriType () const; - void setData (const QString&); + void setData (const TQString&); void setData (const KURL&); - bool setAbsolutePath (const QString&); - QString absolutePath () const; + bool setAbsolutePath (const TQString&); + TQString absolutePath () const; bool hasAbsolutePath () const; - QString argsAndOptions () const; + TQString argsAndOptions () const; bool hasArgsAndOptions () const; - QString iconName (); + TQString iconName (); %If ( KDE_3_2_0 - ) void setCheckForExecutables (bool); bool checkForExecutables () const; - QString typedString () const; + TQString typedString () const; %End protected: void init (const KURL&); - void init (const KURL& = KURL (QString ::null )) [void (QString&)]; + void init (const KURL& = KURL (TQString ::null )) [void (TQString&)]; %MethodCode -//takes url | (KURL = KURL(QString.null)) +//takes url | (KURL = KURL(TQString.null)) Py_BEGIN_ALLOW_THREADS if (a0 == 0) - sipCpp -> sipProtect_init(QString::null); + sipCpp -> sipProtect_init(TQString::null); else sipCpp -> sipProtect_init(*a0); Py_END_ALLOW_THREADS @@ -89,7 +89,7 @@ protected: }; // class KURIFilterData -class KURIFilterPlugin : QObject +class KURIFilterPlugin : TQObject { %TypeHeaderCode #include <qstringlist.h> @@ -98,18 +98,18 @@ class KURIFilterPlugin : QObject public: - KURIFilterPlugin (QObject* = 0, const char* = 0, double = 1.0); - virtual QString name () const; + KURIFilterPlugin (TQObject* = 0, const char* = 0, double = 1.0); + virtual TQString name () const; virtual double priority () const; virtual bool filterURI (KURIFilterData&) const = 0; - virtual KCModule* configModule (QWidget*, const char*) const; - virtual QString configName () const; + virtual KCModule* configModule (TQWidget*, const char*) const; + virtual TQString configName () const; protected: void setFilteredURI (KURIFilterData&, const KURL&) const; - void setErrorMsg (KURIFilterData&, const QString&) const; + void setErrorMsg (KURIFilterData&, const TQString&) const; void setURIType (KURIFilterData&, KURIFilterData::URITypes) const; - void setArguments (KURIFilterData&, const QString&) const; + void setArguments (KURIFilterData&, const TQString&) const; protected: //igx virtual void virtual_hook (int, void*); @@ -127,15 +127,15 @@ class KURIFilter public: static KURIFilter* self (); - bool filterURI (KURIFilterData&, const QStringList& = QStringList ()); - bool filterURI (KURL&, const QStringList& = QStringList ()); - bool filterURI (QString&, const QStringList& = QStringList ()); - KURL filteredURI (const KURL&, const QStringList& = QStringList ()); - QString filteredURI (const QString&, const QStringList& = QStringList ()); -//ig QPtrListIterator<KURIFilterPlugin> pluginsIterator () const; + bool filterURI (KURIFilterData&, const TQStringList& = TQStringList ()); + bool filterURI (KURL&, const TQStringList& = TQStringList ()); + bool filterURI (TQString&, const TQStringList& = TQStringList ()); + KURL filteredURI (const KURL&, const TQStringList& = TQStringList ()); + TQString filteredURI (const TQString&, const TQStringList& = TQStringList ()); +//ig TQPtrListIterator<KURIFilterPlugin> pluginsIterator () const; %If ( KDE_3_1_0 - ) - QStringList pluginNames () const; + TQStringList pluginNames () const; %End diff --git a/sip/kio/kurlcompletion.sip b/sip/kio/kurlcompletion.sip index dc927df..237fb44 100644 --- a/sip/kio/kurlcompletion.sip +++ b/sip/kio/kurlcompletion.sip @@ -42,9 +42,9 @@ public: KURLCompletion (); KURLCompletion (KURLCompletion::Mode); - virtual QString makeCompletion (const QString&); - virtual void setDir (const QString&); - virtual QString dir (); + virtual TQString makeCompletion (const TQString&); + virtual void setDir (const TQString&); + virtual TQString dir (); virtual bool isRunning (); virtual void stop (); virtual Mode mode (); @@ -53,20 +53,20 @@ public: virtual void setReplaceEnv (bool); virtual bool replaceHome (); virtual void setReplaceHome (bool); - QString replacedPath (const QString&); + TQString replacedPath (const TQString&); %If ( KDE_3_2_0 - ) - static QString replacedPath (const QString&, bool, bool = 1); + static TQString replacedPath (const TQString&, bool, bool = 1); %End protected: - void postProcessMatch (QString*); - void postProcessMatches (QStringList*); + void postProcessMatch (TQString*); + void postProcessMatches (TQStringList*); //ig void postProcessMatches (KCompletionMatches*) const; %If ( KDE_3_3_0 - ) - virtual void customEvent (QCustomEvent*); + virtual void customEvent (TQCustomEvent*); %End diff --git a/sip/kio/kurlpixmapprovider.sip b/sip/kio/kurlpixmapprovider.sip index 3f2f336..0917f5d 100644 --- a/sip/kio/kurlpixmapprovider.sip +++ b/sip/kio/kurlpixmapprovider.sip @@ -32,7 +32,7 @@ class KURLPixmapProvider : KPixmapProvider public: - virtual QPixmap pixmapFor (const QString&, int = 0); + virtual TQPixmap pixmapFor (const TQString&, int = 0); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/kuserprofile.sip b/sip/kio/kuserprofile.sip index 77cec50..233d682 100644 --- a/sip/kio/kuserprofile.sip +++ b/sip/kio/kuserprofile.sip @@ -56,21 +56,21 @@ class KServiceTypeProfile public: - typedef QValueList<KServiceOffer> OfferList; - int preference (const QString&) const; - bool allowAsDefault (const QString&) const; + typedef TQValueList<KServiceOffer> OfferList; + int preference (const TQString&) const; + bool allowAsDefault (const TQString&) const; KServiceTypeProfile::OfferList offers () const; - static KService::Ptr preferredService (const QString&, const QString&); - static KServiceTypeProfile* serviceTypeProfile (const QString&, const QString&); - static KServiceTypeProfile::OfferList offers (const QString&, const QString&); - static const QPtrList<KServiceTypeProfile>& serviceTypeProfiles (); + static KService::Ptr preferredService (const TQString&, const TQString&); + static KServiceTypeProfile* serviceTypeProfile (const TQString&, const TQString&); + static KServiceTypeProfile::OfferList offers (const TQString&, const TQString&); + static const TQPtrList<KServiceTypeProfile>& serviceTypeProfiles (); static void clear (); static void setConfigurationMode (); static bool configurationMode (); protected: - KServiceTypeProfile (const QString&, const QString& = QString ::null ); - void addService (const QString&, int = 1, bool = 1); + KServiceTypeProfile (const TQString&, const TQString& = TQString ::null ); + void addService (const TQString&, int = 1, bool = 1); }; // class KServiceTypeProfile @@ -94,11 +94,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KServiceOffer> *cpplist = (QValueList<KServiceOffer> *)sipCpp; + TQValueList<KServiceOffer> *cpplist = (TQValueList<KServiceOffer> *)sipCpp; PyObject *inst; // Get it. - QValueList<KServiceOffer>::Iterator it; + TQValueList<KServiceOffer>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KServiceOffer(*it), sipType_KServiceOffer, NULL)) == NULL) @@ -116,7 +116,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KServiceOffer> *cpplist = new QValueList<KServiceOffer>; + TQValueList<KServiceOffer> *cpplist = new TQValueList<KServiceOffer>; PyObject *elem; KServiceOffer *cpp; @@ -144,13 +144,13 @@ protected: }; -%MappedType QPtrList<KServiceTypeProfile> +%MappedType TQPtrList<KServiceTypeProfile> //converts a Python list of KServiceTypeProfile { %TypeHeaderCode #include <qptrlist.h> #include <kservicetype.h> -//typedef QPtrList<KServiceTypeProfile> SvcTypeProfileList; +//typedef TQPtrList<KServiceTypeProfile> SvcTypeProfileList; %End %ConvertFromTypeCode @@ -168,7 +168,7 @@ protected: // Get it. - QPtrList<KServiceTypeProfile> *cList = (QPtrList<KServiceTypeProfile> *)sipCpp; + TQPtrList<KServiceTypeProfile> *cList = (TQPtrList<KServiceTypeProfile> *)sipCpp; PyObject *inst; KServiceTypeProfile *svc; @@ -192,7 +192,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<KServiceTypeProfile> *cList = new QPtrList<KServiceTypeProfile>; + TQPtrList<KServiceTypeProfile> *cList = new TQPtrList<KServiceTypeProfile>; PyObject *elem; KServiceTypeProfile *service; diff --git a/sip/kio/kzip.sip b/sip/kio/kzip.sip index 184e64c..6fcfabc 100644 --- a/sip/kio/kzip.sip +++ b/sip/kio/kzip.sip @@ -34,9 +34,9 @@ class KZip : KArchive public: - KZip (const QString&); - KZip (QIODevice*); - QString fileName (); + KZip (const TQString&); + KZip (TQIODevice*); + TQString fileName (); %If ( KDE_3_2_0 - ) @@ -60,13 +60,13 @@ public: void setCompression (KZip::Compression); KZip::Compression compression () const; - virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + virtual bool writeFile (const TQString&, const TQString&, const TQString&, uint, const char*); + virtual bool prepareWriting (const TQString&, const TQString&, const TQString&, uint); %If ( KDE_3_2_0 - ) - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); + bool writeSymLink (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); + bool prepareWriting (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t, const char*); %End bool writeData (const char*, uint); @@ -75,15 +75,15 @@ public: protected: virtual bool openArchive (int); virtual bool closeArchive (); - virtual bool writeDir (const QString&, const QString&, const QString&); + virtual bool writeDir (const TQString&, const TQString&, const TQString&); protected: virtual void virtual_hook (int, void*); %If ( KDE_3_2_0 - ) bool writeData_impl (const char*, uint); - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool prepareWriting_impl (const TQString&, const TQString&, const TQString&, uint, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const TQString&, const TQString&, const TQString&, const TQString&, mode_t, time_t, time_t, time_t); %End @@ -102,7 +102,7 @@ class KZipFileEntry : KArchiveFile public: - KZipFileEntry (KZip*, const QString&, int, int, const QString&, const QString&, const QString&, const QString&, Q_LONG, Q_LONG, int, Q_LONG); + KZipFileEntry (KZip*, const TQString&, int, int, const TQString&, const TQString&, const TQString&, const TQString&, Q_LONG, Q_LONG, int, Q_LONG); int encoding () const; Q_LONG compressedSize () const; void setCompressedSize (Q_LONG); @@ -110,9 +110,9 @@ public: Q_LONG headerStart () const; ulong crc32 () const; void setCRC32 (ulong); - QString path () const; - virtual QByteArray data () const; - QIODevice* device () const; + TQString path () const; + virtual TQByteArray data () const; + TQIODevice* device () const; }; // class KZipFileEntry diff --git a/sip/kio/metainfojob.sip b/sip/kio/metainfojob.sip index 691cb18..1abee91 100644 --- a/sip/kio/metainfojob.sip +++ b/sip/kio/metainfojob.sip @@ -40,8 +40,8 @@ class MetaInfoJob : KIO::Job public: MetaInfoJob (const KFileItemList&, bool = 0); void removeItem (const KFileItem*); - static QStringList availablePlugins (); - static QStringList supportedMimeTypes (); + static TQStringList availablePlugins (); + static TQStringList supportedMimeTypes (); signals: void gotMetaInfo (const KFileItem*); diff --git a/sip/kio/netaccess.sip b/sip/kio/netaccess.sip index c4acb6e..cbe0869 100644 --- a/sip/kio/netaccess.sip +++ b/sip/kio/netaccess.sip @@ -26,7 +26,7 @@ namespace KIO { -class NetAccess : QObject +class NetAccess : TQObject { %TypeHeaderCode #include <netaccess.h> @@ -36,38 +36,38 @@ class NetAccess : QObject public: %If ( KDE_3_2_0 - ) - static bool download (const KURL&, QString&, QWidget*); + static bool download (const KURL&, TQString&, TQWidget*); %End - static bool download (const KURL&, QString&); - static void removeTempFile (const QString&); + static bool download (const KURL&, TQString&); + static void removeTempFile (const TQString&); %If ( KDE_3_2_0 - ) - static bool upload (const QString&, const KURL&, QWidget*); + static bool upload (const TQString&, const KURL&, TQWidget*); %End - static bool upload (const QString&, const KURL&); + static bool upload (const TQString&, const KURL&); %If ( KDE_3_2_0 - ) - static bool copy (const KURL&, const KURL&, QWidget*); + static bool copy (const KURL&, const KURL&, TQWidget*); %End static bool copy (const KURL&, const KURL&); %If ( KDE_3_2_0 - ) - static bool file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); - static bool file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); - static bool dircopy (const KURL&, const KURL&, QWidget*); + static bool file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, TQWidget* = 0); + static bool file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, TQWidget* = 0); + static bool dircopy (const KURL&, const KURL&, TQWidget*); %End static bool dircopy (const KURL&, const KURL&); %If ( KDE_3_2_0 - ) - static bool dircopy (const KURL::List&, const KURL&, QWidget* = 0); - static bool move (const KURL&, const KURL&, QWidget* = 0); - static bool move (const KURL::List&, const KURL&, QWidget* = 0); - static bool exists (const KURL&, bool, QWidget*); - static bool exists (const KURL&, QWidget*); + static bool dircopy (const KURL::List&, const KURL&, TQWidget* = 0); + static bool move (const KURL&, const KURL&, TQWidget* = 0); + static bool move (const KURL::List&, const KURL&, TQWidget* = 0); + static bool exists (const KURL&, bool, TQWidget*); + static bool exists (const KURL&, TQWidget*); %End static bool exists (const KURL&); @@ -76,7 +76,7 @@ public: static bool exists (const KURL&, bool); %If ( KDE_3_2_0 - ) - static bool stat (const KURL&, KIO::UDSEntry&, QWidget*); + static bool stat (const KURL&, KIO::UDSEntry&, TQWidget*); %End %End @@ -84,34 +84,34 @@ public: static bool stat (const KURL&, KIO::UDSEntry&); %If ( KDE_3_5_0 - ) - static KURL mostLocalURL (const KURL&, QWidget*); + static KURL mostLocalURL (const KURL&, TQWidget*); %End %If ( KDE_3_2_0 - ) - static bool del (const KURL&, QWidget*); + static bool del (const KURL&, TQWidget*); %End static bool del (const KURL&) /PyName=del_/; %If ( KDE_3_2_0 - ) - static bool mkdir (const KURL&, QWidget*, int = -1); + static bool mkdir (const KURL&, TQWidget*, int = -1); %End static bool mkdir (const KURL&, int = -1); %If ( KDE_3_2_0 - ) - static QString fish_execute (const KURL&, const QString, QWidget*); + static TQString fish_execute (const KURL&, const TQString, TQWidget*); %If ( KDE_3_3_1 - ) - static bool synchronousRun (KIO::Job*, QWidget*, QByteArray* = 0, KURL* = 0, QMap<QString,QString>* = 0); + static bool synchronousRun (KIO::Job*, TQWidget*, TQByteArray* = 0, KURL* = 0, TQMap<TQString,TQString>* = 0); %End - static QString mimetype (const KURL&, QWidget*); + static TQString mimetype (const KURL&, TQWidget*); %End -//ig static QString mimetype (const KURL&); - static QString lastErrorString (); +//ig static TQString mimetype (const KURL&); + static TQString lastErrorString (); %If ( KDE_3_3_0 - ) static int lastError (); diff --git a/sip/kio/observer.sip b/sip/kio/observer.sip index 0b6fb60..748304a 100644 --- a/sip/kio/observer.sip +++ b/sip/kio/observer.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class Observer : QObject, DCOPObject +class Observer : TQObject, DCOPObject { %TypeHeaderCode #include <observer.h> @@ -34,9 +34,9 @@ class Observer : QObject, DCOPObject public: %If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); + virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); + TQCStringList functions (); + TQCStringList interfaces (); %End @@ -44,16 +44,16 @@ public: static Observer* self (); int newJob (KIO::Job*, bool); void jobFinished (int); - bool openPassDlg (const QString&, QString&, QString&, bool); + bool openPassDlg (const TQString&, TQString&, TQString&, bool); bool openPassDlg (KIO::AuthInfo&); - int messageBox (int, int, const QString&, const QString&, const QString&, const QString&); + int messageBox (int, int, const TQString&, const TQString&, const TQString&, const TQString&); %If ( KDE_3_3_0 - ) - static int messageBox (int, int, const QString&, const QString&, const QString&, const QString&, const QString&); + static int messageBox (int, int, const TQString&, const TQString&, const TQString&, const TQString&, const TQString&); %End - KIO::RenameDlg_Result open_RenameDlg (KIO::Job*, const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = -1, KIO::filesize_t = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); - KIO::SkipDlg_Result open_SkipDlg (KIO::Job*, bool, const QString&); + KIO::RenameDlg_Result open_RenameDlg (KIO::Job*, const TQString&, const TQString&, const TQString&, KIO::RenameDlg_Mode, TQString&, KIO::filesize_t = -1, KIO::filesize_t = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); + KIO::SkipDlg_Result open_SkipDlg (KIO::Job*, bool, const TQString&); public: void killJob (int); @@ -72,7 +72,7 @@ public slots: void slotProcessedDirs (KIO::Job*, ulong); void slotSpeed (KIO::Job*, ulong); void slotPercent (KIO::Job*, ulong); - void slotInfoMessage (KIO::Job*, const QString&); + void slotInfoMessage (KIO::Job*, const TQString&); void slotCopying (KIO::Job*, const KURL&, const KURL&); void slotMoving (KIO::Job*, const KURL&, const KURL&); void slotDeleting (KIO::Job*, const KURL&); @@ -86,8 +86,8 @@ public slots: public: void stating (KIO::Job*, const KURL&); - void mounting (KIO::Job*, const QString&, const QString&); - void unmounting (KIO::Job*, const QString&); + void mounting (KIO::Job*, const TQString&, const TQString&); + void unmounting (KIO::Job*, const TQString&); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/passdlg.sip b/sip/kio/passdlg.sip index 434f40b..1a4d96d 100644 --- a/sip/kio/passdlg.sip +++ b/sip/kio/passdlg.sip @@ -34,11 +34,11 @@ class PasswordDialog : KDialogBase public: - PasswordDialog (const QString&, const QString&, bool = 0, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); - void setPrompt (const QString&); - void addCommentLine (const QString&, const QString); - QString password () const; - QString username () const; + PasswordDialog (const TQString&, const TQString&, bool = 0, bool = 1, TQWidget* /TransferThis/ = 0, const char* = 0); + void setPrompt (const TQString&); + void addCommentLine (const TQString&, const TQString); + TQString password () const; + TQString username () const; bool keepPassword () const; %If ( KDE_3_2_0 - ) @@ -49,15 +49,15 @@ public: void setEnableUserField (bool, bool = 0); %If ( KDE_3_1_0 - ) - void setPassword (const QString&); + void setPassword (const TQString&); %If ( KDE_3_4_0 - ) - void setKnownLogins (const QMap<QString,QString>&); + void setKnownLogins (const TQMap<TQString,TQString>&); %End %End - static int getNameAndPassword (QString& /Out/, QString& /Out/, bool* /In, Out/, const QString& = QString ::null , bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + static int getNameAndPassword (TQString& /Out/, TQString& /Out/, bool* /In, Out/, const TQString& = TQString ::null , bool = 0, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null ); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/paste.sip b/sip/kio/paste.sip index 2757894..64deae4 100644 --- a/sip/kio/paste.sip +++ b/sip/kio/paste.sip @@ -30,16 +30,16 @@ namespace KIO { KIO::Job* pasteClipboard (const KURL&, bool = 0); -void pasteData (const KURL&, const QByteArray&); +void pasteData (const KURL&, const TQByteArray&); %If ( KDE_3_2_0 - ) -KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&); +KIO::CopyJob* pasteDataAsync (const KURL&, const TQByteArray&); %If ( KDE_3_3_0 - ) -KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&, const QString&); +KIO::CopyJob* pasteDataAsync (const KURL&, const TQByteArray&, const TQString&); %If ( KDE_3_5_0 - ) -KIO::CopyJob* pasteMimeSource (QMimeSource*, const KURL&, const QString&, QWidget*, bool = 0); +KIO::CopyJob* pasteMimeSource (TQMimeSource*, const KURL&, const TQString&, TQWidget*, bool = 0); %End %End @@ -49,7 +49,7 @@ KIO::CopyJob* pasteMimeSource (QMimeSource*, const KURL&, const QString&, bool isClipboardEmpty (); %If ( KDE_3_5_0 - ) -QString pasteActionText (); +TQString pasteActionText (); %End }; // namespace KIO diff --git a/sip/kio/previewjob.sip b/sip/kio/previewjob.sip index 8096b6f..195b634 100644 --- a/sip/kio/previewjob.sip +++ b/sip/kio/previewjob.sip @@ -34,15 +34,15 @@ class PreviewJob : KIO::Job public: - PreviewJob (const KFileItemList&, int, int, int, int, bool, bool, const QStringList*, bool = 0); + PreviewJob (const KFileItemList&, int, int, int, int, bool, bool, const TQStringList*, bool = 0); void removeItem (const KFileItem*); %If ( KDE_3_4_0 - ) void setIgnoreMaximumSize (bool = 1); %End - static QStringList availablePlugins (); - static QStringList supportedMimeTypes (); + static TQStringList availablePlugins (); + static TQStringList supportedMimeTypes (); %If ( KDE_3_5_1 - ) virtual void kill (bool = 1); @@ -50,13 +50,13 @@ public: signals: - void gotPreview (const KFileItem*, const QPixmap&); + void gotPreview (const KFileItem*, const TQPixmap&); void failed (const KFileItem*); protected: void getOrCreateThumbnail (); bool statResultThumbnail (); - void createThumbnail (QString); + void createThumbnail (TQString); protected slots: virtual void slotResult (KIO::Job*); @@ -66,7 +66,7 @@ protected: }; // class PreviewJob -KIO::PreviewJob* filePreview (const KFileItemList&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); -KIO::PreviewJob* filePreview (const KURL::List&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); +KIO::PreviewJob* filePreview (const KFileItemList&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const TQStringList* = 0); +KIO::PreviewJob* filePreview (const KURL::List&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const TQStringList* = 0); }; // namespace KIO diff --git a/sip/kio/progressbase.sip b/sip/kio/progressbase.sip index 0c6330e..2dd106f 100644 --- a/sip/kio/progressbase.sip +++ b/sip/kio/progressbase.sip @@ -38,7 +38,7 @@ enum Progress }; -class ProgressBase : QWidget +class ProgressBase : TQWidget { %TypeHeaderCode #include <progressbase.h> @@ -46,7 +46,7 @@ class ProgressBase : QWidget public: - ProgressBase (QWidget* /TransferThis/); + ProgressBase (TQWidget* /TransferThis/); void setJob (KIO::Job*); void setJob (KIO::CopyJob*); void setJob (KIO::DeleteJob*); @@ -84,7 +84,7 @@ protected slots: void slotFinished (KIO::Job*); protected: - virtual void closeEvent (QCloseEvent*); + virtual void closeEvent (TQCloseEvent*); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/renamedlg.sip b/sip/kio/renamedlg.sip index 79c9bc1..5890497 100644 --- a/sip/kio/renamedlg.sip +++ b/sip/kio/renamedlg.sip @@ -55,12 +55,12 @@ enum RenameDlg_Result }; -//ig class RenameDlg : QDialog; +//ig class RenameDlg : TQDialog; -//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = (KIO ::filesize_t )-1 , KIO::filesize_t = (KIO ::filesize_t )-1 , time_t = -1 , time_t = -1 , time_t = -1 , time_t = -1 ); +//ig KIO::RenameDlg_Result open_RenameDlg (const TQString&, const TQString&, const TQString&, KIO::RenameDlg_Mode, TQString&, KIO::filesize_t = (KIO ::filesize_t )-1 , KIO::filesize_t = (KIO ::filesize_t )-1 , time_t = -1 , time_t = -1 , time_t = -1 , time_t = -1 ); %If ( - KDE_3_1_5 ) -//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, ulong = -1, ulong = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); +//ig KIO::RenameDlg_Result open_RenameDlg (const TQString&, const TQString&, const TQString&, KIO::RenameDlg_Mode, TQString&, ulong = -1, ulong = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); %End }; // namespace KIO diff --git a/sip/kio/renamedlgplugin.sip b/sip/kio/renamedlgplugin.sip index 784dabf..24e96ee 100644 --- a/sip/kio/renamedlgplugin.sip +++ b/sip/kio/renamedlgplugin.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class RenameDlgPlugin : QWidget +class RenameDlgPlugin : TQWidget { %TypeHeaderCode #include <renamedlgplugin.h> @@ -32,8 +32,8 @@ class RenameDlgPlugin : QWidget public: - RenameDlgPlugin (QDialog*, const char*, const QStringList& = QStringList ()); - virtual bool initialize (KIO::RenameDlg_Mode, const QString&, const QString&, const QString&, const QString&, KIO::filesize_t, KIO::filesize_t, time_t, time_t, time_t, time_t); + RenameDlgPlugin (TQDialog*, const char*, const TQStringList& = TQStringList ()); + virtual bool initialize (KIO::RenameDlg_Mode, const TQString&, const TQString&, const TQString&, const TQString&, KIO::filesize_t, KIO::filesize_t, time_t, time_t, time_t, time_t); }; // class RenameDlgPlugin diff --git a/sip/kio/scheduler.sip b/sip/kio/scheduler.sip index 31d3913..e0995bc 100644 --- a/sip/kio/scheduler.sip +++ b/sip/kio/scheduler.sip @@ -26,7 +26,7 @@ namespace KIO { -class Scheduler : QObject, DCOPObject +class Scheduler : TQObject, DCOPObject { %TypeHeaderCode #include <scheduler.h> @@ -34,7 +34,7 @@ class Scheduler : QObject, DCOPObject public: -//ig typedef QPtrList<KIO::SimpleJob> JobList; +//ig typedef TQPtrList<KIO::SimpleJob> JobList; static void doJob (KIO::SimpleJob*); static void scheduleJob (KIO::SimpleJob*); static void cancelJob (KIO::SimpleJob*); @@ -51,33 +51,33 @@ public: static bool disconnectSlave (KIO::Slave*); %If ( KDE_3_1_0 - ) - static void registerWindow (QWidget*); + static void registerWindow (TQWidget*); %If ( KDE_3_2_0 - ) - static void unregisterWindow (QObject*); + static void unregisterWindow (TQObject*); %End %End - static bool connect (const char*, const QObject*, const char*); - static bool connect (const QObject*, const char*, const QObject*, const char*); - static bool disconnect (const QObject*, const char*, const QObject*, const char*); - bool connect (const QObject*, const char*, const char*); + static bool connect (const char*, const TQObject*, const char*); + static bool connect (const TQObject*, const char*, const TQObject*, const char*); + static bool disconnect (const TQObject*, const char*, const TQObject*, const char*); + bool connect (const TQObject*, const char*, const char*); static void checkSlaveOnHold (bool); void debug_info (); - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - virtual QCStringList functions (); + virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); + virtual TQCStringList functions (); public slots: void slotSlaveDied (KIO::Slave*); - void slotSlaveStatus (pid_t, const QCString&, const QString&, bool); + void slotSlaveStatus (pid_t, const TQCString&, const TQString&, bool); signals: void slaveConnected (KIO::Slave*); - void slaveError (KIO::Slave*, int, const QString&); + void slaveError (KIO::Slave*, int, const TQString&); protected: - void setupSlave (KIO::Slave*, const KURL&, const QString&, const QString&, bool, const KIO::MetaData* = 0); + void setupSlave (KIO::Slave*, const KURL&, const TQString&, const TQString&, bool, const KIO::MetaData* = 0); //ig bool startJobScheduled (KIO::Scheduler::ProtocolInfo*); bool startJobDirect (); Scheduler (); @@ -86,11 +86,11 @@ protected slots: void startStep (); void slotCleanIdleSlaves (); void slotSlaveConnected (); - void slotSlaveError (int, const QString&); + void slotSlaveError (int, const TQString&); void slotScheduleCoSlave (); %If ( KDE_3_1_0 - ) - void slotUnregisterWindow (QObject*); + void slotUnregisterWindow (TQObject*); %End diff --git a/sip/kio/sessiondata.sip b/sip/kio/sessiondata.sip index 2ba2582..ba8d723 100644 --- a/sip/kio/sessiondata.sip +++ b/sip/kio/sessiondata.sip @@ -26,7 +26,7 @@ namespace KIO { -class SessionData : QObject +class SessionData : TQObject { %TypeHeaderCode #include <sessiondata.h> @@ -35,12 +35,12 @@ class SessionData : QObject public: SessionData (); - virtual void configDataFor (KIO::MetaData&, const QString&, const QString&); + virtual void configDataFor (KIO::MetaData&, const TQString&, const TQString&); virtual void reset (); public slots: - void slotAuthData (const QCString&, const QCString&, bool); - void slotDelAuthData (const QCString&); + void slotAuthData (const TQCString&, const TQCString&, bool); + void slotDelAuthData (const TQCString&); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/skipdlg.sip b/sip/kio/skipdlg.sip index 29bb91f..c0f4ac2 100644 --- a/sip/kio/skipdlg.sip +++ b/sip/kio/skipdlg.sip @@ -37,7 +37,7 @@ enum SkipDlg_Result S_CANCEL }; -//ig KIO::SkipDlg_Result open_SkipDlg (bool, const QString& = QString ::null ); +//ig KIO::SkipDlg_Result open_SkipDlg (bool, const TQString& = TQString ::null ); //ig class SkipDlg : KDialog; diff --git a/sip/kio/slave.sip b/sip/kio/slave.sip index 5db1ad1..e2d4961 100644 --- a/sip/kio/slave.sip +++ b/sip/kio/slave.sip @@ -36,34 +36,34 @@ class Slave : KIO::SlaveInterface protected: %If ( KDE_3_2_0 - ) - Slave (bool, KServerSocket*, const QString&, const QString&); + Slave (bool, KServerSocket*, const TQString&, const TQString&); %End public: - Slave (KServerSocket*, const QString&, const QString&); + Slave (KServerSocket*, const TQString&, const TQString&); void setPID (pid_t); int slave_pid (); void kill (); bool isAlive (); - void setHost (const QString&, int, const QString&, const QString&); + void setHost (const TQString&, int, const TQString&, const TQString&); void resetHost (); void setConfig (const KIO::MetaData&); - QString protocol (); - void setProtocol (const QString&); - QString slaveProtocol (); - QString host (); + TQString protocol (); + void setProtocol (const TQString&); + TQString slaveProtocol (); + TQString host (); int port (); - QString user (); - QString passwd (); - static KIO::Slave* createSlave (const QString&, const KURL&, int& /Out/, QString& /Out/); - static KIO::Slave* holdSlave (const QString&, const KURL&); + TQString user (); + TQString passwd (); + static KIO::Slave* createSlave (const TQString&, const KURL&, int& /Out/, TQString& /Out/); + static KIO::Slave* holdSlave (const TQString&, const KURL&); void suspend (); void resume (); bool suspended (); %If ( KDE_3_2_0 - ) - void send (int, const QByteArray& = QByteArray ()); + void send (int, const TQByteArray& = TQByteArray ()); %End void hold (const KURL&); diff --git a/sip/kio/slavebase.sip b/sip/kio/slavebase.sip index e5caa6c..6d7d68e 100644 --- a/sip/kio/slavebase.sip +++ b/sip/kio/slavebase.sip @@ -34,7 +34,7 @@ class SlaveBase public: - SlaveBase (const QCString&, const QCString&, const QCString&); + SlaveBase (const TQCString&, const TQCString&, const TQCString&); %If ( KDE_3_1_0 - ) void exit (); @@ -43,13 +43,13 @@ public: void dispatchLoop (); void setConnection (KIO::Connection*); KIO::Connection* connection () const; - void data (const QByteArray&); + void data (const TQByteArray&); void dataReq (); - void error (int, const QString&); + void error (int, const TQString&); void connected (); void finished (); void needSubURLData (); - void slaveStatus (const QString&, bool); + void slaveStatus (const TQString&, bool); void statEntry (const KIO::UDSEntry&); void listEntries (const KIO::UDSEntryList&); bool canResume (KIO::filesize_t); @@ -60,9 +60,9 @@ public: void speed (ulong); void redirection (const KURL&); void errorPage (); - void mimeType (const QString&); - void warning (const QString&); - void infoMessage (const QString&); + void mimeType (const TQString&); + void warning (const TQString&); + void infoMessage (const TQString&); enum MessageBoxType { @@ -74,15 +74,15 @@ public: SSLMessageBox }; - int messageBox (KIO::SlaveBase::MessageBoxType, const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + int messageBox (KIO::SlaveBase::MessageBoxType, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null ); %If ( KDE_3_3_0 - ) - int messageBox (const QString&, KIO::SlaveBase::MessageBoxType, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + int messageBox (const TQString&, KIO::SlaveBase::MessageBoxType, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null ); %End - void setMetaData (const QString&, const QString&); - bool hasMetaData (const QString&); - QString metaData (const QString&); + void setMetaData (const TQString&, const TQString&); + bool hasMetaData (const TQString&); + TQString metaData (const TQString&); %If ( KDE_3_5_2 - ) KIO::MetaData allMetaData () const; @@ -94,7 +94,7 @@ public: KRemoteEncoding* remoteEncoding (); %End - virtual void setHost (const QString&, int, const QString&, const QString&); + virtual void setHost (const TQString&, int, const TQString&, const TQString&); virtual void setSubURL (const KURL&); virtual void openConnection (); virtual void closeConnection (); @@ -105,12 +105,12 @@ public: virtual void listDir (const KURL&); virtual void mkdir (const KURL&, int); virtual void rename (const KURL&, const KURL&, bool); - virtual void symlink (const QString&, const KURL&, bool); + virtual void symlink (const TQString&, const KURL&, bool); virtual void chmod (const KURL&, int); virtual void copy (const KURL&, const KURL&, int, bool); virtual void del (const KURL&, bool) /PyName=del_/; - virtual void special (const QByteArray&); - virtual void multiGet (const QByteArray&); + virtual void special (const TQByteArray&); + virtual void multiGet (const TQByteArray&); virtual void slave_status (); virtual void reparseConfiguration (); int connectTimeout (); @@ -119,35 +119,35 @@ public: int readTimeout (); %If ( KDE_3_1_0 - ) - void setTimeoutSpecialCommand (int, const QByteArray& = QByteArray ()); + void setTimeoutSpecialCommand (int, const TQByteArray& = TQByteArray ()); %End static void sigsegv_handler (int); static void sigpipe_handler (int); virtual bool dispatch (); - virtual void dispatch (int, const QByteArray&); - int readData (QByteArray&); + virtual void dispatch (int, const TQByteArray&); + int readData (TQByteArray&); %If ( KDE_3_1_0 - ) void listEntry (const KIO::UDSEntry&, bool); - void connectSlave (const QString&); + void connectSlave (const TQString&); void disconnectSlave (); - bool openPassDlg (KIO::AuthInfo&, const QString&); + bool openPassDlg (KIO::AuthInfo&, const TQString&); bool openPassDlg (KIO::AuthInfo&); bool checkCachedAuthentication (KIO::AuthInfo&); bool cacheAuthentication (const KIO::AuthInfo&); bool pingCacheDaemon () const; - QString createAuthCacheKey (const KURL&); - void sendAuthenticationKey (const QCString&, const QCString&, bool); - void delCachedAuthentication (const QString&); + TQString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const TQCString&, const TQCString&, bool); + void delCachedAuthentication (const TQString&); void setMultipleAuthCaching (bool); bool multipleAuthCaching () const; - bool requestNetwork (const QString& = QString ::null ); - void dropNetwork (const QString& = QString ::null ); + bool requestNetwork (const TQString& = TQString ::null ); + void dropNetwork (const TQString& = TQString ::null ); DCOPClient* dcopClient (); - int waitForAnswer (int, int, QByteArray&, int* = 0); + int waitForAnswer (int, int, TQByteArray&, int* = 0); void sendMetaData (); - QCString mProtocol; + TQCString mProtocol; KIO::Connection* m_pConnection; KIO::MetaData mOutgoingMetaData; KIO::MetaData mIncomingMetaData; @@ -163,20 +163,20 @@ protected: %If ( - KDE_3_1_0 ) void listEntry (const KIO::UDSEntry&, bool); - void connectSlave (const QString&); + void connectSlave (const TQString&); void disconnectSlave (); bool pingCacheDaemon () const; bool openPassDlg (KIO::AuthInfo&); bool checkCachedAuthentication (KIO::AuthInfo&); bool cacheAuthentication (const KIO::AuthInfo&); - QString createAuthCacheKey (const KURL&); - void sendAuthenticationKey (const QCString&, const QCString&, bool); - void delCachedAuthentication (const QString&); + TQString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const TQCString&, const TQCString&, bool); + void delCachedAuthentication (const TQString&); void setMultipleAuthCaching (bool); bool multipleAuthCaching () const; - bool requestNetwork (const QString& = QString ::null ); - void dropNetwork (const QString& = QString ::null ); - int waitForAnswer (int, int, QByteArray&, int* = 0); + bool requestNetwork (const TQString& = TQString ::null ); + void dropNetwork (const TQString& = TQString ::null ); + int waitForAnswer (int, int, TQByteArray&, int* = 0); void sendMetaData (); %End diff --git a/sip/kio/slaveconfig.sip b/sip/kio/slaveconfig.sip index 7ed17c9..d8d2d10 100644 --- a/sip/kio/slaveconfig.sip +++ b/sip/kio/slaveconfig.sip @@ -26,7 +26,7 @@ namespace KIO { -class SlaveConfig : QObject +class SlaveConfig : TQObject { %TypeHeaderCode #include <slaveconfig.h> @@ -35,14 +35,14 @@ class SlaveConfig : QObject public: static KIO::SlaveConfig* self (); - void setConfigData (const QString&, const QString&, const QString&, const QString&); - void setConfigData (const QString&, const QString&, const KIO::MetaData&); - KIO::MetaData configData (const QString&, const QString&); - QString configData (const QString&, const QString&, const QString&); + void setConfigData (const TQString&, const TQString&, const TQString&, const TQString&); + void setConfigData (const TQString&, const TQString&, const KIO::MetaData&); + KIO::MetaData configData (const TQString&, const TQString&); + TQString configData (const TQString&, const TQString&, const TQString&); void reset (); signals: - void configNeeded (const QString&, const QString&); + void configNeeded (const TQString&, const TQString&); protected: SlaveConfig (); diff --git a/sip/kio/slaveinterface.sip b/sip/kio/slaveinterface.sip index 764b78f..2a66eae 100644 --- a/sip/kio/slaveinterface.sip +++ b/sip/kio/slaveinterface.sip @@ -63,7 +63,7 @@ enum Message MSG_RESUME, MSG_SLAVE_STATUS, MSG_SLAVE_ACK, - MSG_NET_REQUEST, + MSG_NET_RETQUEST, MSG_NET_DROP, MSG_NEED_SUBURL_DATA, MSG_CANRESUME, @@ -74,7 +74,7 @@ enum Message %End -class SlaveInterface : QObject +class SlaveInterface : TQObject { %TypeHeaderCode #include <slaveinterface.h> @@ -92,12 +92,12 @@ public: KIO::filesize_t offset () const; signals: - void data (const QByteArray&); + void data (const TQByteArray&); void dataReq (); - void error (int, const QString&); + void error (int, const TQString&); void connected (); void finished (); - void slaveStatus (pid_t, const QCString&, const QString&, bool); + void slaveStatus (pid_t, const TQCString&, const TQString&, bool); void listEntries (const KIO::UDSEntryList&); void statEntry (const KIO::UDSEntry&); void needSubURLData (); @@ -109,27 +109,27 @@ signals: void redirection (const KURL&); void speed (ulong); void errorPage (); - void mimeType (const QString&); - void warning (const QString&); - void infoMessage (const QString&); + void mimeType (const TQString&); + void warning (const TQString&); + void infoMessage (const TQString&); void connectFinished (); - void authorizationKey (const QCString&, const QCString&, bool); - void delAuthorization (const QCString&); + void authorizationKey (const TQCString&, const TQCString&, bool); + void delAuthorization (const TQCString&); protected: virtual bool dispatch (); - virtual bool dispatch (int, const QByteArray&); + virtual bool dispatch (int, const TQByteArray&); void openPassDlg (KIO::AuthInfo&); - void openPassDlg (const QString&, const QString&, const QString&, const QString&, const QString&, bool); - void openPassDlg (const QString&, const QString&, bool); - void messageBox (int, const QString&, const QString&, const QString&, const QString&); + void openPassDlg (const TQString&, const TQString&, const TQString&, const TQString&, const TQString&, bool); + void openPassDlg (const TQString&, const TQString&, bool); + void messageBox (int, const TQString&, const TQString&, const TQString&, const TQString&); %If ( KDE_3_3_0 - ) - void messageBox (int, const QString&, const QString&, const QString&, const QString&, const QString&); + void messageBox (int, const TQString&, const TQString&, const TQString&, const TQString&, const TQString&); %End - void requestNetwork (const QString&, const QString&); - void dropNetwork (const QString&, const QString&); + void requestNetwork (const TQString&, const TQString&); + void dropNetwork (const TQString&, const TQString&); static void sigpipe_handler (int); protected slots: @@ -183,6 +183,6 @@ enum Command %If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KIO::UDSEntry&); -//igx QDataStream& operator >> (QDataStream&, KIO::UDSEntry&); +//igx TQDataStream& operator << (TQDataStream&, const KIO::UDSEntry&); +//igx TQDataStream& operator >> (TQDataStream&, KIO::UDSEntry&); %End diff --git a/sip/kio/statusbarprogress.sip b/sip/kio/statusbarprogress.sip index 5c165bd..4fa221d 100644 --- a/sip/kio/statusbarprogress.sip +++ b/sip/kio/statusbarprogress.sip @@ -34,7 +34,7 @@ class StatusbarProgress : KIO::ProgressBase public: - StatusbarProgress (QWidget* /TransferThis/, bool = 1); + StatusbarProgress (TQWidget* /TransferThis/, bool = 1); void setJob (KIO::Job*); public slots: @@ -45,7 +45,7 @@ public slots: protected: void setMode (); - virtual bool eventFilter (QObject*, QEvent*); + virtual bool eventFilter (TQObject*, TQEvent*); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kio/tcpslavebase.sip b/sip/kio/tcpslavebase.sip index 407b0fc..ec2c09d 100644 --- a/sip/kio/tcpslavebase.sip +++ b/sip/kio/tcpslavebase.sip @@ -34,15 +34,15 @@ class TCPSlaveBase : KIO::SlaveBase public: - TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&); - TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&, bool); + TCPSlaveBase (ushort, const TQCString&, const TQCString&, const TQCString&); + TCPSlaveBase (ushort, const TQCString&, const TQCString&, const TQCString&, bool); protected: ssize_t Write (const void*, ssize_t); ssize_t Read (void*, ssize_t); ssize_t ReadLine (char*, ssize_t); ushort GetPort (ushort); - bool ConnectToHost (const QString&, uint, bool); + bool ConnectToHost (const TQString&, uint, bool); void CloseDescriptor (); bool AtEOF (); bool InitializeSSL (); @@ -52,7 +52,7 @@ protected: ssize_t readLine (char*, ssize_t); void setBlockSize (int); ushort port (ushort); - bool connectToHost (const QString&, uint, bool = 1); + bool connectToHost (const TQString&, uint, bool = 1); %If ( KDE_3_2_0 - ) bool usingSSL () const; @@ -74,7 +74,7 @@ protected: void setConnectTimeout (int); bool isSSLTunnelEnabled (); void setEnableSSLTunnel (bool); - void setRealHost (const QString&); + void setRealHost (const TQString&); void doConstructorStuff (); int verifyCertificate (); void certificatePrompt (); diff --git a/sip/kio/thumbcreator.sip b/sip/kio/thumbcreator.sip index e8aff18..076dcfd 100644 --- a/sip/kio/thumbcreator.sip +++ b/sip/kio/thumbcreator.sip @@ -40,7 +40,7 @@ public: BlendIcon }; - virtual bool create (const QString&, int, int, QImage&) = 0; + virtual bool create (const TQString&, int, int, TQImage&) = 0; virtual ThumbCreator::Flags flags () const; }; // class ThumbCreator |