diff options
author | Timothy Pearson <[email protected]> | 2013-02-20 16:22:33 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-20 16:22:33 -0600 |
commit | 406efe8c28ee592ef8fe878d80e4de7334436687 (patch) | |
tree | f29eefb11fa46751d48c1314baf4864ec84e3ed3 /sip/kabc/key.sip | |
parent | 32b4fbc109cefc7cff3b7355b4d4f3084336c97b (diff) | |
download | pytde-406efe8c28ee592ef8fe878d80e4de7334436687.tar.gz pytde-406efe8c28ee592ef8fe878d80e4de7334436687.zip |
Rename KABC namespace
Diffstat (limited to 'sip/kabc/key.sip')
-rw-r--r-- | sip/kabc/key.sip | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sip/kabc/key.sip b/sip/kabc/key.sip index 113a1ad..1005498 100644 --- a/sip/kabc/key.sip +++ b/sip/kabc/key.sip @@ -25,7 +25,7 @@ %If ( KDE_3_1_0 - ) -namespace KABC +namespace TDEABC { class Key @@ -36,7 +36,7 @@ class Key public: - typedef TQValueList<KABC::Key> List; + typedef TQValueList<TDEABC::Key> List; typedef TQValueList<int> TypeList; enum Types @@ -47,8 +47,8 @@ public: }; Key (const TQString& = TQString ::null , int = PGP ); - bool operator == (const KABC::Key&) const; - bool operator != (const KABC::Key&) const; + bool operator == (const TDEABC::Key&) const; + bool operator != (const TDEABC::Key&) const; void setId (const TQString&); TQString id () const; void setBinaryData (const TQByteArray&); @@ -65,20 +65,20 @@ public: }; // class Key -//igx TQDataStream& operator << (TQDataStream&, const KABC::Key&); -//igx TQDataStream& operator >> (TQDataStream&, KABC::Key&); -}; // namespace KABC +//igx TQDataStream& operator << (TQDataStream&, const TDEABC::Key&); +//igx TQDataStream& operator >> (TQDataStream&, TDEABC::Key&); +}; // namespace TDEABC %End -%MappedType KABC::Key::List -//converts a Python list of KABC::Key +%MappedType TDEABC::Key::List +//converts a Python list of TDEABC::Key { %TypeHeaderCode #include <tqvaluelist.h> -//typedef TQValueList<KABC::Key> List; +//typedef TQValueList<TDEABC::Key> List; %End %ConvertFromTypeCode @@ -90,14 +90,14 @@ public: if ((pylist = PyList_New(0)) == NULL) return NULL; - TQValueList<KABC::Key> *cpplist = (TQValueList<KABC::Key> *)sipCpp; + TQValueList<TDEABC::Key> *cpplist = (TQValueList<TDEABC::Key> *)sipCpp; PyObject *inst; // Get it. - TQValueList<KABC::Key>::Iterator it; + TQValueList<TDEABC::Key>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { - if (((inst = sipConvertFromNewType(new KABC::Key(*it), sipType_KABC_Key, NULL)) == NULL) + if (((inst = sipConvertFromNewType(new TDEABC::Key(*it), sipType_KABC_Key, NULL)) == NULL) || PyList_Append (pylist, inst) < 0) { Py_DECREF (pylist); @@ -113,16 +113,16 @@ public: if (sipIsErr == NULL) return PyList_Check(sipPy); - TQValueList<KABC::Key> *cpplist = new TQValueList<KABC::Key>; + TQValueList<TDEABC::Key> *cpplist = new TQValueList<TDEABC::Key>; PyObject *elem; - KABC::Key *cpp; + TDEABC::Key *cpp; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) { elem = PyList_GET_ITEM (sipPy, i); - cpp = (KABC::Key *)sipForceConvertToType(elem, sipType_KABC_Key, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + cpp = (TDEABC::Key *)sipForceConvertToType(elem, sipType_KABC_Key, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { |