|
|
@ -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)
|
|
|
|
{
|
|
|
|
{
|
|
|
|