diff options
Diffstat (limited to 'sip/kabc/ldapclient.sip')
-rw-r--r-- | sip/kabc/ldapclient.sip | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sip/kabc/ldapclient.sip b/sip/kabc/ldapclient.sip index baf3f6d..9e66a8a 100644 --- a/sip/kabc/ldapclient.sip +++ b/sip/kabc/ldapclient.sip @@ -25,10 +25,10 @@ %If ( KDE_3_1_0 - ) -namespace KABC +namespace TDEABC { //ig typedef TQValueList<TQByteArray> LdapAttrValue; -//ig typedef TQMap<TQString,KABC::LdapAttrValue> LdapAttrMap; +//ig typedef TQMap<TQString,TDEABC::LdapAttrValue> LdapAttrMap; class LdapObject { @@ -41,22 +41,22 @@ public: LdapObject (); %If ( KDE_3_3_0 - ) - LdapObject (const TQString&, KABC::LdapClient*); + LdapObject (const TQString&, TDEABC::LdapClient*); %End - LdapObject (const KABC::LdapObject&); + LdapObject (const TDEABC::LdapObject&); TQString toString () const; void clear (); TQString dn; //ig LdapAttrMap attrs; %If ( KDE_3_3_0 - ) - KABC::LdapClient* client; + TDEABC::LdapClient* client; %End protected: - void assign (const KABC::LdapObject&); + void assign (const TDEABC::LdapObject&); public: @@ -82,7 +82,7 @@ public: signals: void done (); void error (const TQString&); - void result (const KABC::LdapObject&); + void result (const TDEABC::LdapObject&); public slots: void setHost (const TQString&); @@ -138,7 +138,7 @@ public: %If ( KDE_3_3_0 - ) -typedef TQValueList<KABC::LdapResult> LdapResultList; +typedef TQValueList<TDEABC::LdapResult> LdapResultList; %End @@ -159,22 +159,22 @@ signals: void searchData (const TQStringList&); %If ( KDE_3_3_0 - ) - void searchData (const KABC::LdapResultList&); + void searchData (const TDEABC::LdapResultList&); %End void searchDone (); }; // class LdapSearch -}; // namespace KABC +}; // namespace TDEABC %End %If (KDE_3_3_0 - ) -%MappedType KABC::LdapResultList -//converts a Python list of KABC::LdapREsult +%MappedType TDEABC::LdapResultList +//converts a Python list of TDEABC::LdapREsult { %TypeHeaderCode #include <ldapclient.h> @@ -189,14 +189,14 @@ signals: if ((pylist = PyList_New(0)) == NULL) return NULL; - TQValueList<KABC::LdapResult> *cpplist = (TQValueList<KABC::LdapResult> *)sipCpp; + TQValueList<TDEABC::LdapResult> *cpplist = (TQValueList<TDEABC::LdapResult> *)sipCpp; PyObject *inst; // Get it. - TQValueList<KABC::LdapResult>::Iterator it; + TQValueList<TDEABC::LdapResult>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { - if (((inst = sipConvertFromNewType(new KABC::LdapResult(*it), sipType_KABC_LdapResult, NULL)) == NULL) + if (((inst = sipConvertFromNewType(new TDEABC::LdapResult(*it), sipType_KABC_LdapResult, NULL)) == NULL) || PyList_Append (pylist, inst) < 0) { Py_DECREF (pylist); @@ -212,16 +212,16 @@ signals: if (sipIsErr == NULL) return PyList_Check(sipPy); - TQValueList<KABC::LdapResult> *cpplist = new TQValueList<KABC::LdapResult>; + TQValueList<TDEABC::LdapResult> *cpplist = new TQValueList<TDEABC::LdapResult>; PyObject *elem; - KABC::LdapResult *cpp; + TDEABC::LdapResult *cpp; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) { elem = PyList_GET_ITEM (sipPy, i); - cpp = (KABC::LdapResult *)sipForceConvertToType(elem, sipType_KABC_LdapResult, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + cpp = (TDEABC::LdapResult *)sipForceConvertToType(elem, sipType_KABC_LdapResult, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { |