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/kuserprofile.sip | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/kio/kuserprofile.sip')
-rw-r--r-- | sip/kio/kuserprofile.sip | 32 |
1 files changed, 16 insertions, 16 deletions
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; |