Rename KABC namespace

pull/1/head
Timothy Pearson 12 years ago
parent 32b4fbc109
commit 406efe8c28

@ -48,7 +48,7 @@
</ul> </ul>
<h3>variables</h3><ul type = ""><li> <h3>variables</h3><ul type = ""><li>
<a href = "../glossary.html#variables">variables</a><table><tr bgcolor="#fff0ff"><th>Variable</th><th>Type</th></tr> <a href = "../glossary.html#variables">variables</a><table><tr bgcolor="#fff0ff"><th>Variable</th><th>Type</th></tr>
<tr><td>addressee</td><td>KABC::Addressee</td></tr> <tr><td>addressee</td><td>TDEABC::Addressee</td></tr>
<tr><td>email</td><td>TQString</td></tr> <tr><td>email</td><td>TQString</td></tr>
</table></li></ul> </table></li></ul>

@ -80,7 +80,7 @@
<h3>variables</h3><ul type = ""><li> <h3>variables</h3><ul type = ""><li>
<a href = "../glossary.html#variables">variables</a><table><tr bgcolor="#fff0ff"><th>Variable</th><th>Type</th></tr> <a href = "../glossary.html#variables">variables</a><table><tr bgcolor="#fff0ff"><th>Variable</th><th>Type</th></tr>
<tr><td>attrs</td><td>LdapAttrMap</td></tr> <tr><td>attrs</td><td>LdapAttrMap</td></tr>
<tr><td>client</td><td>KABC::LdapClient*</td></tr> <tr><td>client</td><td>TDEABC::LdapClient*</td></tr>
<tr><td>dn</td><td>TQString</td></tr> <tr><td>dn</td><td>TQString</td></tr>
</table></li></ul> </table></li></ul>

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -43,9 +43,9 @@ class Resource;
* *
* \code * \code
* *
* TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) * TQPtrList<Resource> list = ... // can be retrived from KRES::Manager (e.g. TDEABC::AddressBook)
* *
* KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); * TDEABC::Resource *res = TDEABC::SelectDialog::getResource( list, parentWdg );
* if ( !res ) { * if ( !res ) {
* // no resource selected * // no resource selected
* } else { * } else {

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class Address class Address
@ -34,7 +34,7 @@ class Address
public: public:
typedef TQValueList<KABC::Address> List; typedef TQValueList<TDEABC::Address> List;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
typedef TQValueList<int> TypeList; typedef TQValueList<int> TypeList;
@ -56,8 +56,8 @@ public:
Address (int); Address (int);
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool operator == (const KABC::Address&) const; bool operator == (const TDEABC::Address&) const;
bool operator != (const KABC::Address&) const; bool operator != (const TDEABC::Address&) const;
%End %End
bool isEmpty () const; bool isEmpty () const;
@ -125,7 +125,7 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
static TQString labelLabel (); static TQString labelLabel ();
static KABC::Address::TypeList typeList (); static TDEABC::Address::TypeList typeList ();
static TQString typeLabel (int); static TQString typeLabel (int);
%End %End
@ -142,9 +142,9 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::Address&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Address&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Address&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Address&);
%End %End
}; // namespace KABC }; // namespace TDEABC

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class AddressBook : TQObject class AddressBook : TQObject
@ -47,10 +47,10 @@ public:
AddressBook (const TQString&); AddressBook (const TQString&);
%End %End
KABC::Ticket* requestSaveTicket (KABC::Resource* = 0); TDEABC::Ticket* requestSaveTicket (TDEABC::Resource* = 0);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
void releaseSaveTicket (KABC::Ticket*); void releaseSaveTicket (TDEABC::Ticket*);
%End %End
bool load (); bool load ();
@ -59,43 +59,43 @@ public:
bool asyncLoad (); bool asyncLoad ();
%End %End
bool save (KABC::Ticket*); bool save (TDEABC::Ticket*);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
bool asyncSave (KABC::Ticket*); bool asyncSave (TDEABC::Ticket*);
%End %End
//igx KABC::AddressBook::ConstIterator begin () const; //igx TDEABC::AddressBook::ConstIterator begin () const;
//igx KABC::AddressBook::Iterator begin (); //igx TDEABC::AddressBook::Iterator begin ();
//igx KABC::AddressBook::ConstIterator end () const; //igx TDEABC::AddressBook::ConstIterator end () const;
//igx KABC::AddressBook::Iterator end (); //igx TDEABC::AddressBook::Iterator end ();
void clear (); void clear ();
void insertAddressee (const KABC::Addressee&); void insertAddressee (const TDEABC::Addressee&);
void removeAddressee (const KABC::Addressee&); void removeAddressee (const TDEABC::Addressee&);
//ig void removeAddressee (const KABC::AddressBook::Iterator&); //ig void removeAddressee (const TDEABC::AddressBook::Iterator&);
//igx KABC::AddressBook::Iterator find (const Addressee&); //igx TDEABC::AddressBook::Iterator find (const Addressee&);
KABC::Addressee findByUid (const TQString&); TDEABC::Addressee findByUid (const TQString&);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
KABC::Addressee::List allAddressees (); TDEABC::Addressee::List allAddressees ();
%End %End
KABC::Addressee::List findByName (const TQString&); TDEABC::Addressee::List findByName (const TQString&);
KABC::Addressee::List findByEmail (const TQString&); TDEABC::Addressee::List findByEmail (const TQString&);
KABC::Addressee::List findByCategory (const TQString&); TDEABC::Addressee::List findByCategory (const TQString&);
virtual TQString identifier (); virtual TQString identifier ();
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
KABC::Field::List fields (int = KABC ::Field ::All ); TDEABC::Field::List fields (int = KABC ::Field ::All );
bool addCustomField (const TQString&, int = KABC ::Field ::All , const TQString& = TQString ::null , const TQString& = TQString ::null ); bool addCustomField (const TQString&, int = KABC ::Field ::All , const TQString& = TQString ::null , const TQString& = TQString ::null );
%End %End
bool addResource (KABC::Resource*); bool addResource (TDEABC::Resource*);
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool removeResource (KABC::Resource*); bool removeResource (TDEABC::Resource*);
TQPtrList<KABC::Resource> resources (); TQPtrList<TDEABC::Resource> resources ();
void setErrorHandler (KABC::ErrorHandler*); void setErrorHandler (TDEABC::ErrorHandler*);
void error (const TQString&); void error (const TQString&);
void cleanUp (); void cleanUp ();
%End %End
@ -111,23 +111,23 @@ public:
signals: signals:
void addressBookChanged (KABC::AddressBook*); void addressBookChanged (TDEABC::AddressBook*);
void addressBookLocked (KABC::AddressBook*); void addressBookLocked (TDEABC::AddressBook*);
void addressBookUnlocked (KABC::AddressBook*); void addressBookUnlocked (TDEABC::AddressBook*);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
void loadingFinished (KABC::Resource*); void loadingFinished (TDEABC::Resource*);
void savingFinished (KABC::Resource*); void savingFinished (TDEABC::Resource*);
%End %End
protected slots: protected slots:
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
void resourceLoadingFinished (KABC::Resource*); void resourceLoadingFinished (TDEABC::Resource*);
void resourceSavingFinished (KABC::Resource*); void resourceSavingFinished (TDEABC::Resource*);
void resourceLoadingError (KABC::Resource*, const TQString&); void resourceLoadingError (TDEABC::Resource*, const TQString&);
void resourceSavingError (KABC::Resource*, const TQString&); void resourceSavingError (TDEABC::Resource*, const TQString&);
%End %End
@ -135,11 +135,11 @@ protected:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
void deleteRemovedAddressees (); void deleteRemovedAddressees ();
void setStandardResource (KABC::Resource*); void setStandardResource (TDEABC::Resource*);
KABC::Resource* standardResource (); TDEABC::Resource* standardResource ();
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
//ig KRES::Manager<KABC::Resource>* resourceManager (); //ig KRES::Manager<TDEABC::Resource>* resourceManager ();
%End %End
%End %End
@ -149,16 +149,16 @@ protected:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::AddressBook&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::AddressBook&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::AddressBook&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::AddressBook&);
%End %End
}; // namespace KABC }; // namespace TDEABC
%MappedType TQPtrList<KABC::Resource> %MappedType TQPtrList<TDEABC::Resource>
//converts a Python list of KABC::Resource //converts a Python list of TDEABC::Resource
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqptrlist.h> #include <tqptrlist.h>
@ -177,8 +177,8 @@ protected:
// Get it. // Get it.
TQPtrList<KABC::Resource> *cpplist = (TQPtrList<KABC::Resource> *)sipCpp; TQPtrList<TDEABC::Resource> *cpplist = (TQPtrList<TDEABC::Resource> *)sipCpp;
KABC::Resource *cpp; TDEABC::Resource *cpp;
PyObject *inst; PyObject *inst;
// the loop depends on the type of iterator the tmeplate makes available // the loop depends on the type of iterator the tmeplate makes available
@ -199,16 +199,16 @@ protected:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQPtrList<KABC::Resource> *cpplist = new TQPtrList<KABC::Resource>; TQPtrList<TDEABC::Resource> *cpplist = new TQPtrList<TDEABC::Resource>;
PyObject *elem; PyObject *elem;
KABC::Resource *cpp; TDEABC::Resource *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (KABC::Resource *)sipForceConvertToType(elem, sipType_KABC_Resource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); cpp = (TDEABC::Resource *)sipForceConvertToType(elem, sipType_KABC_Resource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr) if (iserr)
{ {

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class Addressee class Addressee
@ -34,18 +34,18 @@ class Addressee
public: public:
//ig typedef TQValueList<KABC::Addressee> List; //ig typedef TQValueList<TDEABC::Addressee> List;
%If ( KDE_3_4_2 - ) %If ( KDE_3_4_2 - )
typedef TQMap<TQString,KABC::Addressee> Map; typedef TQMap<TQString,TDEABC::Addressee> Map;
%End %End
Addressee (); Addressee ();
Addressee (const KABC::Addressee&); Addressee (const TDEABC::Addressee&);
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool operator == (const KABC::Addressee&) const; bool operator == (const TDEABC::Addressee&) const;
bool operator != (const KABC::Addressee&) const; bool operator != (const TDEABC::Addressee&) const;
%End %End
bool isEmpty () const; bool isEmpty () const;
@ -147,15 +147,15 @@ public:
static TQString mailerLabel (); static TQString mailerLabel ();
%End %End
void setTimeZone (const KABC::TimeZone&); void setTimeZone (const TDEABC::TimeZone&);
KABC::TimeZone timeZone () const; TDEABC::TimeZone timeZone () const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
static TQString timeZoneLabel (); static TQString timeZoneLabel ();
%End %End
void setGeo (const KABC::Geo&); void setGeo (const TDEABC::Geo&);
KABC::Geo geo () const; TDEABC::Geo geo () const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
static TQString geoLabel (); static TQString geoLabel ();
@ -215,20 +215,20 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
static TQString urlLabel (); static TQString urlLabel ();
void setSecrecy (const KABC::Secrecy&); void setSecrecy (const TDEABC::Secrecy&);
KABC::Secrecy secrecy () const; TDEABC::Secrecy secrecy () const;
static TQString secrecyLabel (); static TQString secrecyLabel ();
void setLogo (const KABC::Picture&); void setLogo (const TDEABC::Picture&);
KABC::Picture logo () const; TDEABC::Picture logo () const;
static TQString logoLabel (); static TQString logoLabel ();
void setPhoto (const KABC::Picture&); void setPhoto (const TDEABC::Picture&);
KABC::Picture photo () const; TDEABC::Picture photo () const;
static TQString photoLabel (); static TQString photoLabel ();
void setSound (const KABC::Sound&); void setSound (const TDEABC::Sound&);
KABC::Sound sound () const; TDEABC::Sound sound () const;
static TQString soundLabel (); static TQString soundLabel ();
void setAgent (const KABC::Agent&); void setAgent (const TDEABC::Agent&);
KABC::Agent agent () const; TDEABC::Agent agent () const;
static TQString agentLabel (); static TQString agentLabel ();
%End %End
@ -249,41 +249,41 @@ public:
void setEmails (const TQStringList&); void setEmails (const TQStringList&);
%End %End
void insertPhoneNumber (const KABC::PhoneNumber&); void insertPhoneNumber (const TDEABC::PhoneNumber&);
void removePhoneNumber (const KABC::PhoneNumber&); void removePhoneNumber (const TDEABC::PhoneNumber&);
KABC::PhoneNumber phoneNumber (int) const; TDEABC::PhoneNumber phoneNumber (int) const;
KABC::PhoneNumber::List phoneNumbers () const; TDEABC::PhoneNumber::List phoneNumbers () const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
KABC::PhoneNumber::List phoneNumbers (int) const; TDEABC::PhoneNumber::List phoneNumbers (int) const;
%End %End
KABC::PhoneNumber findPhoneNumber (const TQString&) const; TDEABC::PhoneNumber findPhoneNumber (const TQString&) const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
void insertKey (const KABC::Key&); void insertKey (const TDEABC::Key&);
void removeKey (const KABC::Key&); void removeKey (const TDEABC::Key&);
KABC::Key key (int, TQString = TQString ::null ) const; TDEABC::Key key (int, TQString = TQString ::null ) const;
KABC::Key::List keys () const; TDEABC::Key::List keys () const;
%If ( KDE_3_4_2 - ) %If ( KDE_3_4_2 - )
void setKeys (const KABC::Key::List&); void setKeys (const TDEABC::Key::List&);
%End %End
KABC::Key::List keys (int, TQString = TQString ::null ) const; TDEABC::Key::List keys (int, TQString = TQString ::null ) const;
KABC::Key findKey (const TQString&) const; TDEABC::Key findKey (const TQString&) const;
%End %End
void insertAddress (const KABC::Address&); void insertAddress (const TDEABC::Address&);
void removeAddress (const KABC::Address&); void removeAddress (const TDEABC::Address&);
KABC::Address address (int) const; TDEABC::Address address (int) const;
KABC::Address::List addresses () const; TDEABC::Address::List addresses () const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
KABC::Address::List addresses (int) const; TDEABC::Address::List addresses (int) const;
%End %End
KABC::Address findAddress (const TQString&) const; TDEABC::Address findAddress (const TQString&) const;
void insertCategory (const TQString&); void insertCategory (const TQString&);
void removeCategory (const TQString&); void removeCategory (const TQString&);
bool hasCategory (const TQString&) const; bool hasCategory (const TQString&) const;
@ -303,14 +303,14 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
TQString asString () const; TQString asString () const;
void setResource (KABC::Resource*); void setResource (TDEABC::Resource*);
KABC::Resource* resource () const; TDEABC::Resource* resource () const;
void setChanged (bool); void setChanged (bool);
bool changed () const; bool changed () const;
%If ( KDE_3_4_2 - ) %If ( KDE_3_4_2 - )
static void setSortMode (KABC::SortMode*); static void setSortMode (TDEABC::SortMode*);
bool operator < (const KABC::Addressee&); bool operator < (const TDEABC::Addressee&);
%End %End
%End %End
@ -324,20 +324,20 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::Addressee&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Addressee&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Addressee&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Addressee&);
%End %End
}; // namespace KABC }; // namespace TDEABC
%MappedType KABC::Addressee::List %MappedType TDEABC::Addressee::List
//converts a Python list of KABC::Addressee //converts a Python list of TDEABC::Addressee
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqvaluelist.h> #include <tqvaluelist.h>
//typedef TQValueList<KABC::Addressee> List; //typedef TQValueList<TDEABC::Addressee> List;
%End %End
%ConvertFromTypeCode %ConvertFromTypeCode
@ -349,14 +349,14 @@ public:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::Addressee> *cpplist = (TQValueList<KABC::Addressee> *)sipCpp; TQValueList<TDEABC::Addressee> *cpplist = (TQValueList<TDEABC::Addressee> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::Addressee>::Iterator it; TQValueList<TDEABC::Addressee>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++it ) for( it = cpplist->begin(); it != cpplist->end(); ++it )
{ {
if (((inst = sipConvertFromNewType(new KABC::Addressee (*it), sipType_KABC_Addressee, NULL)) == NULL) if (((inst = sipConvertFromNewType(new TDEABC::Addressee (*it), sipType_KABC_Addressee, NULL)) == NULL)
|| PyList_Append (pylist, inst) < 0) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -372,16 +372,16 @@ public:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::Addressee> *cpplist = new TQValueList<KABC::Addressee>; TQValueList<TDEABC::Addressee> *cpplist = new TQValueList<TDEABC::Addressee>;
PyObject *elem; PyObject *elem;
KABC::Addressee *cpp; TDEABC::Addressee *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (KABC::Addressee *)sipForceConvertToType(elem, sipType_KABC_Addressee, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); cpp = (TDEABC::Addressee *)sipForceConvertToType(elem, sipType_KABC_Addressee, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr) if (iserr)
{ {
@ -399,12 +399,12 @@ public:
%End %End
}; };
%MappedType KABC::Address::List %MappedType TDEABC::Address::List
//converts a Python list of KABC::Address //converts a Python list of TDEABC::Address
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqvaluelist.h> #include <tqvaluelist.h>
//typedef TQValueList<KABC::Address> List; //typedef TQValueList<TDEABC::Address> List;
%End %End
%ConvertFromTypeCode %ConvertFromTypeCode
@ -416,14 +416,14 @@ public:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::Address> *cpplist = (TQValueList<KABC::Address> *)sipCpp; TQValueList<TDEABC::Address> *cpplist = (TQValueList<TDEABC::Address> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::Address>::Iterator it; TQValueList<TDEABC::Address>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++it ) for( it = cpplist->begin(); it != cpplist->end(); ++it )
{ {
if (((inst = sipConvertFromNewType(new KABC::Address (*it), sipType_KABC_Address, NULL)) == NULL) if (((inst = sipConvertFromNewType(new TDEABC::Address (*it), sipType_KABC_Address, NULL)) == NULL)
|| PyList_Append (pylist, inst) < 0) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -439,16 +439,16 @@ public:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::Address> *cpplist = new TQValueList<KABC::Address>; TQValueList<TDEABC::Address> *cpplist = new TQValueList<TDEABC::Address>;
PyObject *elem; PyObject *elem;
KABC::Address *cpp; TDEABC::Address *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (KABC::Address *)sipForceConvertToType(elem, sipType_KABC_Address, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); cpp = (TDEABC::Address *)sipForceConvertToType(elem, sipType_KABC_Address, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr) if (iserr)
{ {

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class AddresseeItem : TQListViewItem class AddresseeItem : TQListViewItem
@ -41,8 +41,8 @@ public:
Email Email
}; };
AddresseeItem (TQListView*, const KABC::Addressee&); AddresseeItem (TQListView*, const TDEABC::Addressee&);
KABC::Addressee addressee () const; TDEABC::Addressee addressee () const;
virtual TQString key (int, bool) const; virtual TQString key (int, bool) const;
}; // class AddresseeItem }; // class AddresseeItem
@ -57,10 +57,10 @@ class AddresseeDialog : KDialogBase
public: public:
AddresseeDialog (TQWidget* = 0, bool = 0); AddresseeDialog (TQWidget* = 0, bool = 0);
KABC::Addressee addressee (); TDEABC::Addressee addressee ();
KABC::Addressee::List addressees (); TDEABC::Addressee::List addressees ();
static KABC::Addressee getAddressee (TQWidget*); static TDEABC::Addressee getAddressee (TQWidget*);
static KABC::Addressee::List getAddressees (TQWidget*); static TDEABC::Addressee::List getAddressees (TQWidget*);
protected slots: protected slots:
@ -71,5 +71,5 @@ protected slots:
}; // class AddresseeDialog }; // class AddresseeDialog
}; // namespace KABC }; // namespace TDEABC

@ -30,7 +30,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
namespace SortingTraits namespace SortingTraits
{ {
@ -43,8 +43,8 @@ class Uid
public: public:
static bool eq (const KABC::Addressee&, const KABC::Addressee&); static bool eq (const TDEABC::Addressee&, const TDEABC::Addressee&);
static bool lt (const KABC::Addressee&, const KABC::Addressee&); static bool lt (const TDEABC::Addressee&, const TDEABC::Addressee&);
}; // class Uid }; // class Uid
@ -57,8 +57,8 @@ class Name
public: public:
static bool eq (const KABC::Addressee&, const KABC::Addressee&); static bool eq (const TDEABC::Addressee&, const TDEABC::Addressee&);
static bool lt (const KABC::Addressee&, const KABC::Addressee&); static bool lt (const TDEABC::Addressee&, const TDEABC::Addressee&);
}; // class Name }; // class Name
@ -71,8 +71,8 @@ class FormattedName
public: public:
static bool eq (const KABC::Addressee&, const KABC::Addressee&); static bool eq (const TDEABC::Addressee&, const TDEABC::Addressee&);
static bool lt (const KABC::Addressee&, const KABC::Addressee&); static bool lt (const TDEABC::Addressee&, const TDEABC::Addressee&);
}; // class FormattedName }; // class FormattedName
@ -85,8 +85,8 @@ class FamilyName
public: public:
static bool eq (const KABC::Addressee&, const KABC::Addressee&); static bool eq (const TDEABC::Addressee&, const TDEABC::Addressee&);
static bool lt (const KABC::Addressee&, const KABC::Addressee&); static bool lt (const TDEABC::Addressee&, const TDEABC::Addressee&);
}; // class FamilyName }; // class FamilyName
@ -99,8 +99,8 @@ class GivenName
public: public:
static bool eq (const KABC::Addressee&, const KABC::Addressee&); static bool eq (const TDEABC::Addressee&, const TDEABC::Addressee&);
static bool lt (const KABC::Addressee&, const KABC::Addressee&); static bool lt (const TDEABC::Addressee&, const TDEABC::Addressee&);
}; // class GivenName }; // class GivenName
@ -116,7 +116,7 @@ enum
GivenName GivenName
}; };
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class AddressLineEdit : KLineEdit class AddressLineEdit : KLineEdit
@ -60,7 +60,7 @@ protected:
}; // class AddressLineEdit }; // class AddressLineEdit
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Agent class Agent
@ -38,21 +38,21 @@ class Agent
public: public:
Agent (); Agent ();
Agent (const TQString&); Agent (const TQString&);
Agent (KABC::Addressee*); Agent (TDEABC::Addressee*);
bool operator == (const KABC::Agent&) const; bool operator == (const TDEABC::Agent&) const;
bool operator != (const KABC::Agent&) const; bool operator != (const TDEABC::Agent&) const;
void setUrl (const TQString&); void setUrl (const TQString&);
void setAddressee (KABC::Addressee*); void setAddressee (TDEABC::Addressee*);
bool isIntern () const; bool isIntern () const;
TQString url () const; TQString url () const;
KABC::Addressee* addressee () const; TDEABC::Addressee* addressee () const;
TQString asString () const; TQString asString () const;
}; // class Agent }; // class Agent
//igx TQDataStream& operator << (TQDataStream&, const KABC::Agent&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Agent&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Agent&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Agent&);
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class DistributionList class DistributionList
@ -39,23 +39,23 @@ public:
{ {
public: public:
typedef TQValueList<KABC::DistributionList::Entry> List; typedef TQValueList<TDEABC::DistributionList::Entry> List;
Entry (); Entry ();
Entry (const KABC::Addressee&, const TQString&); Entry (const TDEABC::Addressee&, const TQString&);
KABC::Addressee addressee; TDEABC::Addressee addressee;
TQString email; TQString email;
}; // class Entry }; // class Entry
public: public:
DistributionList (KABC::DistributionListManager*, const TQString&); DistributionList (TDEABC::DistributionListManager*, const TQString&);
void setName (const TQString&); void setName (const TQString&);
TQString name () const; TQString name () const;
void insertEntry (const KABC::Addressee&, const TQString& = TQString ::null ); void insertEntry (const TDEABC::Addressee&, const TQString& = TQString ::null );
void removeEntry (const KABC::Addressee&, const TQString& = TQString ::null ); void removeEntry (const TDEABC::Addressee&, const TQString& = TQString ::null );
TQStringList emails () const; TQStringList emails () const;
KABC::DistributionList::Entry::List entries () const; TDEABC::DistributionList::Entry::List entries () const;
}; // class DistributionList }; // class DistributionList
@ -68,10 +68,10 @@ class DistributionListManager
public: public:
DistributionListManager (KABC::AddressBook*); DistributionListManager (TDEABC::AddressBook*);
KABC::DistributionList* list (const TQString&); TDEABC::DistributionList* list (const TQString&);
void insert (KABC::DistributionList*); void insert (TDEABC::DistributionList*);
void remove (KABC::DistributionList*); void remove (TDEABC::DistributionList*);
TQStringList listNames (); TQStringList listNames ();
bool load (); bool load ();
bool save (); bool save ();
@ -89,7 +89,7 @@ class DistributionListWatcher : TQObject
public: public:
static KABC::DistributionListWatcher* self (); static TDEABC::DistributionListWatcher* self ();
signals: signals:
void changed (); void changed ();
@ -102,12 +102,12 @@ protected:
%End %End
}; // namespace KABC }; // namespace TDEABC
%MappedType KABC::DistributionList::Entry::List %MappedType TDEABC::DistributionList::Entry::List
//converts a Python list of KABC::DistributionList::Entry //converts a Python list of TDEABC::DistributionList::Entry
{ {
%TypeHeaderCode %TypeHeaderCode
#include <distributionlist.h> #include <distributionlist.h>
@ -122,14 +122,14 @@ protected:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::DistributionList::Entry> *cpplist = (TQValueList<KABC::DistributionList::Entry> *)sipCpp; TQValueList<TDEABC::DistributionList::Entry> *cpplist = (TQValueList<TDEABC::DistributionList::Entry> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::DistributionList::Entry>::Iterator it; TQValueList<TDEABC::DistributionList::Entry>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++it ) for( it = cpplist->begin(); it != cpplist->end(); ++it )
{ {
if (((inst = sipConvertFromNewType(new KABC::DistributionList::Entry (*it), sipType_KABC_DistributionList_Entry, NULL)) == NULL) if (((inst = sipConvertFromNewType(new TDEABC::DistributionList::Entry (*it), sipType_KABC_DistributionList_Entry, NULL)) == NULL)
|| PyList_Append (pylist, inst) < 0) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -145,16 +145,16 @@ protected:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::DistributionList::Entry> *cpplist = new TQValueList<KABC::DistributionList::Entry>; TQValueList<TDEABC::DistributionList::Entry> *cpplist = new TQValueList<TDEABC::DistributionList::Entry>;
PyObject *elem; PyObject *elem;
KABC::DistributionList::Entry *cpp; TDEABC::DistributionList::Entry *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (KABC::DistributionList::Entry *)sipForceConvertToType(elem, sipType_KABC_DistributionList_Entry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); cpp = (TDEABC::DistributionList::Entry *)sipForceConvertToType(elem, sipType_KABC_DistributionList_Entry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr) if (iserr)
{ {

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class DistributionListDialog : KDialogBase class DistributionListDialog : KDialogBase
@ -36,7 +36,7 @@ class DistributionListDialog : KDialogBase
public: public:
DistributionListDialog (KABC::AddressBook*, TQWidget*); DistributionListDialog (TDEABC::AddressBook*, TQWidget*);
}; // class DistributionListDialog }; // class DistributionListDialog
@ -64,11 +64,11 @@ class DistributionListEditorWidget : TQWidget
public: public:
DistributionListEditorWidget (KABC::AddressBook*, TQWidget*); DistributionListEditorWidget (TDEABC::AddressBook*, TQWidget*);
}; // class DistributionListEditorWidget }; // class DistributionListEditorWidget
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class EmailSelectDialog : KDialogBase class EmailSelectDialog : KDialogBase
@ -43,5 +43,5 @@ public:
//ig class DistributionListEditor : TQWidget; //ig class DistributionListEditor : TQWidget;
}; // namespace KABC }; // namespace TDEABC

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class ErrorHandler class ErrorHandler
@ -42,7 +42,7 @@ public:
}; // class ErrorHandler }; // class ErrorHandler
class ConsoleErrorHandler : KABC::ErrorHandler class ConsoleErrorHandler : TDEABC::ErrorHandler
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqwidget.h> #include <tqwidget.h>
@ -58,7 +58,7 @@ public:
%If ( KDE_3_5_1 - ) %If ( KDE_3_5_1 - )
class GUIErrorHandler : KABC::ErrorHandler class GUIErrorHandler : TDEABC::ErrorHandler
{ {
%TypeHeaderCode %TypeHeaderCode
#include <errorhandler.h> #include <errorhandler.h>
@ -75,7 +75,7 @@ public:
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
class GuiErrorHandler : KABC::ErrorHandler class GuiErrorHandler : TDEABC::ErrorHandler
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqwidget.h> #include <tqwidget.h>
@ -91,7 +91,7 @@ public:
%End %End
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Field class Field
@ -36,7 +36,7 @@ class Field
public: public:
typedef TQValueList<KABC::Field*> List; typedef TQValueList<TDEABC::Field*> List;
enum FieldCategory enum FieldCategory
{ {
@ -52,30 +52,30 @@ public:
virtual TQString label (); virtual TQString label ();
virtual int category (); virtual int category ();
static TQString categoryLabel (int); static TQString categoryLabel (int);
virtual TQString value (const KABC::Addressee&); virtual TQString value (const TDEABC::Addressee&);
virtual bool setValue (KABC::Addressee&, const TQString&); virtual bool setValue (TDEABC::Addressee&, const TQString&);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
TQString sortKey (const KABC::Addressee&); TQString sortKey (const TDEABC::Addressee&);
%End %End
virtual bool isCustom (); virtual bool isCustom ();
virtual bool equals (KABC::Field*); virtual bool equals (TDEABC::Field*);
static KABC::Field::List allFields (); static TDEABC::Field::List allFields ();
static KABC::Field::List defaultFields (); static TDEABC::Field::List defaultFields ();
static KABC::Field* createCustomField (const TQString&, int, const TQString&, const TQString&); static TDEABC::Field* createCustomField (const TQString&, int, const TQString&, const TQString&);
static void deleteFields (); static void deleteFields ();
static void saveFields (TDEConfig*, const TQString&, const KABC::Field::List&); static void saveFields (TDEConfig*, const TQString&, const TDEABC::Field::List&);
static void saveFields (const TQString&, const KABC::Field::List&); static void saveFields (const TQString&, const TDEABC::Field::List&);
static KABC::Field::List restoreFields (TDEConfig*, const TQString&); static TDEABC::Field::List restoreFields (TDEConfig*, const TQString&);
static KABC::Field::List restoreFields (const TQString&); static TDEABC::Field::List restoreFields (const TQString&);
protected: protected:
static void createField (int, int = 0); static void createField (int, int = 0);
static void createDefaultField (int, int = 0); static void createDefaultField (int, int = 0);
private: private:
//ig Field (KABC::Field::FieldImpl*); //ig Field (TDEABC::Field::FieldImpl*);
~Field (); ~Field ();
//force //force
Field (); Field ();
@ -83,15 +83,15 @@ private:
}; // class Field }; // class Field
}; // namespace KABC }; // namespace TDEABC
%End %End
%If (KDE_3_1_0 - ) %If (KDE_3_1_0 - )
%MappedType KABC::Field::List %MappedType TDEABC::Field::List
//converts a Python list of KABC::Field //converts a Python list of TDEABC::Field
{ {
%TypeHeaderCode %TypeHeaderCode
#include <field.h> #include <field.h>
@ -106,14 +106,14 @@ private:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::Field *> *cpplist = (TQValueList<KABC::Field *> *)sipCpp; TQValueList<TDEABC::Field *> *cpplist = (TQValueList<TDEABC::Field *> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::Field *>::Iterator it; TQValueList<TDEABC::Field *>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++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) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -129,16 +129,16 @@ private:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::Field *> *cpplist = new TQValueList<KABC::Field *>; TQValueList<TDEABC::Field *> *cpplist = new TQValueList<TDEABC::Field *>;
PyObject *elem; PyObject *elem;
KABC::Field *cpp; TDEABC::Field *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (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) if (iserr)
{ {

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class Format class Format
@ -34,10 +34,10 @@ class Format
public: public:
virtual bool load (KABC::AddressBook*, const TQString&) = 0; virtual bool load (TDEABC::AddressBook*, const TQString&) = 0;
virtual bool save (KABC::AddressBook*, const TQString&) = 0; virtual bool save (TDEABC::AddressBook*, const TQString&) = 0;
}; // class Format }; // class Format
}; // namespace KABC }; // namespace TDEABC

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class FormatInfo class FormatInfo
@ -51,10 +51,10 @@ class FormatFactory
public: public:
static KABC::FormatFactory* self (); static TDEABC::FormatFactory* self ();
KABC::FormatPlugin* format (const TQString&); TDEABC::FormatPlugin* format (const TQString&);
TQStringList formats (); TQStringList formats ();
KABC::FormatInfo* info (const TQString&); TDEABC::FormatInfo* info (const TQString&);
protected: protected:
FormatFactory (); FormatFactory ();
@ -68,7 +68,7 @@ protected:
}; // class FormatFactory }; // class FormatFactory
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,10 +25,10 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class FormatPlugin : KABC::Plugin class FormatPlugin : TDEABC::Plugin
{ {
%TypeHeaderCode %TypeHeaderCode
#include <formatplugin.h> #include <formatplugin.h>
@ -36,15 +36,15 @@ class FormatPlugin : KABC::Plugin
public: public:
virtual bool load (KABC::Addressee&, TQFile*) = 0; virtual bool load (TDEABC::Addressee&, TQFile*) = 0;
virtual bool loadAll (KABC::AddressBook*, KABC::Resource*, TQFile*) = 0; virtual bool loadAll (TDEABC::AddressBook*, TDEABC::Resource*, TQFile*) = 0;
virtual void save (const KABC::Addressee&, TQFile*) = 0; virtual void save (const TDEABC::Addressee&, TQFile*) = 0;
virtual void saveAll (KABC::AddressBook*, KABC::Resource*, TQFile*) = 0; virtual void saveAll (TDEABC::AddressBook*, TDEABC::Resource*, TQFile*) = 0;
virtual bool checkFormat (TQFile*) const = 0; virtual bool checkFormat (TQFile*) const = 0;
}; // class FormatPlugin }; // class FormatPlugin
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class Geo class Geo
@ -41,10 +41,10 @@ public:
void setLongitude (float); void setLongitude (float);
float longitude () const; float longitude () const;
bool isValid () const; bool isValid () const;
bool operator == (const KABC::Geo&) const; bool operator == (const TDEABC::Geo&) const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool operator != (const KABC::Geo&) const; bool operator != (const TDEABC::Geo&) const;
%End %End
TQString asString () const; TQString asString () const;
@ -53,9 +53,9 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::Geo&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Geo&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Geo&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Geo&);
%End %End
}; // namespace KABC }; // namespace TDEABC

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Key class Key
@ -36,7 +36,7 @@ class Key
public: public:
typedef TQValueList<KABC::Key> List; typedef TQValueList<TDEABC::Key> List;
typedef TQValueList<int> TypeList; typedef TQValueList<int> TypeList;
enum Types enum Types
@ -47,8 +47,8 @@ public:
}; };
Key (const TQString& = TQString ::null , int = PGP ); Key (const TQString& = TQString ::null , int = PGP );
bool operator == (const KABC::Key&) const; bool operator == (const TDEABC::Key&) const;
bool operator != (const KABC::Key&) const; bool operator != (const TDEABC::Key&) const;
void setId (const TQString&); void setId (const TQString&);
TQString id () const; TQString id () const;
void setBinaryData (const TQByteArray&); void setBinaryData (const TQByteArray&);
@ -65,20 +65,20 @@ public:
}; // class Key }; // class Key
//igx TQDataStream& operator << (TQDataStream&, const KABC::Key&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Key&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Key&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Key&);
}; // namespace KABC }; // namespace TDEABC
%End %End
%MappedType KABC::Key::List %MappedType TDEABC::Key::List
//converts a Python list of KABC::Key //converts a Python list of TDEABC::Key
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqvaluelist.h> #include <tqvaluelist.h>
//typedef TQValueList<KABC::Key> List; //typedef TQValueList<TDEABC::Key> List;
%End %End
%ConvertFromTypeCode %ConvertFromTypeCode
@ -90,14 +90,14 @@ public:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::Key> *cpplist = (TQValueList<KABC::Key> *)sipCpp; TQValueList<TDEABC::Key> *cpplist = (TQValueList<TDEABC::Key> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::Key>::Iterator it; TQValueList<TDEABC::Key>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++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) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -113,16 +113,16 @@ public:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::Key> *cpplist = new TQValueList<KABC::Key>; TQValueList<TDEABC::Key> *cpplist = new TQValueList<TDEABC::Key>;
PyObject *elem; PyObject *elem;
KABC::Key *cpp; TDEABC::Key *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (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) if (iserr)
{ {

@ -25,10 +25,10 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
//ig typedef TQValueList<TQByteArray> LdapAttrValue; //ig typedef TQValueList<TQByteArray> LdapAttrValue;
//ig typedef TQMap<TQString,KABC::LdapAttrValue> LdapAttrMap; //ig typedef TQMap<TQString,TDEABC::LdapAttrValue> LdapAttrMap;
class LdapObject class LdapObject
{ {
@ -41,22 +41,22 @@ public:
LdapObject (); LdapObject ();
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
LdapObject (const TQString&, KABC::LdapClient*); LdapObject (const TQString&, TDEABC::LdapClient*);
%End %End
LdapObject (const KABC::LdapObject&); LdapObject (const TDEABC::LdapObject&);
TQString toString () const; TQString toString () const;
void clear (); void clear ();
TQString dn; TQString dn;
//ig LdapAttrMap attrs; //ig LdapAttrMap attrs;
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
KABC::LdapClient* client; TDEABC::LdapClient* client;
%End %End
protected: protected:
void assign (const KABC::LdapObject&); void assign (const TDEABC::LdapObject&);
public: public:
@ -82,7 +82,7 @@ public:
signals: signals:
void done (); void done ();
void error (const TQString&); void error (const TQString&);
void result (const KABC::LdapObject&); void result (const TDEABC::LdapObject&);
public slots: public slots:
void setHost (const TQString&); void setHost (const TQString&);
@ -138,7 +138,7 @@ public:
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
typedef TQValueList<KABC::LdapResult> LdapResultList; typedef TQValueList<TDEABC::LdapResult> LdapResultList;
%End %End
@ -159,22 +159,22 @@ signals:
void searchData (const TQStringList&); void searchData (const TQStringList&);
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
void searchData (const KABC::LdapResultList&); void searchData (const TDEABC::LdapResultList&);
%End %End
void searchDone (); void searchDone ();
}; // class LdapSearch }; // class LdapSearch
}; // namespace KABC }; // namespace TDEABC
%End %End
%If (KDE_3_3_0 - ) %If (KDE_3_3_0 - )
%MappedType KABC::LdapResultList %MappedType TDEABC::LdapResultList
//converts a Python list of KABC::LdapREsult //converts a Python list of TDEABC::LdapREsult
{ {
%TypeHeaderCode %TypeHeaderCode
#include <ldapclient.h> #include <ldapclient.h>
@ -189,14 +189,14 @@ signals:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::LdapResult> *cpplist = (TQValueList<KABC::LdapResult> *)sipCpp; TQValueList<TDEABC::LdapResult> *cpplist = (TQValueList<TDEABC::LdapResult> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::LdapResult>::Iterator it; TQValueList<TDEABC::LdapResult>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++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) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -212,16 +212,16 @@ signals:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::LdapResult> *cpplist = new TQValueList<KABC::LdapResult>; TQValueList<TDEABC::LdapResult> *cpplist = new TQValueList<TDEABC::LdapResult>;
PyObject *elem; PyObject *elem;
KABC::LdapResult *cpp; TDEABC::LdapResult *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (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) if (iserr)
{ {

@ -25,7 +25,7 @@
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
namespace KABC namespace TDEABC
{ {
class LdapConfigWidget : TQWidget class LdapConfigWidget : TQWidget
@ -95,11 +95,11 @@ public:
int timeLimit () const; int timeLimit () const;
int flags () const; int flags () const;
void setFlags (int); void setFlags (int);
KABC::LDAPUrl url () const; TDEABC::LDAPUrl url () const;
}; // class LdapConfigWidget }; // class LdapConfigWidget
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
namespace KABC namespace TDEABC
{ {
class LDAPUrl : KURL class LDAPUrl : KURL
@ -62,14 +62,14 @@ public:
void setDn (const TQString&); void setDn (const TQString&);
const TQStringList& attributes (); const TQStringList& attributes ();
void setAttributes (const TQStringList&); void setAttributes (const TQStringList&);
KABC::LDAPUrl::Scope scope () const; TDEABC::LDAPUrl::Scope scope () const;
void setScope (KABC::LDAPUrl::Scope); void setScope (TDEABC::LDAPUrl::Scope);
const TQString& filter () const; const TQString& filter () const;
void setFilter (TQString); void setFilter (TQString);
bool hasExtension (const TQString&) const; bool hasExtension (const TQString&) const;
KABC::LDAPUrl::Extension extension (const TQString&) const; TDEABC::LDAPUrl::Extension extension (const TQString&) const;
TQString extension (const TQString&, bool& /Out/) const /PyName=extensionAndCritical/; TQString extension (const TQString&, bool& /Out/) const /PyName=extensionAndCritical/;
void setExtension (const TQString&, const KABC::LDAPUrl::Extension&); void setExtension (const TQString&, const TDEABC::LDAPUrl::Extension&);
void setExtension (const TQString&, const TQString&, bool = 0); void setExtension (const TQString&, const TQString&, bool = 0);
void removeExtension (const TQString&); void removeExtension (const TQString&);
void updateQuery (); void updateQuery ();
@ -79,7 +79,7 @@ protected:
}; // class LDAPUrl }; // class LDAPUrl
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
namespace KABC namespace TDEABC
{ {
class LDIF class LDIF
@ -74,11 +74,11 @@ public:
static bool splitLine (const TQCString&, TQString&, TQByteArray&); static bool splitLine (const TQCString&, TQString&, TQByteArray&);
static bool splitControl (const TQCString&, TQString&, bool&, TQByteArray&); static bool splitControl (const TQCString&, TQString&, bool&, TQByteArray&);
void startParsing (); void startParsing ();
KABC::LDIF::ParseVal processLine (); TDEABC::LDIF::ParseVal processLine ();
KABC::LDIF::ParseVal nextItem (); TDEABC::LDIF::ParseVal nextItem ();
void setLDIF (const TQByteArray&); void setLDIF (const TQByteArray&);
void endLDIF (); void endLDIF ();
KABC::LDIF::EntryType entryType () const; TDEABC::LDIF::EntryType entryType () const;
int modType () const; int modType () const;
const TQString& dn () const; const TQString& dn () const;
const TQString& newRdn () const; const TQString& newRdn () const;
@ -93,7 +93,7 @@ public:
}; // class LDIF }; // class LDIF
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -29,7 +29,7 @@
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
namespace KABC namespace TDEABC
{ {
namespace LDIFConverter namespace LDIFConverter
{ {
@ -39,31 +39,31 @@ namespace LDIFConverter
//ig bool addresseeToLDIF (const AddresseeList&, TQString&); //ig bool addresseeToLDIF (const AddresseeList&, TQString&);
%End %End
bool addresseeToLDIF (const KABC::Addressee&, TQString&); bool addresseeToLDIF (const TDEABC::Addressee&, TQString&);
TQString makeLDIFfieldString (TQString, TQString, bool = 1); TQString makeLDIFfieldString (TQString, TQString, bool = 1);
bool parseSingleLine (KABC::Addressee&, KABC::Address&, KABC::Address&, TQString&); bool parseSingleLine (TDEABC::Addressee&, TDEABC::Address&, TDEABC::Address&, TQString&);
bool splitLine (TQString&, TQString&, TQString&); bool splitLine (TQString&, TQString&, TQString&);
bool evaluatePair (KABC::Addressee&, KABC::Address&, KABC::Address&, TQString&, TQString&); bool evaluatePair (TDEABC::Addressee&, TDEABC::Address&, TDEABC::Address&, TQString&, TQString&);
%If ( - KDE_3_5_2 ) %If ( - KDE_3_5_2 )
bool LDIFToAddressee (const TQString&, KABC::Addressee::List&, TQDateTime = TQDateTime ::currentDateTime ()); bool LDIFToAddressee (const TQString&, TDEABC::Addressee::List&, TQDateTime = TQDateTime ::currentDateTime ());
%MethodCode %MethodCode
KABC::Addressee::List *xa1 = (KABC::Addressee::List *)a1; TDEABC::Addressee::List *xa1 = (TDEABC::Addressee::List *)a1;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
sipRes = KABC::LDIFConverter::LDIFToAddressee (*a0, *xa1, *a2); sipRes = TDEABC::LDIFConverter::LDIFToAddressee (*a0, *xa1, *a2);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
%End %End
bool addresseeToLDIF (const KABC::Addressee::List&, TQString&); bool addresseeToLDIF (const TDEABC::Addressee::List&, TQString&);
%MethodCode %MethodCode
KABC::Addressee::List *xa0 = (KABC::Addressee::List *)a0; TDEABC::Addressee::List *xa0 = (TDEABC::Addressee::List *)a0;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
sipRes = KABC::LDIFConverter::addresseeToLDIF (*xa0, *a1); sipRes = TDEABC::LDIFConverter::addresseeToLDIF (*xa0, *a1);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
%End %End
@ -72,7 +72,7 @@ bool addresseeToLDIF (const KABC::Addressee::List&, TQString&);
}; // namespace LDIFConverter }; // namespace LDIFConverter
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
namespace KABC namespace TDEABC
{ {
class Lock : TQObject class Lock : TQObject
@ -51,7 +51,7 @@ signals:
}; // class Lock }; // class Lock
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,10 +25,10 @@
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
namespace KABC namespace TDEABC
{ {
class LockNull : KABC::Lock class LockNull : TDEABC::Lock
{ {
%TypeHeaderCode %TypeHeaderCode
#include <locknull.h> #include <locknull.h>
@ -43,7 +43,7 @@ public:
}; // class LockNull }; // class LockNull
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class PhoneNumber class PhoneNumber
@ -34,7 +34,7 @@ class PhoneNumber
public: public:
typedef TQValueList<KABC::PhoneNumber> List; typedef TQValueList<TDEABC::PhoneNumber> List;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
typedef TQValueList<int> TypeList; typedef TQValueList<int> TypeList;
@ -63,8 +63,8 @@ public:
PhoneNumber (const TQString&, int = Home ); PhoneNumber (const TQString&, int = Home );
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool operator == (const KABC::PhoneNumber&) const; bool operator == (const TDEABC::PhoneNumber&) const;
bool operator != (const KABC::PhoneNumber&) const; bool operator != (const TDEABC::PhoneNumber&) const;
%End %End
void setId (const TQString&); void setId (const TQString&);
@ -112,20 +112,20 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::PhoneNumber&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::PhoneNumber&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::PhoneNumber&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::PhoneNumber&);
%End %End
}; // namespace KABC }; // namespace TDEABC
%MappedType KABC::PhoneNumber::List %MappedType TDEABC::PhoneNumber::List
//converts a Python list of KABC::PhoneNumber //converts a Python list of TDEABC::PhoneNumber
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqvaluelist.h> #include <tqvaluelist.h>
//typedef TQValueList<KABC::PhoneNumber> List; //typedef TQValueList<TDEABC::PhoneNumber> List;
%End %End
%ConvertFromTypeCode %ConvertFromTypeCode
@ -137,14 +137,14 @@ public:
if ((pylist = PyList_New(0)) == NULL) if ((pylist = PyList_New(0)) == NULL)
return NULL; return NULL;
TQValueList<KABC::PhoneNumber> *cpplist = (TQValueList<KABC::PhoneNumber> *)sipCpp; TQValueList<TDEABC::PhoneNumber> *cpplist = (TQValueList<TDEABC::PhoneNumber> *)sipCpp;
PyObject *inst; PyObject *inst;
// Get it. // Get it.
TQValueList<KABC::PhoneNumber>::Iterator it; TQValueList<TDEABC::PhoneNumber>::Iterator it;
for( it = cpplist->begin(); it != cpplist->end(); ++it ) for( it = cpplist->begin(); it != cpplist->end(); ++it )
{ {
if (((inst = sipConvertFromNewType(new KABC::PhoneNumber(*it), sipType_KABC_PhoneNumber, NULL)) == NULL) if (((inst = sipConvertFromNewType(new TDEABC::PhoneNumber(*it), sipType_KABC_PhoneNumber, NULL)) == NULL)
|| PyList_Append (pylist, inst) < 0) || PyList_Append (pylist, inst) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
@ -160,16 +160,16 @@ public:
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyList_Check(sipPy); return PyList_Check(sipPy);
TQValueList<KABC::PhoneNumber> *cpplist = new TQValueList<KABC::PhoneNumber>; TQValueList<TDEABC::PhoneNumber> *cpplist = new TQValueList<TDEABC::PhoneNumber>;
PyObject *elem; PyObject *elem;
KABC::PhoneNumber *cpp; TDEABC::PhoneNumber *cpp;
int iserr = 0; int iserr = 0;
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (KABC::PhoneNumber *)sipForceConvertToType(elem, sipType_KABC_PhoneNumber, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); cpp = (TDEABC::PhoneNumber *)sipForceConvertToType(elem, sipType_KABC_PhoneNumber, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr) if (iserr)
{ {

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Picture class Picture
@ -39,8 +39,8 @@ public:
Picture (); Picture ();
Picture (const TQString&); Picture (const TQString&);
Picture (const TQImage&); Picture (const TQImage&);
bool operator == (const KABC::Picture&) const; bool operator == (const TDEABC::Picture&) const;
bool operator != (const KABC::Picture&) const; bool operator != (const TDEABC::Picture&) const;
void setUrl (const TQString&); void setUrl (const TQString&);
void setData (const TQImage&); void setData (const TQImage&);
void setType (const TQString&); void setType (const TQString&);
@ -52,9 +52,9 @@ public:
}; // class Picture }; // class Picture
//igx TQDataStream& operator << (TQDataStream&, const KABC::Picture&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Picture&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Picture&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Picture&);
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Plugin class Plugin
@ -46,7 +46,7 @@ public:
}; // class Plugin }; // class Plugin
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class Ticket class Ticket
@ -34,10 +34,10 @@ class Ticket
public: public:
KABC::Resource* resource (); TDEABC::Resource* resource ();
private: private:
Ticket (KABC::Resource*); Ticket (TDEABC::Resource*);
}; // class Ticket }; // class Ticket
@ -59,35 +59,35 @@ public:
//ig class ConstIterator; //ig class ConstIterator;
Resource (const TDEConfig*); Resource (const TDEConfig*);
//ig virtual KABC::Resource::ConstIterator begin () const; //ig virtual TDEABC::Resource::ConstIterator begin () const;
//ig virtual KABC::Resource::Iterator begin (); //ig virtual TDEABC::Resource::Iterator begin ();
//ig virtual KABC::Resource::ConstIterator end () const; //ig virtual TDEABC::Resource::ConstIterator end () const;
//ig virtual KABC::Resource::Iterator end (); //ig virtual TDEABC::Resource::Iterator end ();
KABC::AddressBook* addressBook (); TDEABC::AddressBook* addressBook ();
virtual void writeConfig (TDEConfig*); virtual void writeConfig (TDEConfig*);
virtual KABC::Ticket* requestSaveTicket () = 0; virtual TDEABC::Ticket* requestSaveTicket () = 0;
virtual void releaseSaveTicket (KABC::Ticket*) = 0; virtual void releaseSaveTicket (TDEABC::Ticket*) = 0;
virtual bool load () = 0; virtual bool load () = 0;
virtual bool asyncLoad (); virtual bool asyncLoad ();
virtual void insertAddressee (const KABC::Addressee&); virtual void insertAddressee (const TDEABC::Addressee&);
virtual void removeAddressee (const KABC::Addressee&); virtual void removeAddressee (const TDEABC::Addressee&);
virtual bool save (KABC::Ticket*) = 0; virtual bool save (TDEABC::Ticket*) = 0;
virtual bool asyncSave (KABC::Ticket*); virtual bool asyncSave (TDEABC::Ticket*);
virtual KABC::Addressee findByUid (const TQString&); virtual TDEABC::Addressee findByUid (const TQString&);
virtual KABC::Addressee::List findByName (const TQString&); virtual TDEABC::Addressee::List findByName (const TQString&);
virtual KABC::Addressee::List findByEmail (const TQString&); virtual TDEABC::Addressee::List findByEmail (const TQString&);
virtual KABC::Addressee::List findByCategory (const TQString&); virtual TDEABC::Addressee::List findByCategory (const TQString&);
virtual void clear (); virtual void clear ();
void setAddressBook (KABC::AddressBook*); void setAddressBook (TDEABC::AddressBook*);
signals: signals:
void loadingFinished (KABC::Resource*); void loadingFinished (TDEABC::Resource*);
void loadingError (KABC::Resource*, const TQString&); void loadingError (TDEABC::Resource*, const TQString&);
void savingFinished (KABC::Resource*); void savingFinished (TDEABC::Resource*);
void savingError (KABC::Resource*, const TQString&); void savingError (TDEABC::Resource*, const TQString&);
protected: protected:
KABC::Ticket* createTicket (KABC::Resource*); TDEABC::Ticket* createTicket (TDEABC::Resource*);
}; // class Resource }; // class Resource
@ -96,7 +96,7 @@ protected:
%If ( KDE_3_1_0 - KDE_3_2_0 ) %If ( KDE_3_1_0 - KDE_3_2_0 )
class Resource : KABC::Plugin class Resource : TDEABC::Plugin
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tdeabc/resource.h> #include <tdeabc/resource.h>
@ -104,15 +104,15 @@ class Resource : KABC::Plugin
public: public:
Resource (KABC::AddressBook*); Resource (TDEABC::AddressBook*);
virtual bool open (); virtual bool open ();
virtual void close (); virtual void close ();
virtual KABC::Ticket* requestSaveTicket (); virtual TDEABC::Ticket* requestSaveTicket ();
virtual bool load (); virtual bool load ();
virtual bool save (KABC::Ticket*); virtual bool save (TDEABC::Ticket*);
KABC::AddressBook* addressBook (); TDEABC::AddressBook* addressBook ();
virtual TQString identifier () const; virtual TQString identifier () const;
virtual void removeAddressee (const KABC::Addressee&); virtual void removeAddressee (const TDEABC::Addressee&);
virtual void cleanUp (); virtual void cleanUp ();
virtual void setReadOnly (bool); virtual void setReadOnly (bool);
virtual bool readOnly () const; virtual bool readOnly () const;
@ -123,7 +123,7 @@ public:
static TQString cryptStr (const TQString&); static TQString cryptStr (const TQString&);
protected: protected:
KABC::Ticket* createTicket (KABC::Resource*); TDEABC::Ticket* createTicket (TDEABC::Resource*);
}; // class Resource }; // class Resource
@ -140,21 +140,21 @@ class Resource
public: public:
Resource (KABC::AddressBook*); Resource (TDEABC::AddressBook*);
virtual bool open (); virtual bool open ();
virtual void close (); virtual void close ();
virtual KABC::Ticket* requestSaveTicket (); virtual TDEABC::Ticket* requestSaveTicket ();
virtual bool load (KABC::AddressBook*); virtual bool load (TDEABC::AddressBook*);
virtual bool save (KABC::Ticket*); virtual bool save (TDEABC::Ticket*);
void setAddressBook (KABC::AddressBook*); void setAddressBook (TDEABC::AddressBook*);
KABC::AddressBook* addressBook (); TDEABC::AddressBook* addressBook ();
protected: protected:
KABC::Ticket* createTicket (KABC::Resource*); TDEABC::Ticket* createTicket (TDEABC::Resource*);
}; // class Resource }; // class Resource
%End %End
}; // namespace KABC }; // namespace TDEABC

@ -23,12 +23,12 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
class ResourceFile : KABC::Resource class ResourceFile : TDEABC::Resource
{ {
%TypeHeaderCode %TypeHeaderCode
#include <resourcefile.h> #include <resourcefile.h>
@ -45,14 +45,14 @@ public:
virtual void doClose (); virtual void doClose ();
%If ( KDE_3_5_1 - ) %If ( KDE_3_5_1 - )
virtual KABC::Ticket* requestSaveTicket (); virtual TDEABC::Ticket* requestSaveTicket ();
virtual void releaseSaveTicket (KABC::Ticket*); virtual void releaseSaveTicket (TDEABC::Ticket*);
%End %End
virtual bool load (); virtual bool load ();
virtual bool asyncLoad (); virtual bool asyncLoad ();
virtual bool save (KABC::Ticket*); virtual bool save (TDEABC::Ticket*);
virtual bool asyncSave (KABC::Ticket*); virtual bool asyncSave (TDEABC::Ticket*);
%End %End
void setFileName (const TQString&); void setFileName (const TQString&);
@ -63,7 +63,7 @@ public:
TQString format () const; TQString format () const;
%If ( KDE_3_5_2 - ) %If ( KDE_3_5_2 - )
virtual void removeAddressee (const KABC::Addressee&); virtual void removeAddressee (const TDEABC::Addressee&);
%End %End
%End %End
@ -84,27 +84,27 @@ protected:
public: public:
%If ( - KDE_3_5_2 ) %If ( - KDE_3_5_2 )
void removeAddressee (const KABC::Addressee&); void removeAddressee (const TDEABC::Addressee&);
%End %End
public: public:
%If ( - KDE_3_3_0 ) %If ( - KDE_3_3_0 )
ResourceFile (KABC::AddressBook*, const TDEConfig*); ResourceFile (TDEABC::AddressBook*, const TDEConfig*);
ResourceFile (KABC::AddressBook*, const TQString&, KABC::FormatPlugin* = 0); ResourceFile (TDEABC::AddressBook*, const TQString&, TDEABC::FormatPlugin* = 0);
bool open (); bool open ();
void close (); void close ();
%End %End
%If ( - KDE_3_5_1 ) %If ( - KDE_3_5_1 )
KABC::Ticket* requestSaveTicket (); TDEABC::Ticket* requestSaveTicket ();
void releaseSaveTicket (KABC::Ticket*); void releaseSaveTicket (TDEABC::Ticket*);
%If ( - KDE_3_3_0 ) %If ( - KDE_3_3_0 )
bool load (); bool load ();
bool save (KABC::Ticket*); bool save (TDEABC::Ticket*);
virtual void cleanUp (); virtual void cleanUp ();
%End %End
@ -119,7 +119,7 @@ public:
%If ( - KDE_3_2_0 ) %If ( - KDE_3_2_0 )
class ResourceFile : KABC::Resource class ResourceFile : TDEABC::Resource
{ {
%TypeHeaderCode %TypeHeaderCode
#include <resourcefile.h> #include <resourcefile.h>
@ -129,23 +129,23 @@ class ResourceFile : KABC::Resource
public: public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
ResourceFile (KABC::AddressBook*, const TDEConfig*); ResourceFile (TDEABC::AddressBook*, const TDEConfig*);
ResourceFile (KABC::AddressBook*, const TQString&, KABC::FormatPlugin* = 0); ResourceFile (TDEABC::AddressBook*, const TQString&, TDEABC::FormatPlugin* = 0);
bool open (); bool open ();
void close (); void close ();
%End %End
KABC::Ticket* requestSaveTicket (); TDEABC::Ticket* requestSaveTicket ();
void releaseSaveTicket (KABC::Ticket*); void releaseSaveTicket (TDEABC::Ticket*);
bool load (); bool load ();
bool save (KABC::Ticket*); bool save (TDEABC::Ticket*);
virtual void cleanUp (); virtual void cleanUp ();
void setFileName (const TQString&); void setFileName (const TQString&);
TQString fileName () const; TQString fileName () const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
virtual TQString identifier () const; virtual TQString identifier () const;
void removeAddressee (const KABC::Addressee&); void removeAddressee (const TDEABC::Addressee&);
%End %End
@ -156,8 +156,8 @@ protected:
public: public:
%If ( - KDE_3_1_0 ) %If ( - KDE_3_1_0 )
ResourceFile (KABC::AddressBook*, const TQString&, KABC::Format* = 0); ResourceFile (TDEABC::AddressBook*, const TQString&, TDEABC::Format* = 0);
bool load (KABC::AddressBook*); bool load (TDEABC::AddressBook*);
%End %End
@ -172,5 +172,5 @@ protected slots:
%End %End
}; // namespace KABC }; // namespace TDEABC

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class ResourceSelectDialog class ResourceSelectDialog
@ -38,18 +38,18 @@ class ResourceSelectDialog
public: public:
ResourceSelectDialog (KABC::AddressBook*, TQWidget* = 0, const char* = 0); ResourceSelectDialog (TDEABC::AddressBook*, TQWidget* = 0, const char* = 0);
KABC::Resource* resource (); TDEABC::Resource* resource ();
static KABC::Resource* getResource (KABC::AddressBook*, TQWidget* = 0); static TDEABC::Resource* getResource (TDEABC::AddressBook*, TQWidget* = 0);
//force //force
private: private:
ResourceSelectDialog (KABC::ResourceSelectDialog&); ResourceSelectDialog (TDEABC::ResourceSelectDialog&);
//end //end
}; // class ResourceSelectDialog }; // class ResourceSelectDialog
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Secrecy class Secrecy
@ -51,8 +51,8 @@ public:
%End %End
Secrecy (int = Private ); Secrecy (int = Private );
bool operator == (const KABC::Secrecy&) const; bool operator == (const TDEABC::Secrecy&) const;
bool operator != (const KABC::Secrecy&) const; bool operator != (const TDEABC::Secrecy&) const;
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
bool isValid () const; bool isValid () const;
@ -82,11 +82,11 @@ public:
%If ( KDE_3_4_0 - ) %If ( KDE_3_4_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::Secrecy&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Secrecy&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Secrecy&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Secrecy&);
%End %End
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_4_0 - ) %If ( KDE_3_4_0 - )
namespace KABC namespace TDEABC
{ {
class SortMode class SortMode
@ -36,12 +36,12 @@ class SortMode
public: public:
virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const = 0; virtual bool lesser (const TDEABC::Addressee&, const TDEABC::Addressee&) const = 0;
}; // class SortMode }; // class SortMode
class NameSortMode : KABC::SortMode class NameSortMode : TDEABC::SortMode
{ {
%TypeHeaderCode %TypeHeaderCode
#include <sortmode.h> #include <sortmode.h>
@ -58,13 +58,13 @@ public:
}; };
NameSortMode (); NameSortMode ();
NameSortMode (KABC::NameSortMode::NameType, bool = 1); NameSortMode (TDEABC::NameSortMode::NameType, bool = 1);
virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; virtual bool lesser (const TDEABC::Addressee&, const TDEABC::Addressee&) const;
}; // class NameSortMode }; // class NameSortMode
class FieldSortMode : KABC::SortMode class FieldSortMode : TDEABC::SortMode
{ {
%TypeHeaderCode %TypeHeaderCode
#include <sortmode.h> #include <sortmode.h>
@ -72,12 +72,12 @@ class FieldSortMode : KABC::SortMode
public: public:
FieldSortMode (KABC::Field*, bool = 1); FieldSortMode (TDEABC::Field*, bool = 1);
virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; virtual bool lesser (const TDEABC::Addressee&, const TDEABC::Addressee&) const;
}; // class FieldSortMode }; // class FieldSortMode
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -25,7 +25,7 @@
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
namespace KABC namespace TDEABC
{ {
class Sound class Sound
@ -39,8 +39,8 @@ public:
Sound (); Sound ();
Sound (const TQString&); Sound (const TQString&);
Sound (const TQByteArray&); Sound (const TQByteArray&);
bool operator == (const KABC::Sound&) const; bool operator == (const TDEABC::Sound&) const;
bool operator != (const KABC::Sound&) const; bool operator != (const TDEABC::Sound&) const;
void setUrl (const TQString&); void setUrl (const TQString&);
%If ( KDE_3_4_0 - ) %If ( KDE_3_4_0 - )
@ -55,9 +55,9 @@ public:
}; // class Sound }; // class Sound
//igx TQDataStream& operator << (TQDataStream&, const KABC::Sound&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::Sound&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::Sound&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::Sound&);
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,10 +23,10 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class StdAddressBook : KABC::AddressBook class StdAddressBook : TDEABC::AddressBook
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tdeabc/resource.h> #include <tdeabc/resource.h>
@ -39,8 +39,8 @@ class StdAddressBook : KABC::AddressBook
public: public:
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
static KABC::StdAddressBook* self (); static TDEABC::StdAddressBook* self ();
static KABC::StdAddressBook* self (bool); static TDEABC::StdAddressBook* self (bool);
%End %End
static bool save (); static bool save ();
@ -58,8 +58,8 @@ public:
static bool automaticSave (); static bool automaticSave ();
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
KABC::Addressee whoAmI (); TDEABC::Addressee whoAmI ();
void setWhoAmI (const KABC::Addressee&); void setWhoAmI (const TDEABC::Addressee&);
%End %End
%End %End
@ -82,12 +82,12 @@ protected:
public: public:
%If ( - KDE_3_2_0 ) %If ( - KDE_3_2_0 )
static KABC::AddressBook* self (); static TDEABC::AddressBook* self ();
%End %End
%If ( KDE_3_1_0 - KDE_3_2_2 ) %If ( KDE_3_1_0 - KDE_3_2_2 )
static KABC::AddressBook* self (bool); static TDEABC::AddressBook* self (bool);
%End %End
@ -107,5 +107,5 @@ public:
}; // class StdAddressBook }; // class StdAddressBook
}; // namespace KABC }; // namespace TDEABC

@ -23,7 +23,7 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class TimeZone class TimeZone
@ -39,10 +39,10 @@ public:
void setOffset (int); void setOffset (int);
int offset () const; int offset () const;
bool isValid () const; bool isValid () const;
bool operator == (const KABC::TimeZone&) const; bool operator == (const TDEABC::TimeZone&) const;
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
bool operator != (const KABC::TimeZone&) const; bool operator != (const TDEABC::TimeZone&) const;
%End %End
TQString asString () const; TQString asString () const;
@ -51,9 +51,9 @@ public:
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )
//igx TQDataStream& operator << (TQDataStream&, const KABC::TimeZone&); //igx TQDataStream& operator << (TQDataStream&, const TDEABC::TimeZone&);
//igx TQDataStream& operator >> (TQDataStream&, KABC::TimeZone&); //igx TQDataStream& operator >> (TQDataStream&, TDEABC::TimeZone&);
%End %End
}; // namespace KABC }; // namespace TDEABC

@ -29,7 +29,7 @@
%If ( KDE_3_1_1 - ) %If ( KDE_3_1_1 - )
namespace KABC namespace TDEABC
{ {
class VCardConverter class VCardConverter
@ -50,14 +50,14 @@ public:
VCardConverter (); VCardConverter ();
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
TQString createVCard (const KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); TQString createVCard (const TDEABC::Addressee&, TDEABC::VCardConverter::Version = v3_0 );
TQString createVCards (KABC::Addressee::List, KABC::VCardConverter::Version = v3_0 ); TQString createVCards (TDEABC::Addressee::List, TDEABC::VCardConverter::Version = v3_0 );
KABC::Addressee parseVCard (const TQString&); TDEABC::Addressee parseVCard (const TQString&);
KABC::Addressee::List parseVCards (const TQString&); TDEABC::Addressee::List parseVCards (const TQString&);
%End %End
bool vCardToAddressee (const TQString&, KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); bool vCardToAddressee (const TQString&, TDEABC::Addressee&, TDEABC::VCardConverter::Version = v3_0 );
bool addresseeToVCard (const KABC::Addressee&, TQString&, KABC::VCardConverter::Version = v3_0 ); bool addresseeToVCard (const TDEABC::Addressee&, TQString&, TDEABC::VCardConverter::Version = v3_0 );
}; // class VCardConverter }; // class VCardConverter
@ -68,7 +68,7 @@ TQString dateToVCardString (const TQDate&);
TQDateTime VCardStringToDate (const TQString&); TQDateTime VCardStringToDate (const TQString&);
%End %End
}; // namespace KABC }; // namespace TDEABC
%End %End

@ -23,10 +23,10 @@
// If not, write to the Free Software Foundation, Inc., // If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace KABC namespace TDEABC
{ {
class VCardFormat : KABC::Format class VCardFormat : TDEABC::Format
{ {
%TypeHeaderCode %TypeHeaderCode
#include <vcardformat.h> #include <vcardformat.h>
@ -35,10 +35,10 @@ class VCardFormat : KABC::Format
public: public:
VCardFormat (); VCardFormat ();
bool load (KABC::AddressBook*, const TQString&); bool load (TDEABC::AddressBook*, const TQString&);
bool save (KABC::AddressBook*, const TQString&); bool save (TDEABC::AddressBook*, const TQString&);
}; // class VCardFormat }; // class VCardFormat
}; // namespace KABC }; // namespace TDEABC

@ -25,10 +25,10 @@
%If ( KDE_3_1_1 - ) %If ( KDE_3_1_1 - )
namespace KABC namespace TDEABC
{ {
class VCardFormatPlugin : KABC::FormatPlugin class VCardFormatPlugin : TDEABC::FormatPlugin
{ {
%TypeHeaderCode %TypeHeaderCode
#include <vcardformatplugin.h> #include <vcardformatplugin.h>
@ -37,15 +37,15 @@ class VCardFormatPlugin : KABC::FormatPlugin
public: public:
VCardFormatPlugin (); VCardFormatPlugin ();
bool load (KABC::Addressee&, TQFile*); bool load (TDEABC::Addressee&, TQFile*);
bool loadAll (KABC::AddressBook*, KABC::Resource*, TQFile*); bool loadAll (TDEABC::AddressBook*, TDEABC::Resource*, TQFile*);
void save (const KABC::Addressee&, TQFile*); void save (const TDEABC::Addressee&, TQFile*);
void saveAll (KABC::AddressBook*, KABC::Resource*, TQFile*); void saveAll (TDEABC::AddressBook*, TDEABC::Resource*, TQFile*);
bool checkFormat (TQFile*) const; bool checkFormat (TQFile*) const;
}; // class VCardFormatPlugin }; // class VCardFormatPlugin
}; // namespace KABC }; // namespace TDEABC
%End %End

Loading…
Cancel
Save