diff options
Diffstat (limited to 'sip/kabc/field.sip')
-rw-r--r-- | sip/kabc/field.sip | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sip/kabc/field.sip b/sip/kabc/field.sip index a7c1a85..68d325a 100644 --- a/sip/kabc/field.sip +++ b/sip/kabc/field.sip @@ -25,7 +25,7 @@ %If ( KDE_3_1_0 - ) -namespace KABC +namespace TDEABC { class Field @@ -36,7 +36,7 @@ class Field public: - typedef TQValueList<KABC::Field*> List; + typedef TQValueList<TDEABC::Field*> List; enum FieldCategory { @@ -52,30 +52,30 @@ public: virtual TQString label (); virtual int category (); static TQString categoryLabel (int); - virtual TQString value (const KABC::Addressee&); - virtual bool setValue (KABC::Addressee&, const TQString&); + virtual TQString value (const TDEABC::Addressee&); + virtual bool setValue (TDEABC::Addressee&, const TQString&); %If ( KDE_3_2_0 - ) - TQString sortKey (const KABC::Addressee&); + TQString sortKey (const TDEABC::Addressee&); %End virtual bool isCustom (); - virtual bool equals (KABC::Field*); - static KABC::Field::List allFields (); - static KABC::Field::List defaultFields (); - static KABC::Field* createCustomField (const TQString&, int, const TQString&, const TQString&); + virtual bool equals (TDEABC::Field*); + static TDEABC::Field::List allFields (); + static TDEABC::Field::List defaultFields (); + static TDEABC::Field* createCustomField (const TQString&, int, const TQString&, const TQString&); static void deleteFields (); - static void saveFields (TDEConfig*, const TQString&, const KABC::Field::List&); - static void saveFields (const TQString&, const KABC::Field::List&); - static KABC::Field::List restoreFields (TDEConfig*, const TQString&); - static KABC::Field::List restoreFields (const TQString&); + static void saveFields (TDEConfig*, const TQString&, const TDEABC::Field::List&); + static void saveFields (const TQString&, const TDEABC::Field::List&); + static TDEABC::Field::List restoreFields (TDEConfig*, const TQString&); + static TDEABC::Field::List restoreFields (const TQString&); protected: static void createField (int, int = 0); static void createDefaultField (int, int = 0); private: -//ig Field (KABC::Field::FieldImpl*); +//ig Field (TDEABC::Field::FieldImpl*); ~Field (); //force Field (); @@ -83,15 +83,15 @@ private: }; // class Field -}; // namespace KABC +}; // namespace TDEABC %End %If (KDE_3_1_0 - ) -%MappedType KABC::Field::List -//converts a Python list of KABC::Field +%MappedType TDEABC::Field::List +//converts a Python list of TDEABC::Field { %TypeHeaderCode #include <field.h> @@ -106,14 +106,14 @@ private: if ((pylist = PyList_New(0)) == NULL) return NULL; - TQValueList<KABC::Field *> *cpplist = (TQValueList<KABC::Field *> *)sipCpp; + TQValueList<TDEABC::Field *> *cpplist = (TQValueList<TDEABC::Field *> *)sipCpp; PyObject *inst; // Get it. - TQValueList<KABC::Field *>::Iterator it; + TQValueList<TDEABC::Field *>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { - if (((inst = sipConvertFromType((KABC::Field *)(*it), sipType_KABC_Field, NULL)) == NULL) + if (((inst = sipConvertFromType((TDEABC::Field *)(*it), sipType_KABC_Field, NULL)) == NULL) || PyList_Append (pylist, inst) < 0) { Py_DECREF (pylist); @@ -129,16 +129,16 @@ private: if (sipIsErr == NULL) return PyList_Check(sipPy); - TQValueList<KABC::Field *> *cpplist = new TQValueList<KABC::Field *>; + TQValueList<TDEABC::Field *> *cpplist = new TQValueList<TDEABC::Field *>; PyObject *elem; - KABC::Field *cpp; + TDEABC::Field *cpp; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) { elem = PyList_GET_ITEM (sipPy, i); - cpp = (KABC::Field *)sipForceConvertToType(elem, sipType_KABC_Field, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + cpp = (TDEABC::Field *)sipForceConvertToType(elem, sipType_KABC_Field, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { |