Rename KABC namespace

pull/16/head
Timothy Pearson 12 years ago
parent 04105ef073
commit 45f3927b0f

@ -249,7 +249,7 @@ AC_SUBST(LIBRESOLV)
AC_SUBST(LIBICE) AC_SUBST(LIBICE)
AC_SUBST(LIB_KAB, '$(top_builddir)/kab/libkab.la') AC_SUBST(LIB_KAB, '$(top_builddir)/kab/libkab.la')
AC_SUBST(LIB_KABC, '$(top_builddir)/tdeabc/libkabc.la') AC_SUBST(LIB_TDEABC, '$(top_builddir)/tdeabc/libkabc.la')
AC_SUBST(LIB_TDECORE, '$(top_builddir)/tdecore/libtdecore.la') AC_SUBST(LIB_TDECORE, '$(top_builddir)/tdecore/libtdecore.la')
AC_SUBST(LIB_TDEUI, '$(top_builddir)/tdeui/libtdeui.la') AC_SUBST(LIB_TDEUI, '$(top_builddir)/tdeui/libtdeui.la')
AC_SUBST(LIB_KIO, '$(top_builddir)/tdeio/libtdeio.la') AC_SUBST(LIB_KIO, '$(top_builddir)/tdeio/libtdeio.la')

@ -40,7 +40,7 @@
* *
* Contacts are identified using unique identifier strings (UID) used by * Contacts are identified using unique identifier strings (UID) used by
* KABC, the KDE address book library. * KABC, the KDE address book library.
* The UID generation is handled by KABC::Addressee so the your application * The UID generation is handled by TDEABC::Addressee so the your application
* will either have to access the address book or provide a possibility * will either have to access the address book or provide a possibility
* for associating a contact of your application with an entry of the address * for associating a contact of your application with an entry of the address
* book. * book.
@ -76,8 +76,8 @@
* @c SOURCES list in your @c Makefile.am * @c SOURCES list in your @c Makefile.am
* *
* @see KIMProxy * @see KIMProxy
* @see KABC::AddressBook * @see TDEABC::AddressBook
* @see KABC::Addressee * @see TDEABC::Addressee
* *
* @since 3.3 * @since 3.3
* @author Will Stephenson <lists@stevello.free-online.co.uk> * @author Will Stephenson <lists@stevello.free-online.co.uk>
@ -100,7 +100,7 @@ k_dcop:
* @see onlineContacts() * @see onlineContacts()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQStringList allContacts() = 0; virtual TQStringList allContacts() = 0;
@ -120,7 +120,7 @@ k_dcop:
* @see onlineContacts() * @see onlineContacts()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see messageContact() * @see messageContact()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQStringList reachableContacts() = 0; virtual TQStringList reachableContacts() = 0;
@ -138,7 +138,7 @@ k_dcop:
* @see fileTransferContacts() * @see fileTransferContacts()
* @see messageContact() * @see messageContact()
* @see chatWithContact() * @see chatWithContact()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQStringList onlineContacts() = 0; virtual TQStringList onlineContacts() = 0;
@ -163,7 +163,7 @@ k_dcop:
* @see onlineContacts() * @see onlineContacts()
* @see canReceiveFiles() * @see canReceiveFiles()
* @see sendFile() * @see sendFile()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQStringList fileTransferContacts() = 0; virtual TQStringList fileTransferContacts() = 0;
@ -180,7 +180,7 @@ k_dcop:
* @see allContacts() * @see allContacts()
* @see presenceString() * @see presenceString()
* @see presenceStatus() * @see presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual bool isPresent( const TQString & uid ) = 0; virtual bool isPresent( const TQString & uid ) = 0;
@ -198,7 +198,7 @@ k_dcop:
* @see isPresent() * @see isPresent()
* @see presenceString() * @see presenceString()
* @see presenceStatus() * @see presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQString displayName( const TQString & uid ) = 0; virtual TQString displayName( const TQString & uid ) = 0;
@ -215,7 +215,7 @@ k_dcop:
* *
* @see isPresent() * @see isPresent()
* @see presenceStatus() * @see presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQString presenceString( const TQString & uid ) = 0; virtual TQString presenceString( const TQString & uid ) = 0;
@ -245,7 +245,7 @@ k_dcop:
* *
* @see isPresent() * @see isPresent()
* @see presenceString() * @see presenceString()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual int presenceStatus( const TQString & uid ) = 0; virtual int presenceStatus( const TQString & uid ) = 0;
@ -256,7 +256,7 @@ k_dcop:
* @return whether the specified contact can receive files * @return whether the specified contact can receive files
* *
* @see fileTransferContacts() * @see fileTransferContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual bool canReceiveFiles( const TQString & uid ) = 0; virtual bool canReceiveFiles( const TQString & uid ) = 0;
@ -274,7 +274,7 @@ k_dcop:
* @return whether the specified contact can respond * @return whether the specified contact can respond
* *
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual bool canRespond( const TQString & uid ) = 0; virtual bool canRespond( const TQString & uid ) = 0;
@ -291,7 +291,7 @@ k_dcop:
* @see protocols() * @see protocols()
* @see addContact() * @see addContact()
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQString locate( const TQString & contactId, const TQString & protocol ) = 0; virtual TQString locate( const TQString & contactId, const TQString & protocol ) = 0;
@ -310,7 +310,7 @@ k_dcop:
* @see isPresent() * @see isPresent()
* @see presenceString() * @see presenceString()
* @see presenceStatus() * @see presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQPixmap icon( const TQString & uid ) = 0; virtual TQPixmap icon( const TQString & uid ) = 0;
@ -325,7 +325,7 @@ k_dcop:
* supported or if the contact is unknown * supported or if the contact is unknown
* *
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual TQString context( const TQString & uid ) = 0; virtual TQString context( const TQString & uid ) = 0;
@ -372,7 +372,7 @@ k_dcop:
* @see sendFile() * @see sendFile()
* @see isPresent() * @see isPresent()
* @see reachableContacts() * @see reachableContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual void messageContact( const TQString &uid, const TQString& message ) = 0; virtual void messageContact( const TQString &uid, const TQString& message ) = 0;
@ -410,7 +410,7 @@ k_dcop:
* @see sendFile() * @see sendFile()
* @see isPresent() * @see isPresent()
* @see reachableContacts() * @see reachableContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual void chatWithContact( const TQString &uid ) = 0; virtual void chatWithContact( const TQString &uid ) = 0;
@ -436,7 +436,7 @@ k_dcop:
* @see chatWithContact() * @see chatWithContact()
* @see isPresent() * @see isPresent()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
virtual void sendFile(const TQString &uid, const KURL &sourceURL, virtual void sendFile(const TQString &uid, const KURL &sourceURL,
const TQString &altFileName = TQString::null, uint fileSize = 0) = 0; const TQString &altFileName = TQString::null, uint fileSize = 0) = 0;
@ -479,7 +479,7 @@ k_dcop_signals:
* @param presence the new presence's numeric value. See presenceStatus() * @param presence the new presence's numeric value. See presenceStatus()
* *
* @see presenceStatus() * @see presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
* @see DCOPClient::appId() * @see DCOPClient::appId()
*/ */
void contactPresenceChanged( TQString uid, TQCString appId, int presence ); void contactPresenceChanged( TQString uid, TQCString appId, int presence );

@ -98,8 +98,8 @@ typedef TQMap<TQString, ContactPresenceListCurrent> PresenceStringMap;
* availability, capability and presence (online status) of IM-contacts. * availability, capability and presence (online status) of IM-contacts.
* *
* @see KIMIface * @see KIMIface
* @see KABC::AddressBook * @see TDEABC::AddressBook
* @see KABC::Addressee * @see TDEABC::Addressee
* *
* @since 3.3 * @since 3.3
* @author Will Stephenson <lists@stevello.free-online.co.uk> * @author Will Stephenson <lists@stevello.free-online.co.uk>
@ -161,7 +161,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see onlineContacts() * @see onlineContacts()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQStringList allContacts(); TQStringList allContacts();
@ -177,7 +177,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see onlineContacts() * @see onlineContacts()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see messageContact() * @see messageContact()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQStringList reachableContacts(); TQStringList reachableContacts();
@ -197,7 +197,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see fileTransferContacts() * @see fileTransferContacts()
* @see messageContact() * @see messageContact()
* @see chatWithContact() * @see chatWithContact()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQStringList onlineContacts(); TQStringList onlineContacts();
@ -219,7 +219,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see reachableContacts() * @see reachableContacts()
* @see onlineContacts() * @see onlineContacts()
* @see canReceiveFiles() * @see canReceiveFiles()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQStringList fileTransferContacts(); TQStringList fileTransferContacts();
@ -239,7 +239,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see allContacts() * @see allContacts()
* @see presenceString() * @see presenceString()
* @see presenceNumeric() * @see presenceNumeric()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
bool isPresent( const TQString& uid ); bool isPresent( const TQString& uid );
@ -261,7 +261,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see isPresent() * @see isPresent()
* @see presenceString() * @see presenceString()
* @see presenceNumeric() * @see presenceNumeric()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQString displayName( const TQString& uid ); TQString displayName( const TQString& uid );
@ -302,7 +302,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see presenceString() * @see presenceString()
* @see presenceIcon() * @see presenceIcon()
* @see KIMIface::presenceStatus() * @see KIMIface::presenceStatus()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
int presenceNumeric( const TQString& uid ); int presenceNumeric( const TQString& uid );
@ -338,7 +338,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see isPresent() * @see isPresent()
* @see presenceNumeric() * @see presenceNumeric()
* @see presenceIcon() * @see presenceIcon()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQString presenceString( const TQString& uid ); TQString presenceString( const TQString& uid );
@ -367,7 +367,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see isPresent() * @see isPresent()
* @see presenceString() * @see presenceString()
* @see presenceNumeric() * @see presenceNumeric()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQPixmap presenceIcon( const TQString& uid ); TQPixmap presenceIcon( const TQString& uid );
@ -384,7 +384,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @return whether the specified contact can receive files * @return whether the specified contact can receive files
* *
* @see fileTransferContacts() * @see fileTransferContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
bool canReceiveFiles( const TQString & uid ); bool canReceiveFiles( const TQString & uid );
@ -409,7 +409,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @return whether the specified contact can respond * @return whether the specified contact can respond
* *
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
bool canRespond( const TQString & uid ); bool canRespond( const TQString & uid );
@ -427,7 +427,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see KIMIface::protocols() * @see KIMIface::protocols()
* @see addContact() * @see addContact()
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQString locate( const TQString & contactId, const TQString & protocol ); TQString locate( const TQString & contactId, const TQString & protocol );
@ -449,7 +449,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* supported or if the contact is unknown * supported or if the contact is unknown
* *
* @see isPresent() * @see isPresent()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
TQString context( const TQString & uid ); TQString context( const TQString & uid );
@ -462,7 +462,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see sendFile() * @see sendFile()
* @see isPresent() * @see isPresent()
* @see reachableContacts() * @see reachableContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
void chatWithContact( const TQString& uid ); void chatWithContact( const TQString& uid );
@ -479,7 +479,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see sendFile() * @see sendFile()
* @see isPresent() * @see isPresent()
* @see reachableContacts() * @see reachableContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
void messageContact( const TQString& uid, const TQString& message ); void messageContact( const TQString& uid, const TQString& message );
@ -498,7 +498,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see chatWithContact() * @see chatWithContact()
* @see isPresent() * @see isPresent()
* @see fileTransferContacts() * @see fileTransferContacts()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
void sendFile(const TQString &uid, const KURL &sourceURL, void sendFile(const TQString &uid, const KURL &sourceURL,
const TQString &altFileName = TQString::null, uint fileSize = 0); const TQString &altFileName = TQString::null, uint fileSize = 0);
@ -586,7 +586,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see isPresent() * @see isPresent()
* @see presenceNumeric() * @see presenceNumeric()
* @see presenceIcon() * @see presenceIcon()
* @see KABC::Addressee::uid() * @see TDEABC::Addressee::uid()
*/ */
void sigContactPresenceChanged( const TQString &uid ); void sigContactPresenceChanged( const TQString &uid );

@ -23,7 +23,7 @@ libtdetexteditor_la_SOURCES = tdetexteditor.cpp \
libtdetexteditor_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor libtdetexteditor_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor
libtdetexteditor_la_LIBADD = $(LIB_KPARTS) $(top_builddir)/dcop/libDCOP.la $(LIB_KABC) $(LIB_TDECORE) $(LIB_QT) $(LIB_TDEFILE) $(LIB_TDEUI) libtdetexteditor_la_LIBADD = $(LIB_KPARTS) $(top_builddir)/dcop/libDCOP.la $(LIB_TDEABC) $(LIB_TDECORE) $(LIB_QT) $(LIB_TDEFILE) $(LIB_TDEUI)
tdetexteditorinclude_HEADERS = document.h view.h editor.h plugin.h editinterface.h undointerface.h \ tdetexteditorinclude_HEADERS = document.h view.h editor.h plugin.h editinterface.h undointerface.h \
selectioninterface.h cursorinterface.h \ selectioninterface.h cursorinterface.h \

@ -54,16 +54,16 @@ void TemplateInterface::setTemplateInterfaceDCOPSuffix ( const TQCString &suffix
#define INITKABC do { \ #define INITKABC do { \
if (addrBook==0) { \ if (addrBook==0) { \
addrBook=KABC::StdAddressBook::self(); \ addrBook=TDEABC::StdAddressBook::self(); \
userAddress=addrBook->whoAmI(); \ userAddress=addrBook->whoAmI(); \
if (userAddress.isEmpty()) { \ if (userAddress.isEmpty()) { \
if ( KMessageBox::questionYesNo(parentWindow, \ if ( KMessageBox::questionYesNo(parentWindow, \
i18n( "This template uses personal data that is stored in the TDE addressbook, but you have not selected a personal entry. You can still use the template without one, but you will have to type personal data. Would you like to select one now?" ), \ i18n( "This template uses personal data that is stored in the TDE addressbook, but you have not selected a personal entry. You can still use the template without one, but you will have to type personal data. Would you like to select one now?" ), \
"Personal data requested", \ "Personal data requested", \
KStdGuiItem::yes(), KStdGuiItem::no(), "select personal data entry") == KMessageBox::Yes ) { \ KStdGuiItem::yes(), KStdGuiItem::no(), "select personal data entry") == KMessageBox::Yes ) { \
userAddress = KABC::AddresseeDialog::getAddressee(parentWindow); \ userAddress = TDEABC::AddresseeDialog::getAddressee(parentWindow); \
if ( ! userAddress.isEmpty() ) \ if ( ! userAddress.isEmpty() ) \
KABC::StdAddressBook::self()->setWhoAmI( userAddress ); \ TDEABC::StdAddressBook::self()->setWhoAmI( userAddress ); \
}\ }\
/*return false;//no, why??*/ \ /*return false;//no, why??*/ \
} \ } \
@ -72,8 +72,8 @@ void TemplateInterface::setTemplateInterfaceDCOPSuffix ( const TQCString &suffix
bool TemplateInterface::expandMacros( TQMap<TQString, TQString> &map, TQWidget *parentWindow ) bool TemplateInterface::expandMacros( TQMap<TQString, TQString> &map, TQWidget *parentWindow )
{ {
KABC::StdAddressBook *addrBook = 0; TDEABC::StdAddressBook *addrBook = 0;
KABC::Addressee userAddress; TDEABC::Addressee userAddress;
TQDateTime datetime = TQDateTime::currentDateTime(); TQDateTime datetime = TQDateTime::currentDateTime();
TQDate date = TQT_TQDATE_OBJECT(datetime.date()); TQDate date = TQT_TQDATE_OBJECT(datetime.date());
TQTime time = TQT_TQTIME_OBJECT(datetime.time()); TQTime time = TQT_TQTIME_OBJECT(datetime.time());

@ -30,7 +30,7 @@ makekdewidgets_LDADD = $(LIB_QT) ../tdecore/libtdecore.la
kde_widget_LTLIBRARIES = kdewidgets.la kde_widget_LTLIBRARIES = kdewidgets.la
kdewidgets_la_LDFLAGS = $(KDE_PLUGIN) -module $(all_libraries) kdewidgets_la_LDFLAGS = $(KDE_PLUGIN) -module $(all_libraries)
kdewidgets_la_LIBADD = $(LIB_KIO) $(LIB_KABC) $(LIB_QT) $(LIB_TDEUI) $(LIB_TDECORE) kdewidgets_la_LIBADD = $(LIB_KIO) $(LIB_TDEABC) $(LIB_QT) $(LIB_TDEUI) $(LIB_TDECORE)
kdewidgets_la_SOURCES = classpreviews.cpp kdewidgets.cpp kdewidgets_la_SOURCES = classpreviews.cpp kdewidgets.cpp
kdewidgets.cpp: $(srcdir)/kde.widgets makekdewidgets kdewidgets.cpp: $(srcdir)/kde.widgets makekdewidgets

@ -271,11 +271,11 @@ ToolTip=A color palette in table form.
Group=Display (KDE) Group=Display (KDE)
ConstructorArgs=(parent, 210, 16) ConstructorArgs=(parent, 210, 16)
[KABC::LdapConfigWidget] [TDEABC::LdapConfigWidget]
IncludeFile=tdeabc/ldapconfigwidget.h IncludeFile=tdeabc/ldapconfigwidget.h
ToolTip=A widget which allows the user to set up LDAP connection parameters ToolTip=A widget which allows the user to set up LDAP connection parameters
Group=Input (KDE) Group=Input (KDE)
ConstructorArgs=(KABC::LdapConfigWidget::W_ALL, parent, name) ConstructorArgs=(TDEABC::LdapConfigWidget::W_ALL, parent, name)
[KArrowButton] [KArrowButton]
IncludeFile=karrowbutton.h IncludeFile=karrowbutton.h

@ -260,7 +260,7 @@ ToolTip=A color palette in table form.
Group=Display (KDE) Group=Display (KDE)
ConstructorArgs=(parent, 210, 16) ConstructorArgs=(parent, 210, 16)
[KABC::AddressLineEdit] [TDEABC::AddressLineEdit]
IncludeFile=tdeabc/addresslineedit.h IncludeFile=tdeabc/addresslineedit.h
ToolTip=A lineedit with LDAP and kabc completion. ToolTip=A lineedit with LDAP and kabc completion.
Group=Input (KDE) Group=Input (KDE)

@ -18,11 +18,11 @@ Management Layer *
****************** ******************
.-------------------. .-------------------.
| KABC::AddressBook | | TDEABC::AddressBook |
.--------------------------------. .--------------------------------.
| KABC::Addressee | => Iterators | TDEABC::Addressee | => Iterators
| KABC::Addressee | | TDEABC::Addressee |
| KABC::Addressee | => Search functions | TDEABC::Addressee | => Search functions
| ... | | ... |
`--------------------------------' `--------------------------------'
| |
@ -44,8 +44,8 @@ Storage Layer * |
The Management Layer The Management Layer
--------------------- ---------------------
The Management Layer consists of the two classes KABC::AddressBook and The Management Layer consists of the two classes TDEABC::AddressBook and
KABC::Addressee. KABC::AddressBook is a container for KABC::Addressee objects TDEABC::Addressee. TDEABC::AddressBook is a container for TDEABC::Addressee objects
and provides 2 kinds of access methods. and provides 2 kinds of access methods.
1) Iterators 1) Iterators
With iterators you can iterate over each of the contacts of the With iterators you can iterate over each of the contacts of the
@ -55,13 +55,13 @@ and provides 2 kinds of access methods.
With search functions you can search for contacts with special attributes With search functions you can search for contacts with special attributes
such as "all contacts with the name 'Harald'" such as "all contacts with the name 'Harald'"
The class KABC::Addressee represents a single contact and contains all data The class TDEABC::Addressee represents a single contact and contains all data
a vCard could store (as specified in RFC 2426). a vCard could store (as specified in RFC 2426).
The Storage Layer The Storage Layer
------------------ ------------------
The Storage Layer consists of the class KABC::Resource and its derived classes. The Storage Layer consists of the class TDEABC::Resource and its derived classes.
These classes are used by KABC::AddressBook to load and store the contacts to These classes are used by TDEABC::AddressBook to load and store the contacts to
the single backends. the single backends.
At the moment libkabc provides 4 types of resources: At the moment libkabc provides 4 types of resources:
1) ResourceFile 1) ResourceFile
@ -79,7 +79,7 @@ At the moment libkabc provides 4 types of resources:
FTP, Fish, WebDAV, POP3, IMAP or whatever the KIO frame work supports FTP, Fish, WebDAV, POP3, IMAP or whatever the KIO frame work supports
In general the developer does not have to take how to save the single contacts. In general the developer does not have to take how to save the single contacts.
He just has to plug one of the above mentioned resources into KABC::AddressBook He just has to plug one of the above mentioned resources into TDEABC::AddressBook
and perform a save action. and perform a save action.
Examples Examples
@ -88,27 +88,27 @@ Like a picture, C/C++ code is worth a 1000 words I'd like to give you a
lot of examples now, how to use libkabc for several tasks: lot of examples now, how to use libkabc for several tasks:
Using KABC::StdAddressBook and Iterators Using TDEABC::StdAddressBook and Iterators
----------------------------------------- -----------------------------------------
Normally you have to plugin the resources manually into the addressbook object Normally you have to plugin the resources manually into the addressbook object
and call the load() function before you can access the contacts, but there is and call the load() function before you can access the contacts, but there is
a special class KABC::StdAddressBook, which loads all resources of the standard a special class TDEABC::StdAddressBook, which loads all resources of the standard
address book of the user automatically. You can use it the following way: address book of the user automatically. You can use it the following way:
#include <tdeabc/stdaddressbook.h> #include <tdeabc/stdaddressbook.h>
1: KABC::AddressBook *ab = KABC::StdAddressBook::self(); 1: TDEABC::AddressBook *ab = TDEABC::StdAddressBook::self();
2: KABC::AddressBook::Iterator it; 2: TDEABC::AddressBook::Iterator it;
3: for ( it = ab->begin(); it != ab->end(); ++it ) { 3: for ( it = ab->begin(); it != ab->end(); ++it ) {
4: KABC::Addressee addr = (*it); 4: TDEABC::Addressee addr = (*it);
5: 5:
6: kdDebug() << "Name = " << addr.formattedName() << endl; 6: kdDebug() << "Name = " << addr.formattedName() << endl;
7: } 7: }
The above example prints out the names of all the contacts in the user's address The above example prints out the names of all the contacts in the user's address
book. In line 1 you retrieve a pointer to the user's standard address book book. In line 1 you retrieve a pointer to the user's standard address book
(provided by KABC::StdAddressBook via a singleton design pattern). (provided by TDEABC::StdAddressBook via a singleton design pattern).
In line 2 an iterator is defined, which is used in line 3 to iterate over the In line 2 an iterator is defined, which is used in line 3 to iterate over the
whole address book. The assignment in line 4 is intended only to show more whole address book. The assignment in line 4 is intended only to show more
clearly how iterators function. clearly how iterators function.
@ -117,21 +117,21 @@ of the current contact is printed out to stderr.
As you can see that's all magic, and it's quite easy ;) As you can see that's all magic, and it's quite easy ;)
Using KABC::AddressBook manually Using TDEABC::AddressBook manually
--------------------------------- ---------------------------------
In some cases you don't want to load the user's standard address book, but, In some cases you don't want to load the user's standard address book, but,
for example, just a single vCard. For this purpose you have to use the for example, just a single vCard. For this purpose you have to use the
class KABC::AddressBook and handle the resource stuff manually. class TDEABC::AddressBook and handle the resource stuff manually.
The following code will create a file resource and save a contact into it: The following code will create a file resource and save a contact into it:
#include <tdeabc/addressbook.h> #include <tdeabc/addressbook.h>
#include <tdeabc/resourcefile.h> #include <tdeabc/resourcefile.h>
1: KABC::AddressBook ab; 1: TDEABC::AddressBook ab;
2: 2:
3: // create a file resource 3: // create a file resource
4: KABC::Resource *res = new KABC::ResourceFile( "/home/user/myvcard.vcf", "vcard" ); 4: TDEABC::Resource *res = new TDEABC::ResourceFile( "/home/user/myvcard.vcf", "vcard" );
5: 5:
6: if ( !ab.addResource( res ) ) { 6: if ( !ab.addResource( res ) ) {
7: kdDebug() << "Unable to open resource" << endl; 7: kdDebug() << "Unable to open resource" << endl;
@ -143,18 +143,18 @@ The following code will create a file resource and save a contact into it:
13: return 2; 13: return 2;
14: } 14: }
15: 15:
16: KABC::Addressee addr; 16: TDEABC::Addressee addr;
17: addr.setNameFromString( "Otto Harald Meyer" ); 17: addr.setNameFromString( "Otto Harald Meyer" );
18: addr.setBirthday( QDate( 1982, 07, 19 ) ); 18: addr.setBirthday( QDate( 1982, 07, 19 ) );
19: addr.setNickName( "otto" ); 19: addr.setNickName( "otto" );
20: addr.setMailer( "kmail" ); 20: addr.setMailer( "kmail" );
21: 21:
22: // TZ 22: // TZ
23: KABC::TimeZone tz( 60 ); // takes time shift in minutes as argument 23: TDEABC::TimeZone tz( 60 ); // takes time shift in minutes as argument
24: addr.setTimeZone( tz ); 24: addr.setTimeZone( tz );
25: 25:
26: // GEO 26: // GEO
27: KABC::Geo geo( 52.5, 13.36 ); // takes latitude and longitude as argument 27: TDEABC::Geo geo( 52.5, 13.36 ); // takes latitude and longitude as argument
28: addr.setGeo( geo ); 28: addr.setGeo( geo );
29: 29:
30: addr.setTitle( "dude, the" ); 30: addr.setTitle( "dude, the" );
@ -164,11 +164,11 @@ The following code will create a file resource and save a contact into it:
34: addr.setUrl( KURL( "http://kaddressbook.org" ) ); 34: addr.setUrl( KURL( "http://kaddressbook.org" ) );
35: 35:
36: // CLASS 36: // CLASS
37: KABC::Secrecy secrecy( KABC::Secrecy::Confidential ); 37: TDEABC::Secrecy secrecy( TDEABC::Secrecy::Confidential );
38: addr.setSecrecy( secrecy ); 38: addr.setSecrecy( secrecy );
39: 39:
40: // PHOTO or LOGO 40: // PHOTO or LOGO
41: KABC::Picture photo; 41: TDEABC::Picture photo;
42: QImage img; 42: QImage img;
43: if ( img.load( "face.png", "PNG" ) ) { 43: if ( img.load( "face.png", "PNG" ) ) {
44: photo.setData( img ); 44: photo.setData( img );
@ -180,13 +180,13 @@ The following code will create a file resource and save a contact into it:
50: addr.insertEmail( "otti@yahoo.com", false ); 50: addr.insertEmail( "otti@yahoo.com", false );
51: 51:
52: // TEL 52: // TEL
53: KABC::PhoneNumber phoneHome( "0351 5466738", KABC::PhoneNumber::Home ); 53: TDEABC::PhoneNumber phoneHome( "0351 5466738", TDEABC::PhoneNumber::Home );
54: KABC::PhoneNumber phoneWork( "0351 2335411", KABC::PhoneNumber::Work ); 54: TDEABC::PhoneNumber phoneWork( "0351 2335411", TDEABC::PhoneNumber::Work );
55: addr.insertPhoneNumber( phoneHome ); 55: addr.insertPhoneNumber( phoneHome );
56: addr.insertPhoneNumber( phoneWork ); 56: addr.insertPhoneNumber( phoneWork );
57: 57:
58: // ADR 58: // ADR
59: KABC::Address homeAddr( KABC::Address::Home ); 59: TDEABC::Address homeAddr( TDEABC::Address::Home );
60: homeAddr.setStreet( "Milliwaystreet 42" ); 60: homeAddr.setStreet( "Milliwaystreet 42" );
61: homeAddr.setLocality( "London" ); 61: homeAddr.setLocality( "London" );
62: homeAddr.setRegion( "Saxony" ); 62: homeAddr.setRegion( "Saxony" );
@ -201,7 +201,7 @@ The following code will create a file resource and save a contact into it:
71: ab.insertAddressee( addr ); // will be assigned to the standard resource 71: ab.insertAddressee( addr ); // will be assigned to the standard resource
72: // automatically 72: // automatically
73: 73:
74: KABC::Ticket *ticket = ab.requestSaveTicket( res ); 74: TDEABC::Ticket *ticket = ab.requestSaveTicket( res );
75: if ( !ticket ) { 75: if ( !ticket ) {
76: kdError() << "Resource is locked by other application!" << endl; 76: kdError() << "Resource is locked by other application!" << endl;
77: } else { 77: } else {
@ -214,8 +214,8 @@ The following code will create a file resource and save a contact into it:
84: 84:
85: return 0; 85: return 0;
In line 1 the KABC::AddressBook is created. In line 4 you creat the In line 1 the TDEABC::AddressBook is created. In line 4 you creat the
KABC::ResourceFile (which will handle the loading/saving). TDEABC::ResourceFile (which will handle the loading/saving).
The resource takes 2 arguments, the first is the file name and the The resource takes 2 arguments, the first is the file name and the
second one the file format. At the moment libkabc supports two file formats: second one the file format. At the moment libkabc supports two file formats:
1) vCard, as specified in RFC 2426 1) vCard, as specified in RFC 2426
@ -229,8 +229,8 @@ as you want.
In line 11 we try to load all contacts from the backends into the address book. In line 11 we try to load all contacts from the backends into the address book.
As before, it returns whether opening was successful. As before, it returns whether opening was successful.
In line 16 a KABC::Addressee is created, which we will fill now with data, In line 16 a TDEABC::Addressee is created, which we will fill now with data,
before inserting it into the KABC::AddressBook. before inserting it into the TDEABC::AddressBook.
The setNameFromString() function in the following line takes a string as The setNameFromString() function in the following line takes a string as
argument and tries to parse it into the single name components such as: given argument and tries to parse it into the single name components such as: given
name, family name, additional names, honoric prefix and honoric suffix. name, family name, additional names, honoric prefix and honoric suffix.
@ -240,34 +240,34 @@ and
addr.setFamilyName( "Meyer" ); addr.setFamilyName( "Meyer" );
etc. etc. etc. etc.
In line 23 we use the class KABC::TimeZone to store the timezone. This class In line 23 we use the class TDEABC::TimeZone to store the timezone. This class
takes the time shift in minutes. takes the time shift in minutes.
In line 27 the KABC::Geo class is used for storing the geographical In line 27 the TDEABC::Geo class is used for storing the geographical
information. The arguments are the latitude and longitude as float values. information. The arguments are the latitude and longitude as float values.
KABC::Secrecy in line 37 represents the CLASS entity of a vCard and can take TDEABC::Secrecy in line 37 represents the CLASS entity of a vCard and can take
KABC::Secrecy::Public, KABC::Secrecy::Private or KABC::Secrecy::Confidential TDEABC::Secrecy::Public, TDEABC::Secrecy::Private or TDEABC::Secrecy::Confidential
as argument. as argument.
In line 41 we make use of KABC::Picture class to store the photo of the In line 41 we make use of TDEABC::Picture class to store the photo of the
contact. This class can contain either an URL or the raw image data in form contact. This class can contain either an URL or the raw image data in form
of a QImage, in this example we use the latter. of a QImage, in this example we use the latter.
In line 43 we try to load the image "face.png" from the local directory and In line 43 we try to load the image "face.png" from the local directory and
assign this QImage to the KABC::Picture class via the setData() function. assign this QImage to the TDEABC::Picture class via the setData() function.
Additionally we set the type of the picture to "image/png". Additionally we set the type of the picture to "image/png".
From 49 - 50 we insert 2 email addresses with the first one as preferred From 49 - 50 we insert 2 email addresses with the first one as preferred
(second argument is true). (second argument is true).
In 53 and the following 3 lines we add two telephone numbers. For this purpose In 53 and the following 3 lines we add two telephone numbers. For this purpose
libkabc provides the KABC::PhoneNumber class, which takes the phone number in libkabc provides the TDEABC::PhoneNumber class, which takes the phone number in
string representation as first argument and the type as second. The types can string representation as first argument and the type as second. The types can
be combined, so 'KABC::PhoneNumber::Home | KABC::PhoneNumber::Fax' would be be combined, so 'TDEABC::PhoneNumber::Home | TDEABC::PhoneNumber::Fax' would be
the Home Fax. the Home Fax.
In line 59 we create a KABC::Address object and set the single parts in the In line 59 we create a TDEABC::Address object and set the single parts in the
following lines. following lines.
In line 67 we assign the contact to a special category. In line 67 we assign the contact to a special category.
@ -279,25 +279,25 @@ The first argument of this function should be the name of the application, so
the data for each other. The second argument contains the name of the the data for each other. The second argument contains the name of the
custom entry and the third argument the value in string representation. custom entry and the third argument the value in string representation.
In line 71 we finally insert the KABC::Addressee object into the In line 71 we finally insert the TDEABC::Addressee object into the
KABC::AddressBook. Since we have only one resource loaded, the contact is TDEABC::AddressBook. Since we have only one resource loaded, the contact is
automatically assigned to this resource. If you have several writeable automatically assigned to this resource. If you have several writeable
resources loaded, you should ask the user which resource the contact shall resources loaded, you should ask the user which resource the contact shall
belong to and assign the selected resource to the contact with belong to and assign the selected resource to the contact with
KABC::Addressee.setResource( KABC::Resource *resource ); TDEABC::Addressee.setResource( TDEABC::Resource *resource );
before inserting it into the address book. before inserting it into the address book.
To prevent multiple access to one resource and possible resulting data loss To prevent multiple access to one resource and possible resulting data loss
we have to lock the resource before saving our changes. we have to lock the resource before saving our changes.
For this purpose KABC::AddressBook provides the function For this purpose TDEABC::AddressBook provides the function
requestSaveTicket( KABC::Resource* ) requestSaveTicket( TDEABC::Resource* )
which takes a pointer to the resource which shall be saved as argument and which takes a pointer to the resource which shall be saved as argument and
returns a so called 'Save Ticket' if locking succeeded or a null pointer returns a so called 'Save Ticket' if locking succeeded or a null pointer
if the resource is already locked by another application. if the resource is already locked by another application.
So when we retrieved a valid ticket in line 74, we try to save our changes in So when we retrieved a valid ticket in line 74, we try to save our changes in
line 78. line 78.
The KABC::AddressBook::save() function takes the save ticket as argument and The TDEABC::AddressBook::save() function takes the save ticket as argument and
returns whether saving succeeded. It also releases the save ticket when successful. returns whether saving succeeded. It also releases the save ticket when successful.
Important! Important!
@ -305,8 +305,8 @@ If the save() call fails, you have to release the save ticket manually, as is
done in line 80, otherwise possible locks, created by the resources, won't be done in line 80, otherwise possible locks, created by the resources, won't be
removed. removed.
You can see also, that manual use is quite easy for the KABC::AddressBook class You can see also, that manual use is quite easy for the TDEABC::AddressBook class
and for the ResourceFile. For more information about the API of KABC::Addressee and for the ResourceFile. For more information about the API of TDEABC::Addressee
please take a look at the official API documentation or the header files. please take a look at the official API documentation or the header files.
@ -315,7 +315,7 @@ Distribution Lists
libkabc provides so called distribution lists to group contacts. These lists libkabc provides so called distribution lists to group contacts. These lists
just store the uid of contacts, so they can be used for every kind of contact just store the uid of contacts, so they can be used for every kind of contact
grouping. There are 2 classes which handle the whole distribution list tasks, grouping. There are 2 classes which handle the whole distribution list tasks,
KABC::DistributionListManager and KABC::DistributionList. The first one keeps TDEABC::DistributionListManager and TDEABC::DistributionList. The first one keeps
track of all available distribution lists and the latter one is the track of all available distribution lists and the latter one is the
representation of one list. representation of one list.
@ -323,7 +323,7 @@ representation of one list.
#include <tdeabc/distributionlist.h> #include <tdeabc/distributionlist.h>
#include <tdeabc/stdaddressbook.h> #include <tdeabc/stdaddressbook.h>
1: KABC::DistributionListManager manager( KABC::StdAddressBook::self() ); 1: TDEABC::DistributionListManager manager( TDEABC::StdAddressBook::self() );
2: 2:
3: // load the lists 3: // load the lists
4: manager.load(); 4: manager.load();
@ -331,7 +331,7 @@ representation of one list.
6: QStringList listNames = manager.listNames(); 6: QStringList listNames = manager.listNames();
7: QStringList::Iterator it; 7: QStringList::Iterator it;
8: for ( it = listNames.begin(); it != listNames.end(); ++it ) { 8: for ( it = listNames.begin(); it != listNames.end(); ++it ) {
9: KABC::DistributionList *list = manager.list( *it ); 9: TDEABC::DistributionList *list = manager.list( *it );
10: kdDebug() << list->name() << endl; 10: kdDebug() << list->name() << endl;
11: 11:
12: QStringList emails = list->emails(); 12: QStringList emails = list->emails();
@ -340,14 +340,14 @@ representation of one list.
15: kdDebug() << QString( "\t%1" ).arg( (*eit).latin1() ) << endl; 15: kdDebug() << QString( "\t%1" ).arg( (*eit).latin1() ) << endl;
16: } 16: }
In the first line a KABC::DistributionListManager is created. The manager takes In the first line a TDEABC::DistributionListManager is created. The manager takes
a pointer to a KABC::AddressBook, because he has to resolve the stored uids to a pointer to a TDEABC::AddressBook, because he has to resolve the stored uids to
currently available email addresses. currently available email addresses.
In line 4 the manager loads all distribution lists from the central config file In line 4 the manager loads all distribution lists from the central config file
$HOME/.trinity/share/apps/tdeabc/distlists. $HOME/.trinity/share/apps/tdeabc/distlists.
The next line queries the names of all available distribution lists, which are The next line queries the names of all available distribution lists, which are
used in line 9 to retrieve a pointer to the specific list. used in line 9 to retrieve a pointer to the specific list.
Now that you have a KABC::DistributionList object, you can performe the Now that you have a TDEABC::DistributionList object, you can performe the
following actions on it: following actions on it:
- set / get the name - set / get the name
- insert an entry - insert an entry
@ -358,14 +358,14 @@ following actions on it:
In line 12 we query all email addresses of every resource and print them out. In line 12 we query all email addresses of every resource and print them out.
<tdeabc/distributionlist.h> contains also the declaration for the class <tdeabc/distributionlist.h> contains also the declaration for the class
KABC::DistributionListWatcher. This class exists only once per application and TDEABC::DistributionListWatcher. This class exists only once per application and
its only job is to emit a signal as soon as the distribution list file has its only job is to emit a signal as soon as the distribution list file has
changed. So to make your application aware of changes use the following code: changed. So to make your application aware of changes use the following code:
#include <tdeabc/distributionlist.h> #include <tdeabc/distributionlist.h>
1: connect( KABC::DistributionListWatcher::self(), SIGNAL( changed() ), 1: connect( TDEABC::DistributionListWatcher::self(), SIGNAL( changed() ),
2: this, SLOT( slotDistributionListChanged() ) ); 2: this, SLOT( slotDistributionListChanged() ) );
You see, as usual, easy ;) You see, as usual, easy ;)

@ -29,7 +29,7 @@
#include <tqfile.h> #include <tqfile.h>
using namespace KABC; using namespace TDEABC;
TQMap<TQString, TQString> *Address::mISOMap = 0; TQMap<TQString, TQString> *Address::mISOMap = 0;
static KStaticDeleter< TQMap<TQString, TQString> > isoMapDeleter; static KStaticDeleter< TQMap<TQString, TQString> > isoMapDeleter;
@ -572,7 +572,7 @@ TQString Address::ISOtoCountry( const TQString &ISOname )
return ISOname; return ISOname;
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Address &addr ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Address &addr )
{ {
return s << addr.mId << addr.mType << addr.mPostOfficeBox << return s << addr.mId << addr.mType << addr.mPostOfficeBox <<
addr.mExtended << addr.mStreet << addr.mLocality << addr.mExtended << addr.mStreet << addr.mLocality <<
@ -580,7 +580,7 @@ TQDataStream &KABC::operator<<( TQDataStream &s, const Address &addr )
addr.mLabel; addr.mLabel;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Address &addr ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Address &addr )
{ {
s >> addr.mId >> addr.mType >> addr.mPostOfficeBox >> addr.mExtended >> s >> addr.mId >> addr.mType >> addr.mPostOfficeBox >> addr.mExtended >>
addr.mStreet >> addr.mLocality >> addr.mRegion >> addr.mStreet >> addr.mLocality >> addr.mRegion >>

@ -45,7 +45,7 @@
#define KABC_FMTTAG_condwhite TQString("%w") #define KABC_FMTTAG_condwhite TQString("%w")
#define KABC_FMTTAG_purgeempty TQString("%0") #define KABC_FMTTAG_purgeempty TQString("%0")
namespace KABC { namespace TDEABC {
/** /**
@short Postal address information. @short Postal address information.

@ -35,7 +35,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "addressbook.moc" #include "addressbook.moc"
using namespace KABC; using namespace TDEABC;
struct AddressBook::AddressBookData struct AddressBook::AddressBookData
{ {
@ -685,14 +685,14 @@ bool AddressBook::addCustomField( const TQString &label, int category,
return true; return true;
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const AddressBook &ab ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const AddressBook &ab )
{ {
if (!ab.d) return s; if (!ab.d) return s;
return s;// << ab.d->mAddressees; return s;// << ab.d->mAddressees;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, AddressBook &ab ) TQDataStream &TDEABC::operator>>( TQDataStream &s, AddressBook &ab )
{ {
if (!ab.d) return s; if (!ab.d) return s;

@ -29,7 +29,7 @@
#include "addressee.h" #include "addressee.h"
#include "field.h" #include "field.h"
namespace KABC { namespace TDEABC {
class ErrorHandler; class ErrorHandler;
class Resource; class Resource;

@ -31,7 +31,7 @@
#include "addresseedialog.h" #include "addresseedialog.h"
#include "addresseedialog.moc" #include "addresseedialog.moc"
using namespace KABC; using namespace TDEABC;
AddresseeItem::AddresseeItem( TQListView *parent, const Addressee &addressee ) : AddresseeItem::AddresseeItem( TQListView *parent, const Addressee &addressee ) :
TQListViewItem( parent ), TQListViewItem( parent ),

@ -29,7 +29,7 @@
#include "addressbook.h" #include "addressbook.h"
namespace KABC { namespace TDEABC {
/** /**
@short Special ListViewItem, that is used by the AddresseeDialog. @short Special ListViewItem, that is used by the AddresseeDialog.

@ -24,7 +24,7 @@
#include "addresseehelper.h" #include "addresseehelper.h"
using namespace KABC; using namespace TDEABC;
AddresseeHelper * AddresseeHelper::s_self; AddresseeHelper * AddresseeHelper::s_self;
@ -39,11 +39,11 @@ AddresseeHelper *AddresseeHelper::self()
AddresseeHelper::AddresseeHelper() AddresseeHelper::AddresseeHelper()
: TQObject( tqApp ), : TQObject( tqApp ),
DCOPObject( "KABC::AddresseeHelper" ) DCOPObject( "TDEABC::AddresseeHelper" )
{ {
initSettings(); initSettings();
connectDCOPSignal( "kaddressbook", "KABC::AddressBookConfig", connectDCOPSignal( "kaddressbook", "TDEABC::AddressBookConfig",
"changed()", "initSettings()", false ); "changed()", "initSettings()", false );
} }

@ -31,7 +31,7 @@
static data, shared by ALL addressee objects static data, shared by ALL addressee objects
*/ */
namespace KABC { namespace TDEABC {
class KABC_EXPORT AddresseeHelper : public TQObject, public DCOPObject class KABC_EXPORT AddresseeHelper : public TQObject, public DCOPObject
{ {

@ -26,7 +26,7 @@
#include "field.h" #include "field.h"
#include "sortmode.h" #include "sortmode.h"
using namespace KABC; using namespace TDEABC;
// //
// //
@ -230,11 +230,11 @@ void AddresseeList::sortByField( Field *field )
if ( count() == 0 ) if ( count() == 0 )
return; return;
KABC::FieldSortMode *mode = new KABC::FieldSortMode( sActiveField, !mReverseSorting ); TDEABC::FieldSortMode *mode = new TDEABC::FieldSortMode( sActiveField, !mReverseSorting );
KABC::Addressee::setSortMode( mode ); TDEABC::Addressee::setSortMode( mode );
qHeapSort( *this ); qHeapSort( *this );
KABC::Addressee::setSortMode( 0 ); TDEABC::Addressee::setSortMode( 0 );
delete mode; delete mode;
} }
@ -244,9 +244,9 @@ void AddresseeList::sortByMode( SortMode *mode )
if ( count() == 0 ) if ( count() == 0 )
return; return;
KABC::Addressee::setSortMode( mode ); TDEABC::Addressee::setSortMode( mode );
qHeapSort( *this ); qHeapSort( *this );
KABC::Addressee::setSortMode( 0 ); TDEABC::Addressee::setSortMode( 0 );
} }
Field* Field*

@ -26,7 +26,7 @@
#include "addressee.h" #include "addressee.h"
namespace KABC { namespace TDEABC {
class Field; class Field;
class SortField; class SortField;
@ -178,9 +178,9 @@ class KABC_EXPORT AddresseeList : public TQValueList<Addressee>
* class MySortingTrait { * class MySortingTrait {
* public: * public:
* // eq returns true if a1 and a2 are equal * // eq returns true if a1 and a2 are equal
* static bool eq(KABC::Addressee a1, KABC::Addressee a2); * static bool eq(TDEABC::Addressee a1, TDEABC::Addressee a2);
* // lt returns true is a1 is "less than" a2 * // lt returns true is a1 is "less than" a2
* static bool lt(KABC::Addressee a1, KABC::Addressee a2); * static bool lt(TDEABC::Addressee a1, TDEABC::Addressee a2);
* }; * };
* \endcode * \endcode
* You can then pass this class to the sortByTrait method like this: * You can then pass this class to the sortByTrait method like this:

@ -53,7 +53,7 @@
//============================================================================= //=============================================================================
using namespace KABC; using namespace TDEABC;
TDECompletion * AddressLineEdit::s_completion = 0L; TDECompletion * AddressLineEdit::s_completion = 0L;
bool AddressLineEdit::s_addressesDirty = false; bool AddressLineEdit::s_addressesDirty = false;
@ -559,8 +559,8 @@ TQStringList AddressLineEdit::addresses()
TQString endQuote("\" "); TQString endQuote("\" ");
TQString addr, email; TQString addr, email;
KABC::AddressBook *addressBook = KABC::StdAddressBook::self(); TDEABC::AddressBook *addressBook = TDEABC::StdAddressBook::self();
KABC::AddressBook::Iterator it; TDEABC::AddressBook::Iterator it;
for( it = addressBook->begin(); it != addressBook->end(); ++it ) { for( it = addressBook->begin(); it != addressBook->end(); ++it ) {
TQStringList emails = (*it).emails(); TQStringList emails = (*it).emails();
@ -598,7 +598,7 @@ TQStringList AddressLineEdit::addresses()
} }
} }
KABC::DistributionListManager manager( addressBook ); TDEABC::DistributionListManager manager( addressBook );
manager.load(); manager.load();
result += manager.listNames(); result += manager.listNames();

@ -32,7 +32,7 @@
class TDEConfig; class TDEConfig;
namespace KABC { namespace TDEABC {
class LdapSearch; class LdapSearch;

@ -22,7 +22,7 @@
#include "agent.h" #include "agent.h"
using namespace KABC; using namespace TDEABC;
Agent::Agent() Agent::Agent()
: mAddressee( 0 ), mIntern( false ) : mAddressee( 0 ), mIntern( false )
@ -122,7 +122,7 @@ TQString Agent::asString() const
return mUrl; return mUrl;
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Agent &agent ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Agent &agent )
{ {
TQ_UINT32 hasAddressee = ( agent.mAddressee != 0 ); TQ_UINT32 hasAddressee = ( agent.mAddressee != 0 );
@ -133,7 +133,7 @@ TQDataStream &KABC::operator<<( TQDataStream &s, const Agent &agent )
return s; return s;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Agent &agent ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Agent &agent )
{ {
TQ_UINT32 hasAddressee; TQ_UINT32 hasAddressee;

@ -27,7 +27,7 @@ class TQDataStream;
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
class Addressee; class Addressee;

@ -28,7 +28,7 @@
#include "distributionlist.h" #include "distributionlist.h"
using namespace KABC; using namespace TDEABC;
DistributionList::DistributionList( DistributionListManager *manager, DistributionList::DistributionList( DistributionListManager *manager,
const TQString &name ) : const TQString &name ) :

@ -25,7 +25,7 @@
#include "addressbook.h" #include "addressbook.h"
namespace KABC { namespace TDEABC {
class DistributionListManager; class DistributionListManager;
@ -180,7 +180,7 @@ class KABC_EXPORT DistributionListManager
Exapmle: Exapmle:
\code \code
KABC::DistributionListWatcher *watchdog = KABC::DistributionListWatcher::self() TDEABC::DistributionListWatcher *watchdog = TDEABC::DistributionListWatcher::self()
connect( watchdog, TQT_SIGNAL( changed() ), TQT_SLOT( doSomething() ) ); connect( watchdog, TQT_SIGNAL( changed() ), TQT_SLOT( doSomething() ) );
\endcode \endcode

@ -38,7 +38,7 @@
#include "distributionlistdialog.h" #include "distributionlistdialog.h"
#include "distributionlistdialog.moc" #include "distributionlistdialog.moc"
using namespace KABC; using namespace TDEABC;
DistributionListDialog::DistributionListDialog( AddressBook *addressBook, TQWidget *parent) DistributionListDialog::DistributionListDialog( AddressBook *addressBook, TQWidget *parent)
: KDialogBase( parent, "", true, i18n("Configure Distribution Lists"), Ok, Ok, true) : KDialogBase( parent, "", true, i18n("Configure Distribution Lists"), Ok, Ok, true)

@ -29,7 +29,7 @@ class TQListView;
class TQComboBox; class TQComboBox;
class TQButtonGroup; class TQButtonGroup;
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class DistributionListEditorWidget; class DistributionListEditorWidget;
@ -46,8 +46,8 @@ class DistributionListManager;
Example: Example:
\code \code
KABC::DistributionListDialog *dlg = new TDEABC::DistributionListDialog *dlg = new
KABC::DistributionListDialog( KABC::StdAddressBook::self(), this ); TDEABC::DistributionListDialog( TDEABC::StdAddressBook::self(), this );
dlg->exec(); dlg->exec();
\endcode \endcode

@ -36,7 +36,7 @@
#include "distributionlisteditor.h" #include "distributionlisteditor.h"
#include "distributionlisteditor.moc" #include "distributionlisteditor.moc"
using namespace KABC; using namespace TDEABC;
EmailSelectDialog::EmailSelectDialog( const TQStringList &emails, const TQString &current, EmailSelectDialog::EmailSelectDialog( const TQStringList &emails, const TQString &current,
TQWidget *parent ) : TQWidget *parent ) :

@ -28,7 +28,7 @@ class TQListView;
class TQComboBox; class TQComboBox;
class TQButtonGroup; class TQButtonGroup;
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class DistributionListManager; class DistributionListManager;

@ -28,7 +28,7 @@
#include "errorhandler.h" #include "errorhandler.h"
using namespace KABC; using namespace TDEABC;
void ConsoleErrorHandler::error( const TQString &msg ) void ConsoleErrorHandler::error( const TQString &msg )
{ {

@ -28,7 +28,7 @@
class TQWidget; class TQWidget;
namespace KABC { namespace TDEABC {
/** /**
Abstract class that provides displaying of error messages. Abstract class that provides displaying of error messages.

@ -28,7 +28,7 @@
class TDEConfig; class TDEConfig;
namespace KABC { namespace TDEABC {
class KABC_EXPORT Field class KABC_EXPORT Field
{ {
@ -78,18 +78,18 @@ public:
* Addressee. Returns TQString::null, if it is not possible to convert the * Addressee. Returns TQString::null, if it is not possible to convert the
* value to a string. * value to a string.
*/ */
virtual TQString value( const KABC::Addressee & ); virtual TQString value( const TDEABC::Addressee & );
/** /**
* Sets the value of the field in the given Addressee. Returns true on success * Sets the value of the field in the given Addressee. Returns true on success
* or false, if the given string couldn't be converted to a valid value. * or false, if the given string couldn't be converted to a valid value.
*/ */
virtual bool setValue( KABC::Addressee &, const TQString & ); virtual bool setValue( TDEABC::Addressee &, const TQString & );
/** /**
* Returns a string, that can be used for sorting. * Returns a string, that can be used for sorting.
*/ */
TQString sortKey( const KABC::Addressee & ); TQString sortKey( const TDEABC::Addressee & );
/** /**
* Returns, if the field is a user-defined field. * Returns, if the field is a user-defined field.

@ -24,7 +24,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;

@ -30,7 +30,7 @@
#include "formatfactory.h" #include "formatfactory.h"
using namespace KABC; using namespace TDEABC;
FormatFactory *FormatFactory::mSelf = 0; FormatFactory *FormatFactory::mSelf = 0;
static KStaticDeleter<FormatFactory> factoryDeleter; static KStaticDeleter<FormatFactory> factoryDeleter;

@ -29,7 +29,7 @@
#include "formatplugin.h" #include "formatplugin.h"
namespace KABC { namespace TDEABC {
struct FormatInfo struct FormatInfo
{ {
@ -44,12 +44,12 @@ struct FormatInfo
* Example: * Example:
* *
* \code * \code
* KABC::FormatFactory *factory = KABC::FormatFactory::self(); * TDEABC::FormatFactory *factory = TDEABC::FormatFactory::self();
* *
* TQStringList list = factory->formats(); * TQStringList list = factory->formats();
* TQStringList::Iterator it; * TQStringList::Iterator it;
* for ( it = list.begin(); it != list.end(); ++it ) { * for ( it = list.begin(); it != list.end(); ++it ) {
* KABC::FormatPlugin *format = factory->format( (*it) ); * TDEABC::FormatPlugin *format = factory->format( (*it) );
* // do something with format * // do something with format
* } * }
* \endcode * \endcode

@ -26,7 +26,7 @@
#include "plugin.h" #include "plugin.h"
#include "resource.h" #include "resource.h"
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class Addressee; class Addressee;

@ -5,7 +5,7 @@ kde_module_LTLIBRARIES = tdeabcformat_binary.la
tdeabcformat_binary_la_SOURCES = binaryformat.cpp tdeabcformat_binary_la_SOURCES = binaryformat.cpp
tdeabcformat_binary_la_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) \ tdeabcformat_binary_la_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) \
-no-undefined -no-undefined
tdeabcformat_binary_la_LIBADD = $(LIB_KABC) $(LIB_QT) $(LIB_TDECORE) tdeabcformat_binary_la_LIBADD = $(LIB_TDEABC) $(LIB_QT) $(LIB_TDECORE)
tdeabcformat_binary_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h tdeabcformat_binary_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h
# these are the headers for your project # these are the headers for your project

@ -34,7 +34,7 @@
#define BINARY_FORMAT_VERSION 1 #define BINARY_FORMAT_VERSION 1
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -22,7 +22,7 @@
#include "formatplugin.h" #include "formatplugin.h"
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class Addressee; class Addressee;

@ -22,7 +22,7 @@
#include "geo.h" #include "geo.h"
using namespace KABC; using namespace TDEABC;
Geo::Geo() Geo::Geo()
: mLatitude( 91 ), mLongitude( 181 ), mValidLat( false ), mValidLong( false ) : mLatitude( 91 ), mLongitude( 181 ), mValidLat( false ), mValidLong( false )
@ -93,12 +93,12 @@ TQString Geo::asString() const
return "(" + TQString::number(mLatitude) + "," + TQString::number(mLongitude) + ")"; return "(" + TQString::number(mLatitude) + "," + TQString::number(mLongitude) + ")";
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Geo &geo ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Geo &geo )
{ {
return s << (float)geo.mLatitude << (float)geo.mLongitude; return s << (float)geo.mLatitude << (float)geo.mLongitude;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Geo &geo ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Geo &geo )
{ {
s >> geo.mLatitude >> geo.mLongitude; s >> geo.mLatitude >> geo.mLongitude;

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
@short Geographic position @short Geographic position

@ -23,7 +23,7 @@
#include "key.h" #include "key.h"
using namespace KABC; using namespace TDEABC;
Key::Key( const TQString &text, int type ) Key::Key( const TQString &text, int type )
: mTextData( text ), mIsBinary( false ), mType( type ) : mTextData( text ), mIsBinary( false ), mType( type )
@ -138,13 +138,13 @@ TQString Key::typeLabel( int type )
} }
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Key &key ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Key &key )
{ {
return s << key.mId << key.mIsBinary << key.mTextData << key.mBinaryData << return s << key.mId << key.mIsBinary << key.mTextData << key.mBinaryData <<
key.mCustomTypeString << key.mType; key.mCustomTypeString << key.mType;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Key &key ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Key &key )
{ {
s >> key.mId >> key.mIsBinary >> key.mTextData >> key.mBinaryData >> s >> key.mId >> key.mIsBinary >> key.mTextData >> key.mBinaryData >>
key.mCustomTypeString >> key.mType; key.mCustomTypeString >> key.mType;

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
* @short A class to store an encryption key. * @short A class to store an encryption key.

@ -39,7 +39,7 @@
#include "ldif.h" #include "ldif.h"
#include "ldapurl.h" #include "ldapurl.h"
using namespace KABC; using namespace TDEABC;
class LdapClient::LdapClientPrivate{ class LdapClient::LdapClientPrivate{
public: public:
@ -285,8 +285,8 @@ LdapSearch::LdapSearch()
attrs << "cn" << "mail" << "givenname" << "sn"; attrs << "cn" << "mail" << "givenname" << "sn";
ldapClient->setAttrs( attrs ); ldapClient->setAttrs( attrs );
connect( ldapClient, TQT_SIGNAL( result( const KABC::LdapObject& ) ), connect( ldapClient, TQT_SIGNAL( result( const TDEABC::LdapObject& ) ),
this, TQT_SLOT( slotLDAPResult( const KABC::LdapObject& ) ) ); this, TQT_SLOT( slotLDAPResult( const TDEABC::LdapObject& ) ) );
connect( ldapClient, TQT_SIGNAL( done() ), connect( ldapClient, TQT_SIGNAL( done() ),
this, TQT_SLOT( slotLDAPDone() ) ); this, TQT_SLOT( slotLDAPDone() ) );
connect( ldapClient, TQT_SIGNAL( error( const TQString& ) ), connect( ldapClient, TQT_SIGNAL( error( const TQString& ) ),
@ -338,7 +338,7 @@ void LdapSearch::cancelSearch()
mResults.clear(); mResults.clear();
} }
void LdapSearch::slotLDAPResult( const KABC::LdapObject& obj ) void LdapSearch::slotLDAPResult( const TDEABC::LdapObject& obj )
{ {
mResults.append( obj ); mResults.append( obj );
if ( !mDataTimer.isActive() ) if ( !mDataTimer.isActive() )
@ -381,7 +381,7 @@ void LdapSearch::makeSearchData( TQStringList& ret, LdapResultList& resList )
{ {
TQString search_text_upper = mSearchText.upper(); TQString search_text_upper = mSearchText.upper();
TQValueList< KABC::LdapObject >::ConstIterator it1; TQValueList< TDEABC::LdapObject >::ConstIterator it1;
for ( it1 = mResults.begin(); it1 != mResults.end(); ++it1 ) { for ( it1 = mResults.begin(); it1 != mResults.end(); ++it1 ) {
TQString name, mail, givenname, sn; TQString name, mail, givenname, sn;

@ -33,7 +33,7 @@
#include <tdeio/job.h> #include <tdeio/job.h>
namespace KABC { namespace TDEABC {
class LdapClient; class LdapClient;
typedef TQValueList<TQByteArray> LdapAttrValue; typedef TQValueList<TQByteArray> LdapAttrValue;
@ -103,7 +103,7 @@ class KABC_EXPORT LdapClient : public TQObject
/*! Emitted once for each object returned /*! Emitted once for each object returned
* from the query * from the query
*/ */
void result( const KABC::LdapObject& ); void result( const TDEABC::LdapObject& );
public slots: public slots:
/*! /*!
@ -221,11 +221,11 @@ class KABC_EXPORT LdapSearch : public TQObject
void searchData( const TQStringList& ); void searchData( const TQStringList& );
/// Another form for the results, with separate fields /// Another form for the results, with separate fields
/// (This signal can be emitted many times) /// (This signal can be emitted many times)
void searchData( const KABC::LdapResultList& ); void searchData( const TDEABC::LdapResultList& );
void searchDone(); void searchDone();
private slots: private slots:
void slotLDAPResult( const KABC::LdapObject& ); void slotLDAPResult( const TDEABC::LdapObject& );
void slotLDAPError( const TQString& ); void slotLDAPError( const TQString& );
void slotLDAPDone(); void slotLDAPDone();
void slotDataTimer(); void slotDataTimer();

@ -42,7 +42,7 @@
#include "ldapconfigwidget.h" #include "ldapconfigwidget.h"
#include "ldapconfigwidget.moc" #include "ldapconfigwidget.moc"
using namespace KABC; using namespace TDEABC;
LdapConfigWidget::LdapConfigWidget( TQWidget* parent, LdapConfigWidget::LdapConfigWidget( TQWidget* parent,
const char* name, WFlags fl ) : TQWidget( parent, name, fl ) const char* name, WFlags fl ) : TQWidget( parent, name, fl )

@ -38,7 +38,7 @@ class KComboBox;
class KLineEdit; class KLineEdit;
class KProgressDialog; class KProgressDialog;
namespace KABC { namespace TDEABC {
/** /**
@short LDAP Configuration widget @short LDAP Configuration widget
@ -252,7 +252,7 @@ namespace KABC {
* Returns a LDAP Url constructed from the settings given. * Returns a LDAP Url constructed from the settings given.
* Extensions are filled for use in the LDAP ioslave * Extensions are filled for use in the LDAP ioslave
*/ */
KABC::LDAPUrl url() const; TDEABC::LDAPUrl url() const;
private slots: private slots:
void setLDAPPort(); void setLDAPPort();

@ -24,7 +24,7 @@
#include "ldapurl.h" #include "ldapurl.h"
using namespace KABC; using namespace TDEABC;
LDAPUrl::LDAPUrl() LDAPUrl::LDAPUrl()
{ {

@ -27,7 +27,7 @@
#include <kurl.h> #include <kurl.h>
namespace KABC { namespace TDEABC {
/** /**
* LDAPUrl * LDAPUrl

@ -23,7 +23,7 @@
#include "ldif.h" #include "ldif.h"
using namespace KABC; using namespace TDEABC;
LDIF::LDIF() LDIF::LDIF()
{ {

@ -27,7 +27,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
* LDIF * LDIF

@ -49,7 +49,7 @@
#include "ldifconverter.h" #include "ldifconverter.h"
#include "vcardconverter.h" #include "vcardconverter.h"
using namespace KABC; using namespace TDEABC;
/* generate LDIF stream */ /* generate LDIF stream */

@ -26,7 +26,7 @@
#include "addressee.h" #include "addressee.h"
#include "addresseelist.h" #include "addresseelist.h"
namespace KABC { namespace TDEABC {
/** /**
* A set of functions to convert a string with LDIF information to addressees * A set of functions to convert a string with LDIF information to addressees

@ -33,7 +33,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
using namespace KABC; using namespace TDEABC;
Lock::Lock( const TQString &identifier ) Lock::Lock( const TQString &identifier )
: mIdentifier( identifier ) : mIdentifier( identifier )

@ -26,7 +26,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
This class provides locking functionality for a file, directory or an This class provides locking functionality for a file, directory or an

@ -24,7 +24,7 @@
#include <tdelocale.h> #include <tdelocale.h>
#include <kdebug.h> #include <kdebug.h>
using namespace KABC; using namespace TDEABC;
LockNull::LockNull( bool allowAccess ) LockNull::LockNull( bool allowAccess )
: Lock( TQString::null ), mAllowAccess( allowAccess ) : Lock( TQString::null ), mAllowAccess( allowAccess )

@ -25,7 +25,7 @@
#include "lock.h" #include "lock.h"
namespace KABC { namespace TDEABC {
/** /**
This class provides a lock without actually locking. It can be constructed in This class provides a lock without actually locking. It can be constructed in

@ -23,7 +23,7 @@
#include "phonenumber.h" #include "phonenumber.h"
using namespace KABC; using namespace TDEABC;
PhoneNumber::PhoneNumber() : PhoneNumber::PhoneNumber() :
mType( Home ) mType( Home )
@ -200,12 +200,12 @@ TQString PhoneNumber::typeLabel( int type )
} }
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const PhoneNumber &phone ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const PhoneNumber &phone )
{ {
return s << phone.mId << phone.mType << phone.mNumber; return s << phone.mId << phone.mType << phone.mNumber;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, PhoneNumber &phone ) TQDataStream &TDEABC::operator>>( TQDataStream &s, PhoneNumber &phone )
{ {
s >> phone.mId >> phone.mType >> phone.mNumber; s >> phone.mId >> phone.mType >> phone.mNumber;

@ -26,7 +26,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
@short Phonenumber information. @short Phonenumber information.

@ -20,7 +20,7 @@
#include "picture.h" #include "picture.h"
using namespace KABC; using namespace TDEABC;
Picture::Picture() Picture::Picture()
: mIntern( false ) : mIntern( false )
@ -106,13 +106,13 @@ TQString Picture::asString() const
return mUrl; return mUrl;
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Picture &picture ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Picture &picture )
{ {
return s << picture.mIntern << picture.mUrl << picture.mType; return s << picture.mIntern << picture.mUrl << picture.mType;
// return s << picture.mIntern << picture.mUrl << picture.mType << picture.mData; // return s << picture.mIntern << picture.mUrl << picture.mType << picture.mData;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Picture &picture ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Picture &picture )
{ {
s >> picture.mIntern >> picture.mUrl >> picture.mType; s >> picture.mIntern >> picture.mUrl >> picture.mType;
// s >> picture.mIntern >> picture.mUrl >> picture.mType >> picture.mData; // s >> picture.mIntern >> picture.mUrl >> picture.mType >> picture.mData;

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT Picture class KABC_EXPORT Picture
{ {

@ -20,7 +20,7 @@
#include "plugin.h" #include "plugin.h"
using namespace KABC; using namespace TDEABC;
Plugin::Plugin() Plugin::Plugin()
{ {

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT Plugin class KABC_EXPORT Plugin
{ {

@ -6,7 +6,7 @@ noinst_HEADERS = resourcedirconfig.h
lib_LTLIBRARIES = libtdeabc_dir.la lib_LTLIBRARIES = libtdeabc_dir.la
libtdeabc_dir_la_SOURCES = resourcedir.cpp resourcedirconfig.cpp libtdeabc_dir_la_SOURCES = resourcedir.cpp resourcedirconfig.cpp
libtdeabc_dir_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined libtdeabc_dir_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined
libtdeabc_dir_la_LIBADD = $(LIB_KABC) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDECORE) $(LIB_TDEFILE) $(LIB_TDEUI) libtdeabc_dir_la_LIBADD = $(LIB_TDEABC) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDECORE) $(LIB_TDEFILE) $(LIB_TDEUI)
libtdeabc_dir_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h libtdeabc_dir_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h
kde_module_LTLIBRARIES = tdeabc_dir.la kde_module_LTLIBRARIES = tdeabc_dir.la

@ -45,7 +45,7 @@
#include "resourcedir.h" #include "resourcedir.h"
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -30,7 +30,7 @@
class TQTimer; class TQTimer;
namespace KABC { namespace TDEABC {
class FormatPlugin; class FormatPlugin;
class Lock; class Lock;
@ -82,7 +82,7 @@ class KABC_EXPORT ResourceDir : public Resource
/** /**
Remove a addressee from its source. Remove a addressee from its source.
This method is mainly called by KABC::AddressBook. This method is mainly called by TDEABC::AddressBook.
*/ */
virtual void removeAddressee( const Addressee& addr ); virtual void removeAddressee( const Addressee& addr );

@ -32,7 +32,7 @@
#include "resourcedirconfig.h" #include "resourcedirconfig.h"
using namespace KABC; using namespace TDEABC;
ResourceDirConfig::ResourceDirConfig( TQWidget* parent, const char* name ) ResourceDirConfig::ResourceDirConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name ) : KRES::ConfigWidget( parent, name )
@ -86,7 +86,7 @@ void ResourceDirConfig::loadSettings( KRES::Resource *res )
mFileNameEdit->setURL( resource->path() ); mFileNameEdit->setURL( resource->path() );
if ( mFileNameEdit->url().isEmpty() ) if ( mFileNameEdit->url().isEmpty() )
mFileNameEdit->setURL( KABC::StdAddressBook::directoryName() ); mFileNameEdit->setURL( TDEABC::StdAddressBook::directoryName() );
} }
void ResourceDirConfig::saveSettings( KRES::Resource *res ) void ResourceDirConfig::saveSettings( KRES::Resource *res )

@ -26,7 +26,7 @@
#include <tderesources/configwidget.h> #include <tderesources/configwidget.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT ResourceDirConfig : public KRES::ConfigWidget class KABC_EXPORT ResourceDirConfig : public KRES::ConfigWidget
{ {

@ -21,7 +21,7 @@
#include "resourcedir.h" #include "resourcedir.h"
#include "resourcedirconfig.h" #include "resourcedirconfig.h"
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -12,7 +12,7 @@
#include "resourceevo.h" #include "resourceevo.h"
using namespace Evolution; using namespace Evolution;
using namespace KABC; using namespace TDEABC;
class EvolutionFactory : public KRES::PluginFactoryBase class EvolutionFactory : public KRES::PluginFactoryBase
{ {

@ -4,7 +4,7 @@ namespace Evolution {
class DBWrapper; class DBWrapper;
} }
namespace KABC { namespace TDEABC {
class ResourceEvolution : public Resource { class ResourceEvolution : public Resource {
public: public:
ResourceEvolution( const TDEConfig* config ); ResourceEvolution( const TDEConfig* config );

@ -6,7 +6,7 @@ noinst_HEADERS = resourcefileconfig.h
lib_LTLIBRARIES = libtdeabc_file.la lib_LTLIBRARIES = libtdeabc_file.la
libtdeabc_file_la_SOURCES = resourcefile.cpp resourcefileconfig.cpp libtdeabc_file_la_SOURCES = resourcefile.cpp resourcefileconfig.cpp
libtdeabc_file_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined libtdeabc_file_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined
libtdeabc_file_la_LIBADD = $(LIB_KABC) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDEFILE) $(LIB_TDECORE) $(LIB_TDEUI) libtdeabc_file_la_LIBADD = $(LIB_TDEABC) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDEFILE) $(LIB_TDECORE) $(LIB_TDEUI)
libtdeabc_file_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h libtdeabc_file_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h

@ -44,7 +44,7 @@
#include "resourcefile.h" #include "resourcefile.h"
using namespace KABC; using namespace TDEABC;
ResourceFile::ResourceFile( const TDEConfig *config ) ResourceFile::ResourceFile( const TDEConfig *config )
: Resource( config ), mFormat( 0 ), : Resource( config ), mFormat( 0 ),

@ -28,7 +28,7 @@
#include <tdeabc/resource.h> #include <tdeabc/resource.h>
namespace KABC { namespace TDEABC {
class FormatPlugin; class FormatPlugin;
class ResourceConfigWidget; class ResourceConfigWidget;
@ -122,7 +122,7 @@ class KABC_EXPORT ResourceFile : public Resource
/** /**
Remove a addressee from its source. Remove a addressee from its source.
This method is mainly called by KABC::AddressBook. This method is mainly called by TDEABC::AddressBook.
*/ */
virtual void removeAddressee( const Addressee& addr ); virtual void removeAddressee( const Addressee& addr );

@ -34,7 +34,7 @@
#include "resourcefileconfig.h" #include "resourcefileconfig.h"
using namespace KABC; using namespace TDEABC;
ResourceFileConfig::ResourceFileConfig( TQWidget* parent, const char* name ) ResourceFileConfig::ResourceFileConfig( TQWidget* parent, const char* name )
: ConfigWidget( parent, name ) : ConfigWidget( parent, name )
@ -90,7 +90,7 @@ void ResourceFileConfig::loadSettings( KRES::Resource *res )
mFileNameEdit->setURL( resource->fileName() ); mFileNameEdit->setURL( resource->fileName() );
if ( mFileNameEdit->url().isEmpty() ) if ( mFileNameEdit->url().isEmpty() )
mFileNameEdit->setURL( KABC::StdAddressBook::fileName() ); mFileNameEdit->setURL( TDEABC::StdAddressBook::fileName() );
} }
void ResourceFileConfig::saveSettings( KRES::Resource *res ) void ResourceFileConfig::saveSettings( KRES::Resource *res )

@ -26,7 +26,7 @@
#include <tderesources/configwidget.h> #include <tderesources/configwidget.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT ResourceFileConfig : public KRES::ConfigWidget class KABC_EXPORT ResourceFileConfig : public KRES::ConfigWidget
{ {

@ -21,7 +21,7 @@
#include "resourcefile.h" #include "resourcefile.h"
#include "resourcefileconfig.h" #include "resourcefileconfig.h"
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -6,7 +6,7 @@ noinst_HEADERS = resourceldaptdeioconfig.h
lib_LTLIBRARIES = libtdeabc_ldaptdeio.la lib_LTLIBRARIES = libtdeabc_ldaptdeio.la
libtdeabc_ldaptdeio_la_SOURCES = resourceldaptdeio.cpp resourceldaptdeioconfig.cpp libtdeabc_ldaptdeio_la_SOURCES = resourceldaptdeio.cpp resourceldaptdeioconfig.cpp
libtdeabc_ldaptdeio_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined libtdeabc_ldaptdeio_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -version-info 1:0:0 -no-undefined
libtdeabc_ldaptdeio_la_LIBADD = $(LIB_KABC) $(LIB_KIO) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDEUI) $(LIB_TDECORE) libtdeabc_ldaptdeio_la_LIBADD = $(LIB_TDEABC) $(LIB_KIO) $(LIB_QT) $(top_builddir)/tderesources/libtderesources.la $(LIB_TDEUI) $(LIB_TDECORE)
libtdeabc_ldaptdeio_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h libtdeabc_ldaptdeio_la_COMPILE_FIRST = $(top_builddir)/tdeabc/addressee.h
kde_module_LTLIBRARIES = tdeabc_ldaptdeio.la kde_module_LTLIBRARIES = tdeabc_ldaptdeio.la

@ -41,7 +41,7 @@
#include "resourceldaptdeio.h" #include "resourceldaptdeio.h"
#include "resourceldaptdeioconfig.h" #include "resourceldaptdeioconfig.h"
using namespace KABC; using namespace TDEABC;
// Hack from Netaccess // Hack from Netaccess
void tqt_enter_modal( TQWidget *widget ); void tqt_enter_modal( TQWidget *widget );
@ -659,7 +659,7 @@ void ResourceLDAPTDEIO::data( TDEIO::Job *, const TQByteArray &data )
} else if ( name == mAttributes[ "uid" ].lower() ) { } else if ( name == mAttributes[ "uid" ].lower() ) {
d->mAddr.setUid( TQString::fromUtf8( value, value.size() ) ); d->mAddr.setUid( TQString::fromUtf8( value, value.size() ) );
} else if ( name == mAttributes[ "jpegPhoto" ].lower() ) { } else if ( name == mAttributes[ "jpegPhoto" ].lower() ) {
KABC::Picture photo; TDEABC::Picture photo;
TQImage img( value ); TQImage img( value );
if ( !img.isNull() ) { if ( !img.isNull() ) {
photo.setData( img ); photo.setData( img );

@ -28,7 +28,7 @@
class TDEConfig; class TDEConfig;
namespace KABC { namespace TDEABC {
class KABC_EXPORT ResourceLDAPTDEIO : public Resource class KABC_EXPORT ResourceLDAPTDEIO : public Resource
{ {

@ -43,7 +43,7 @@
#include "resourceldaptdeioconfig.h" #include "resourceldaptdeioconfig.h"
#include "resourceldaptdeioconfig.moc" #include "resourceldaptdeioconfig.moc"
using namespace KABC; using namespace TDEABC;
ResourceLDAPTDEIOConfig::ResourceLDAPTDEIOConfig( TQWidget* parent, const char* name ) ResourceLDAPTDEIOConfig::ResourceLDAPTDEIOConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name ) : KRES::ConfigWidget( parent, name )

@ -40,7 +40,7 @@ class TQString;
class KComboBox; class KComboBox;
class KLineEdit; class KLineEdit;
namespace KABC { namespace TDEABC {
class KABC_EXPORT ResourceLDAPTDEIOConfig : public KRES::ConfigWidget class KABC_EXPORT ResourceLDAPTDEIOConfig : public KRES::ConfigWidget
{ {

@ -24,7 +24,7 @@
#include <tdeglobal.h> #include <tdeglobal.h>
#include <tdelocale.h> #include <tdelocale.h>
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -35,7 +35,7 @@
#include "resourcenet.h" #include "resourcenet.h"
using namespace KABC; using namespace TDEABC;
class ResourceNet::ResourceNetPrivate class ResourceNet::ResourceNetPrivate
{ {

@ -35,7 +35,7 @@ namespace TDEIO {
class Job; class Job;
} }
namespace KABC { namespace TDEABC {
class FormatPlugin; class FormatPlugin;

@ -31,7 +31,7 @@
#include "resourcenetconfig.h" #include "resourcenetconfig.h"
using namespace KABC; using namespace TDEABC;
ResourceNetConfig::ResourceNetConfig( TQWidget* parent, const char* name ) ResourceNetConfig::ResourceNetConfig( TQWidget* parent, const char* name )
: ConfigWidget( parent, name ), mInEditMode( false ) : ConfigWidget( parent, name ), mInEditMode( false )

@ -26,7 +26,7 @@
#include <tderesources/configwidget.h> #include <tderesources/configwidget.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT ResourceNetConfig : public KRES::ConfigWidget class KABC_EXPORT ResourceNetConfig : public KRES::ConfigWidget
{ {

@ -21,7 +21,7 @@
#include "resourcenet.h" #include "resourcenet.h"
#include "resourcenetconfig.h" #include "resourcenetconfig.h"
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -29,7 +29,7 @@
#include "resourcesql.h" #include "resourcesql.h"
#include "resourcesqlconfig.h" #include "resourcesqlconfig.h"
using namespace KABC; using namespace TDEABC;
extern "C" extern "C"
{ {

@ -28,7 +28,7 @@
class TQSqlDatabase; class TQSqlDatabase;
namespace KABC { namespace TDEABC {
class ResourceSql : public Resource class ResourceSql : public Resource
{ {

@ -29,7 +29,7 @@
#include "resource.h" #include "resource.h"
#include "resourcesqlconfig.h" #include "resourcesqlconfig.h"
using namespace KABC; using namespace TDEABC;
ResourceSqlConfig::ResourceSqlConfig( TQWidget* parent, const char* name ) ResourceSqlConfig::ResourceSqlConfig( TQWidget* parent, const char* name )
: ResourceConfigWidget( parent, name ) : ResourceConfigWidget( parent, name )
@ -77,7 +77,7 @@ ResourceSqlConfig::ResourceSqlConfig( TQWidget* parent, const char* name )
void ResourceSqlConfig::loadSettings( TDEConfig *config ) void ResourceSqlConfig::loadSettings( TDEConfig *config )
{ {
mUser->setText( config->readEntry( "SqlUser" ) ); mUser->setText( config->readEntry( "SqlUser" ) );
mPassword->setText( KABC::Resource::cryptStr( config->readEntry( "SqlPassword" ) ) ); mPassword->setText( TDEABC::Resource::cryptStr( config->readEntry( "SqlPassword" ) ) );
mDbName->setText( config->readEntry( "SqlName" ) ); mDbName->setText( config->readEntry( "SqlName" ) );
mHost->setText( config->readEntry( "SqlHost" ) ); mHost->setText( config->readEntry( "SqlHost" ) );
mPort->setValue( config->readNumEntry( "SqlPort" ) ); mPort->setValue( config->readNumEntry( "SqlPort" ) );
@ -86,7 +86,7 @@ void ResourceSqlConfig::loadSettings( TDEConfig *config )
void ResourceSqlConfig::saveSettings( TDEConfig *config ) void ResourceSqlConfig::saveSettings( TDEConfig *config )
{ {
config->writeEntry( "SqlUser", mUser->text() ); config->writeEntry( "SqlUser", mUser->text() );
config->writeEntry( "SqlPassword", KABC::Resource::cryptStr( mPassword->text() ) ); config->writeEntry( "SqlPassword", TDEABC::Resource::cryptStr( mPassword->text() ) );
config->writeEntry( "SqlName", mDbName->text() ); config->writeEntry( "SqlName", mDbName->text() );
config->writeEntry( "SqlHost", mHost->text() ); config->writeEntry( "SqlHost", mHost->text() );
config->writeEntry( "SqlPort", mPort->value() ); config->writeEntry( "SqlPort", mPort->value() );

@ -26,7 +26,7 @@
class KLineEdit; class KLineEdit;
class TQSpinBox; class TQSpinBox;
namespace KABC { namespace TDEABC {
class ResourceSqlConfig : public ResourceConfigWidget class ResourceSqlConfig : public ResourceConfigWidget
{ {

@ -23,7 +23,7 @@
#include "resource.h" #include "resource.h"
using namespace KABC; using namespace TDEABC;
Ticket::Ticket( Resource *resource ) Ticket::Ticket( Resource *resource )
: mResource( resource ) : mResource( resource )

@ -26,7 +26,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "plugin.h" #include "plugin.h"
namespace KABC { namespace TDEABC {
/** /**
* @short Helper class for handling coordinated save of address books. * @short Helper class for handling coordinated save of address books.

@ -31,7 +31,7 @@
#include "resourceselectdialog.h" #include "resourceselectdialog.h"
using namespace KABC; using namespace TDEABC;
ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, TQWidget *parent, const char *name ) ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, TQWidget *parent, const char *name )
: KDialog( parent, name, true ) : KDialog( parent, name, true )

@ -28,7 +28,7 @@
class TDEListBox; class TDEListBox;
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class Resource; class Resource;

@ -34,7 +34,7 @@
#include "addressee.h" #include "addressee.h"
using namespace KABC; using namespace TDEABC;
static bool matchBinaryPattern( int value, int pattern ); static bool matchBinaryPattern( int value, int pattern );
@ -42,7 +42,7 @@ template <class L>
static bool listEquals( const TQValueList<L>&, const TQValueList<L>& ); static bool listEquals( const TQValueList<L>&, const TQValueList<L>& );
static bool emailsEquals( const TQStringList&, const TQStringList& ); static bool emailsEquals( const TQStringList&, const TQStringList& );
KABC::SortMode *Addressee::mSortMode = 0; TDEABC::SortMode *Addressee::mSortMode = 0;
struct Addressee::AddresseeData : public TDEShared struct Addressee::AddresseeData : public TDEShared
{ {
@ -1032,7 +1032,7 @@ bool Addressee::changed() const
return mData->changed; return mData->changed;
} }
void Addressee::setSortMode( KABC::SortMode *mode ) void Addressee::setSortMode( TDEABC::SortMode *mode )
{ {
mSortMode = mode; mSortMode = mode;
} }
@ -1045,7 +1045,7 @@ bool Addressee::operator< ( const Addressee &addr )
return mSortMode->lesser( *this, addr ); return mSortMode->lesser( *this, addr );
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Addressee &a ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Addressee &a )
{ {
if (!a.mData) return s; if (!a.mData) return s;
@ -1061,7 +1061,7 @@ TQDataStream &KABC::operator<<( TQDataStream &s, const Addressee &a )
return s; return s;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Addressee &a ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Addressee &a )
{ {
if (!a.mData) if (!a.mData)
return s; return s;

@ -39,7 +39,7 @@
#include "sound.h" #include "sound.h"
#include "timezone.h" #include "timezone.h"
namespace KABC { namespace TDEABC {
class Resource; class Resource;
class Field; class Field;
@ -383,7 +383,7 @@ class KABC_EXPORT Addressee
*/ */
bool changed() const; bool changed() const;
static void setSortMode( KABC::SortMode *mode ); static void setSortMode( TDEABC::SortMode *mode );
bool operator< ( const Addressee &addr ); bool operator< ( const Addressee &addr );
@ -396,7 +396,7 @@ class KABC_EXPORT Addressee
private: private:
static AddresseeData* shared_null; static AddresseeData* shared_null;
static AddresseeData* makeSharedNull(); static AddresseeData* makeSharedNull();
static KABC::SortMode *mSortMode; static TDEABC::SortMode *mSortMode;
}; };
KABC_EXPORT TQDataStream &operator<<( TQDataStream &, const Addressee & ); KABC_EXPORT TQDataStream &operator<<( TQDataStream &, const Addressee & );

@ -25,7 +25,7 @@
#include "field.h" #include "field.h"
#include "address.h" #include "address.h"
using namespace KABC; using namespace TDEABC;
class Field::FieldImpl class Field::FieldImpl
{ {
@ -113,7 +113,7 @@ TQString Field::categoryLabel( int category )
} }
} }
TQString Field::value( const KABC::Addressee &a ) TQString Field::value( const TDEABC::Addressee &a )
{ {
switch ( mImpl->fieldId() ) { switch ( mImpl->fieldId() ) {
--CASEVALUE-- --CASEVALUE--
@ -213,7 +213,7 @@ TQString Field::value( const KABC::Addressee &a )
} }
} }
bool Field::setValue( KABC::Addressee &a, const TQString &value ) bool Field::setValue( TDEABC::Addressee &a, const TQString &value )
{ {
switch ( mImpl->fieldId() ) { switch ( mImpl->fieldId() ) {
--CASESETVALUE-- --CASESETVALUE--
@ -261,84 +261,84 @@ bool Field::setValue( KABC::Addressee &a, const TQString &value )
} }
case FieldImpl::HomeAddressStreet: case FieldImpl::HomeAddressStreet:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setStreet( value ); address.setStreet( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::HomeAddressLocality: case FieldImpl::HomeAddressLocality:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setLocality( value ); address.setLocality( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::HomeAddressRegion: case FieldImpl::HomeAddressRegion:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setRegion( value ); address.setRegion( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::HomeAddressPostalCode: case FieldImpl::HomeAddressPostalCode:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setPostalCode( value ); address.setPostalCode( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::HomeAddressCountry: case FieldImpl::HomeAddressCountry:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setCountry( value ); address.setCountry( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::HomeAddressLabel: case FieldImpl::HomeAddressLabel:
{ {
KABC::Address address = a.address( Address::Home ); TDEABC::Address address = a.address( Address::Home );
address.setLabel( value ); address.setLabel( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressStreet: case FieldImpl::BusinessAddressStreet:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setStreet( value ); address.setStreet( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressLocality: case FieldImpl::BusinessAddressLocality:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setLocality( value ); address.setLocality( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressRegion: case FieldImpl::BusinessAddressRegion:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setRegion( value ); address.setRegion( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressPostalCode: case FieldImpl::BusinessAddressPostalCode:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setPostalCode( value ); address.setPostalCode( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressCountry: case FieldImpl::BusinessAddressCountry:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setCountry( value ); address.setCountry( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
} }
case FieldImpl::BusinessAddressLabel: case FieldImpl::BusinessAddressLabel:
{ {
KABC::Address address = a.address( Address::Work ); TDEABC::Address address = a.address( Address::Work );
address.setLabel( value ); address.setLabel( value );
a.insertAddress( address ); a.insertAddress( address );
return true; return true;
@ -354,7 +354,7 @@ bool Field::setValue( KABC::Addressee &a, const TQString &value )
} }
} }
TQString Field::sortKey( const KABC::Addressee &a ) TQString Field::sortKey( const TDEABC::Addressee &a )
{ {
switch ( mImpl->fieldId() ) { switch ( mImpl->fieldId() ) {
--CASEVALUE-- --CASEVALUE--

@ -22,7 +22,7 @@
#include "secrecy.h" #include "secrecy.h"
using namespace KABC; using namespace TDEABC;
Secrecy::Secrecy( int type ) Secrecy::Secrecy( int type )
: mType( type ) : mType( type )
@ -87,12 +87,12 @@ TQString Secrecy::asString() const
return typeLabel( mType ); return typeLabel( mType );
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Secrecy &secrecy ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Secrecy &secrecy )
{ {
return s << secrecy.mType; return s << secrecy.mType;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Secrecy &secrecy ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Secrecy &secrecy )
{ {
s >> secrecy.mType; s >> secrecy.mType;

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
class KABC_EXPORT Secrecy class KABC_EXPORT Secrecy
{ {

@ -22,7 +22,7 @@
#include "sortmode.h" #include "sortmode.h"
using namespace KABC; using namespace TDEABC;
NameSortMode::NameSortMode() NameSortMode::NameSortMode()
: mNameType( FormattedName ), mAscendingOrder( true ), d( 0 ) : mNameType( FormattedName ), mAscendingOrder( true ), d( 0 )
@ -35,7 +35,7 @@ NameSortMode::NameSortMode( NameType type, bool ascending )
{ {
} }
bool NameSortMode::lesser( const KABC::Addressee &first, const KABC::Addressee &second ) const bool NameSortMode::lesser( const TDEABC::Addressee &first, const TDEABC::Addressee &second ) const
{ {
bool lesser = false; bool lesser = false;
@ -60,12 +60,12 @@ bool NameSortMode::lesser( const KABC::Addressee &first, const KABC::Addressee &
return lesser; return lesser;
} }
FieldSortMode::FieldSortMode( KABC::Field *field, bool ascending ) FieldSortMode::FieldSortMode( TDEABC::Field *field, bool ascending )
: mField( field ), mAscendingOrder( ascending ), d( 0 ) : mField( field ), mAscendingOrder( ascending ), d( 0 )
{ {
} }
bool FieldSortMode::lesser( const KABC::Addressee &first, const KABC::Addressee &second ) const bool FieldSortMode::lesser( const TDEABC::Addressee &first, const TDEABC::Addressee &second ) const
{ {
if ( !mField ) if ( !mField )
return false; return false;

@ -25,13 +25,13 @@
#include <tdeabc/addressee.h> #include <tdeabc/addressee.h>
namespace KABC { namespace TDEABC {
/** /**
@short Sort method for sorting an addressee list. @short Sort method for sorting an addressee list.
This interface should be reimplemented by classes which shall act as This interface should be reimplemented by classes which shall act as
SortModes for KABC::AddresseeList. SortModes for TDEABC::AddresseeList.
*/ */
class KABC_EXPORT SortMode class KABC_EXPORT SortMode
{ {
@ -40,7 +40,7 @@ class KABC_EXPORT SortMode
Reimplement this method and return whether the first contact is 'smaller' Reimplement this method and return whether the first contact is 'smaller'
than the second. than the second.
*/ */
virtual bool lesser( const KABC::Addressee &first, const KABC::Addressee &second ) const = 0; virtual bool lesser( const TDEABC::Addressee &first, const TDEABC::Addressee &second ) const = 0;
}; };
class KABC_EXPORT NameSortMode : public SortMode class KABC_EXPORT NameSortMode : public SortMode
@ -73,7 +73,7 @@ class KABC_EXPORT NameSortMode : public SortMode
/** /**
Returns whether the first contact is 'smaller' then the second. Returns whether the first contact is 'smaller' then the second.
*/ */
virtual bool lesser( const KABC::Addressee&, const KABC::Addressee& ) const; virtual bool lesser( const TDEABC::Addressee&, const TDEABC::Addressee& ) const;
private: private:
NameType mNameType; NameType mNameType;
@ -94,15 +94,15 @@ class KABC_EXPORT FieldSortMode : public SortMode
@param field The field. @param field The field.
@param ascending true for ascending sort, false for descending. @param ascending true for ascending sort, false for descending.
*/ */
FieldSortMode( KABC::Field *field, bool ascending = true ); FieldSortMode( TDEABC::Field *field, bool ascending = true );
/** /**
Returns whether the first contact is 'smaller' then the second. Returns whether the first contact is 'smaller' then the second.
*/ */
virtual bool lesser( const KABC::Addressee&, const KABC::Addressee& ) const; virtual bool lesser( const TDEABC::Addressee&, const TDEABC::Addressee& ) const;
private: private:
KABC::Field *mField; TDEABC::Field *mField;
bool mAscendingOrder; bool mAscendingOrder;
class FieldSortModePrivate; class FieldSortModePrivate;

@ -22,7 +22,7 @@
#include <tqdatastream.h> #include <tqdatastream.h>
using namespace KABC; using namespace TDEABC;
Sound::Sound() Sound::Sound()
: mIntern( false ) : mIntern( false )
@ -104,13 +104,13 @@ TQString Sound::asString() const
return mUrl; return mUrl;
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const Sound &sound ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const Sound &sound )
{ {
return s << sound.mIntern << sound.mUrl; return s << sound.mIntern << sound.mUrl;
// return s << sound.mIntern << sound.mUrl << sound.mData; // return s << sound.mIntern << sound.mUrl << sound.mData;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, Sound &sound ) TQDataStream &TDEABC::operator>>( TQDataStream &s, Sound &sound )
{ {
s >> sound.mIntern >> sound.mUrl; s >> sound.mIntern >> sound.mUrl;
// s >> sound.mIntern >> sound.mUrl >> sound.mData; // s >> sound.mIntern >> sound.mUrl >> sound.mData;

@ -26,7 +26,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** @short Class that holds a Sound clip for a contact. /** @short Class that holds a Sound clip for a contact.
* *

@ -33,7 +33,7 @@
#include "stdaddressbook.h" #include "stdaddressbook.h"
using namespace KABC; using namespace TDEABC;
StdAddressBook *StdAddressBook::mSelf = 0; StdAddressBook *StdAddressBook::mSelf = 0;
bool StdAddressBook::mAutomaticSave = true; bool StdAddressBook::mAutomaticSave = true;

@ -23,7 +23,7 @@
#include "addressbook.h" #include "addressbook.h"
namespace KABC { namespace TDEABC {
/** /**
Standard KDE address book Standard KDE address book
@ -37,19 +37,19 @@ namespace KABC {
Example: Example:
\code \code
KABC::AddressBook *ab = KABC::StdAddressBook::self(); TDEABC::AddressBook *ab = TDEABC::StdAddressBook::self();
AddressBook::Ticket *ticket = ab->requestSaveTicket(); AddressBook::Ticket *ticket = ab->requestSaveTicket();
if ( ticket ) { if ( ticket ) {
KABC::AddressBook::Iterator it; TDEABC::AddressBook::Iterator it;
for ( it = ab->begin(); it != ab->end(); ++it ) { for ( it = ab->begin(); it != ab->end(); ++it ) {
kdDebug() << "UID=" << (*it).uid() << endl; kdDebug() << "UID=" << (*it).uid() << endl;
// do some other stuff // do some other stuff
} }
KABC::StdAddressBook::save( ticket ); TDEABC::StdAddressBook::save( ticket );
} }
\endcode \endcode
*/ */

@ -35,7 +35,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "stdaddressbook.h" #include "stdaddressbook.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {
@ -46,7 +46,7 @@ static const TDECmdLineOptions options[] =
TDECmdLineLastOption TDECmdLineLastOption
}; };
void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab ) void readKMailEntry( const TQString &kmailEntry, TDEABC::AddressBook *ab )
{ {
kdDebug() << "KMAILENTRY: " << kmailEntry << endl; kdDebug() << "KMAILENTRY: " << kmailEntry << endl;
@ -105,9 +105,9 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
kdDebug() << " NAME : " << name << endl; kdDebug() << " NAME : " << name << endl;
kdDebug() << " COMMENT : " << comment << endl; kdDebug() << " COMMENT : " << comment << endl;
KABC::Addressee::List al = ab->findByEmail( email ); TDEABC::Addressee::List al = ab->findByEmail( email );
if ( al.isEmpty() ) { if ( al.isEmpty() ) {
KABC::Addressee a; TDEABC::Addressee a;
a.setNameFromString( name ); a.setNameFromString( name );
a.insertEmail( email ); a.insertEmail( email );
a.setNote( comment ); a.setNote( comment );
@ -118,7 +118,7 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
} }
} }
void importKMailAddressBook( KABC::AddressBook *ab ) void importKMailAddressBook( TDEABC::AddressBook *ab )
{ {
TQString fileName = locateLocal( "data", "kmail/addressbook" ); TQString fileName = locateLocal( "data", "kmail/addressbook" );
TQString kmailConfigName = locate( "config", "kmailrc" ); TQString kmailConfigName = locate( "config", "kmailrc" );
@ -278,7 +278,7 @@ void readKAddressBookEntries( const TQString &dataString, Addressee &a )
if ( !otherAddress.isEmpty() ) a.insertAddress( otherAddress ); if ( !otherAddress.isEmpty() ) a.insertAddress( otherAddress );
} }
void importKab( KABC::AddressBook *ab, bool override, bool quiet ) void importKab( TDEABC::AddressBook *ab, bool override, bool quiet )
{ {
TQString fileName = TDEGlobal::dirs()->saveLocation( "data", "kab/" ); TQString fileName = TDEGlobal::dirs()->saveLocation( "data", "kab/" );
fileName += "addressbook.kab"; fileName += "addressbook.kab";
@ -463,7 +463,7 @@ int main( int argc, char **argv )
config->writeEntry( "EnableAutostart", false ); config->writeEntry( "EnableAutostart", false );
} }
KABC::AddressBook *kabcBook = StdAddressBook::self(); TDEABC::AddressBook *kabcBook = StdAddressBook::self();
importKMailAddressBook( kabcBook ); importKMailAddressBook( kabcBook );

@ -13,7 +13,7 @@
#include "resourcesql.h" #include "resourcesql.h"
#endif #endif
using namespace KABC; using namespace TDEABC;
int main(int argc,char **argv) int main(int argc,char **argv)
{ {

@ -10,7 +10,7 @@
#include "vcardformat.h" #include "vcardformat.h"
#include "plugins/file/resourcefile.h" #include "plugins/file/resourcefile.h"
using namespace KABC; using namespace TDEABC;
int main(int argc,char **argv) int main(int argc,char **argv)
{ {

@ -31,7 +31,7 @@
#include "stdaddressbook.h" #include "stdaddressbook.h"
using namespace KABC; using namespace TDEABC;
int main(int argc,char **argv) int main(int argc,char **argv)
{ {

@ -11,7 +11,7 @@
#include "vcardformat.h" #include "vcardformat.h"
#include "phonenumber.h" #include "phonenumber.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {

@ -8,7 +8,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "addresseelist.h" #include "addresseelist.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {

@ -8,7 +8,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "address.h" #include "address.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {

@ -6,7 +6,7 @@
#include "addresslineedit.h" #include "addresslineedit.h"
using namespace KABC; using namespace TDEABC;
int main( int argc,char **argv ) int main( int argc,char **argv )
{ {

@ -8,7 +8,7 @@
#include "vcardformat.h" #include "vcardformat.h"
#include "resourcesql.h" #include "resourcesql.h"
using namespace KABC; using namespace TDEABC;
int main(int argc,char **argv) int main(int argc,char **argv)
{ {

@ -11,7 +11,7 @@
#include "distributionlisteditor.h" #include "distributionlisteditor.h"
#include "distributionlist.h" #include "distributionlist.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {

@ -16,7 +16,7 @@
#include "agent.h" #include "agent.h"
#include "vcardconverter.h" #include "vcardconverter.h"
using namespace KABC; using namespace TDEABC;
int main(int argc,char **argv) int main(int argc,char **argv)
{ {

@ -8,7 +8,7 @@
#include "addresseedialog.h" #include "addresseedialog.h"
using namespace KABC; using namespace TDEABC;
static const TDECmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {

@ -97,8 +97,8 @@ void TestLDAPClient::testIntevation()
// But this certainly looks fishy, it might break on non-utf8 systems. // But this certainly looks fishy, it might break on non-utf8 systems.
TQString filter = "&(|(objectclass=person)(objectclass=groupofnames)(mail=*))(|(cn=*Ägypten MDK*)(sn=*Ägypten MDK*))"; TQString filter = "&(|(objectclass=person)(objectclass=groupofnames)(mail=*))(|(cn=*Ägypten MDK*)(sn=*Ägypten MDK*))";
connect( mClient, TQT_SIGNAL( result( const KABC::LdapObject& ) ), connect( mClient, TQT_SIGNAL( result( const TDEABC::LdapObject& ) ),
this, TQT_SLOT( slotLDAPResult( const KABC::LdapObject& ) ) ); this, TQT_SLOT( slotLDAPResult( const TDEABC::LdapObject& ) ) );
connect( mClient, TQT_SIGNAL( done() ), connect( mClient, TQT_SIGNAL( done() ),
this, TQT_SLOT( slotLDAPDone() ) ); this, TQT_SLOT( slotLDAPDone() ) );
connect( mClient, TQT_SIGNAL( error( const TQString& ) ), connect( mClient, TQT_SIGNAL( error( const TQString& ) ),
@ -123,11 +123,11 @@ static TQString asUtf8( const TQByteArray &val )
return TQString::fromUtf8( data, val.size() ); return TQString::fromUtf8( data, val.size() );
} }
static TQString join( const KABC::LdapAttrValue& lst, const TQString& sep ) static TQString join( const TDEABC::LdapAttrValue& lst, const TQString& sep )
{ {
TQString res; TQString res;
bool already = false; bool already = false;
for ( KABC::LdapAttrValue::ConstIterator it = lst.begin(); it != lst.end(); ++it ) { for ( TDEABC::LdapAttrValue::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
if ( already ) if ( already )
res += sep; res += sep;
already = TRUE; already = TRUE;
@ -136,7 +136,7 @@ static TQString join( const KABC::LdapAttrValue& lst, const TQString& sep )
return res; return res;
} }
void TestLDAPClient::slotLDAPResult( const KABC::LdapObject& obj ) void TestLDAPClient::slotLDAPResult( const TDEABC::LdapObject& obj )
{ {
TQString cn = join( obj.attrs[ "cn" ], ", " ); TQString cn = join( obj.attrs[ "cn" ], ", " );
kdDebug() << " cn:" << cn << endl; kdDebug() << " cn:" << cn << endl;

@ -22,7 +22,7 @@
#include <tqobject.h> #include <tqobject.h>
#include "../ldapclient.h" #include "../ldapclient.h"
typedef KABC::LdapClient LdapClient; typedef TDEABC::LdapClient LdapClient;
class TestLDAPClient : public TQObject class TestLDAPClient : public TQObject
{ {
@ -38,7 +38,7 @@ public:
void testIntevation(); void testIntevation();
private slots: private slots:
void slotLDAPResult( const KABC::LdapObject& ); void slotLDAPResult( const TDEABC::LdapObject& );
void slotLDAPError( const TQString& ); void slotLDAPError( const TQString& );
void slotLDAPDone(); void slotLDAPDone();

@ -45,7 +45,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
using namespace KABC; using namespace TDEABC;
LockWidget::LockWidget( const TQString &identifier ) LockWidget::LockWidget( const TQString &identifier )
{ {

@ -42,7 +42,7 @@ class KABC_EXPORT LockWidget : public TQWidget
void updateLockView(); void updateLockView();
private: private:
KABC::Lock *mLock; TDEABC::Lock *mLock;
TQLabel *mStatus; TQLabel *mStatus;
TQListView *mLockView; TQListView *mLockView;

@ -22,7 +22,7 @@
#include "timezone.h" #include "timezone.h"
using namespace KABC; using namespace TDEABC;
TimeZone::TimeZone() : TimeZone::TimeZone() :
mOffset( 0 ), mValid( false ) mOffset( 0 ), mValid( false )
@ -71,12 +71,12 @@ TQString TimeZone::asString() const
return TQString::number( mOffset ); return TQString::number( mOffset );
} }
TQDataStream &KABC::operator<<( TQDataStream &s, const TimeZone &zone ) TQDataStream &TDEABC::operator<<( TQDataStream &s, const TimeZone &zone )
{ {
return s << zone.mOffset; return s << zone.mOffset;
} }
TQDataStream &KABC::operator>>( TQDataStream &s, TimeZone &zone ) TQDataStream &TDEABC::operator>>( TQDataStream &s, TimeZone &zone )
{ {
s >> zone.mOffset; s >> zone.mOffset;
zone.mValid = true; zone.mValid = true;

@ -25,7 +25,7 @@
#include <tdelibs_export.h> #include <tdelibs_export.h>
namespace KABC { namespace TDEABC {
/** /**
* @short Time zone information. * @short Time zone information.

@ -25,7 +25,7 @@
#include "vcard21parser.h" #include "vcard21parser.h"
#include "vcardconverter.h" #include "vcardconverter.h"
using namespace KABC; using namespace TDEABC;
bool VCardLineX::isValid() const bool VCardLineX::isValid() const
{ {
@ -199,15 +199,15 @@ VCard21Parser::~VCard21Parser()
{ {
} }
void VCard21Parser::readFromString(KABC::AddressBook *addressbook, const TQString &data) void VCard21Parser::readFromString(TDEABC::AddressBook *addressbook, const TQString &data)
{ {
KABC::Addressee mAddressee = readFromString(data); TDEABC::Addressee mAddressee = readFromString(data);
addressbook->insertAddressee(mAddressee); addressbook->insertAddressee(mAddressee);
} }
KABC::Addressee VCard21Parser::readFromString( const TQString &data) TDEABC::Addressee VCard21Parser::readFromString( const TQString &data)
{ {
KABC::Addressee addressee; TDEABC::Addressee addressee;
VCard21ParserImpl *vCard = VCard21ParserImpl::parseVCard(data); VCard21ParserImpl *vCard = VCard21ParserImpl::parseVCard(data);
TQString tmpStr; TQString tmpStr;
@ -369,9 +369,9 @@ KABC::Addressee VCard21Parser::readFromString( const TQString &data)
KABC::Address VCard21Parser::readAddressFromQStringList ( const TQStringList &data, const int type ) TDEABC::Address VCard21Parser::readAddressFromQStringList ( const TQStringList &data, const int type )
{ {
KABC::Address mAddress; TDEABC::Address mAddress;
mAddress.setType( type ); mAddress.setType( type );
if ( data.count() > 0 ) if ( data.count() > 0 )

@ -132,7 +132,7 @@
#define VC_ERR_INVALID_NAME 5 #define VC_ERR_INVALID_NAME 5
#define VC_ERR_MISSING_MANDATORY 6 #define VC_ERR_MISSING_MANDATORY 6
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
@ -160,17 +160,17 @@ public:
* @param ab The address book. * @param ab The address book.
* @param str The vcard string. * @param str The vcard string.
*/ */
void readFromString( KABC::AddressBook *ab, const TQString &str ); void readFromString( TDEABC::AddressBook *ab, const TQString &str );
/** /**
* FIXME: we need a writeToString method * FIXME: we need a writeToString method
* TQString writeToString (KABC::AddressBook *); * TQString writeToString (TDEABC::AddressBook *);
*/ */
/** /**
* Parses a string in vcard2.1 format and returns the inherent addressee. * Parses a string in vcard2.1 format and returns the inherent addressee.
*/ */
KABC::Addressee readFromString( const TQString &data); TDEABC::Addressee readFromString( const TQString &data);
/** /**
* Helper method to store a address. * Helper method to store a address.
@ -178,7 +178,7 @@ public:
* @param data A string list, that is filled with 'street', 'house number' ... * @param data A string list, that is filled with 'street', 'house number' ...
* @param type The type of the returned address. * @param type The type of the returned address.
*/ */
static KABC::Address readAddressFromQStringList (const TQStringList &data, const int type); static TDEABC::Address readAddressFromQStringList (const TQStringList &data, const int type);
}; };
} }

@ -24,7 +24,7 @@
#include "vcardconverter.h" #include "vcardconverter.h"
using namespace KABC; using namespace TDEABC;
struct VCardConverter::VCardConverterData struct VCardConverter::VCardConverterData
{ {
@ -101,17 +101,17 @@ bool VCardConverter::addresseeToVCard( const Addressee &addr, TQString &str, Ver
/* Helper functions */ /* Helper functions */
TQString KABC::dateToVCardString( const TQDateTime &dateTime ) TQString TDEABC::dateToVCardString( const TQDateTime &dateTime )
{ {
return dateTime.toString("yyyyMMddThhmmssZ"); return dateTime.toString("yyyyMMddThhmmssZ");
} }
TQString KABC::dateToVCardString( const TQDate &date ) TQString TDEABC::dateToVCardString( const TQDate &date )
{ {
return date.toString("yyyyMMdd"); return date.toString("yyyyMMdd");
} }
TQDateTime KABC::VCardStringToDate( const TQString &dateString ) TQDateTime TDEABC::VCardStringToDate( const TQString &dateString )
{ {
TQDate date; TQDate date;
TQTime time; TQTime time;

@ -25,7 +25,7 @@
#include "addressee.h" #include "addressee.h"
namespace KABC { namespace TDEABC {
/** /**
@short Class to converting contact objects into vCard format and vice versa. @short Class to converting contact objects into vCard format and vice versa.

@ -22,7 +22,7 @@
#include "vcardformat.h" #include "vcardformat.h"
using namespace KABC; using namespace TDEABC;
VCardFormat::VCardFormat() VCardFormat::VCardFormat()
{ {

@ -24,7 +24,7 @@
#include "format.h" #include "format.h"
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class VCardFormatImpl; class VCardFormatImpl;

@ -30,7 +30,7 @@
#include "addressbook.h" #include "addressbook.h"
#include "vcardformatimpl.h" #include "vcardformatimpl.h"
using namespace KABC; using namespace TDEABC;
using namespace VCARD; using namespace VCARD;
bool VCardFormatImpl::load( Addressee &addressee, TQFile *file ) bool VCardFormatImpl::load( Addressee &addressee, TQFile *file )

@ -33,7 +33,7 @@
#include <VCard.h> #include <VCard.h>
#endif #endif
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;

@ -26,7 +26,7 @@
#include "vcardformatplugin.h" #include "vcardformatplugin.h"
using namespace KABC; using namespace TDEABC;
VCardFormatPlugin::VCardFormatPlugin() VCardFormatPlugin::VCardFormatPlugin()
{ {

@ -23,7 +23,7 @@
#include "formatplugin.h" #include "formatplugin.h"
namespace KABC { namespace TDEABC {
class AddressBook; class AddressBook;
class Addressee; class Addressee;

@ -74,11 +74,11 @@ int main( int argc, char **argv )
text = s.read(); text = s.read();
file.close(); file.close();
KABC::VCardConverter converter; TDEABC::VCardConverter converter;
KABC::Addressee::List list = converter.parseVCards( text ); TDEABC::Addressee::List list = converter.parseVCards( text );
if ( args->isSet( "vcard21" ) ) { if ( args->isSet( "vcard21" ) ) {
text = converter.createVCards( list, KABC::VCardConverter::v2_1 ); // uses version 2.1 text = converter.createVCards( list, TDEABC::VCardConverter::v2_1 ); // uses version 2.1
} else { } else {
text = converter.createVCards( list ); // uses version 3.0 text = converter.createVCards( list ); // uses version 3.0
} }

@ -3,7 +3,7 @@
#include <vcardconverter.h> #include <vcardconverter.h>
#include <kdebug.h> #include <kdebug.h>
using namespace KABC; using namespace TDEABC;
int int
main() main()

@ -2,7 +2,7 @@
#include <tdeabc/addressee.h> #include <tdeabc/addressee.h>
#include <tqfile.h> #include <tqfile.h>
using namespace KABC; using namespace TDEABC;
Addressee Addressee
vcard1() vcard1()

@ -4,10 +4,10 @@
#include <tdeabc/addressee.h> #include <tdeabc/addressee.h>
#include <tqstring.h> #include <tqstring.h>
KABC::Addressee vcard1(); TDEABC::Addressee vcard1();
KABC::Addressee vcard2(); TDEABC::Addressee vcard2();
KABC::Addressee vcard3(); TDEABC::Addressee vcard3();
KABC::Addressee::List vCardsAsAddresseeList(); TDEABC::Addressee::List vCardsAsAddresseeList();
TQString vCardAsText( const TQString& location ); TQString vCardAsText( const TQString& location );
TQString vCardsAsText(); TQString vCardsAsText();

@ -42,15 +42,15 @@ int main( int argc, char **argv )
TDEApplication app( false, false ); TDEApplication app( false, false );
KABC::Addressee addressee; TDEABC::Addressee addressee;
addressee.setNameFromString( "Mr. Tobias Koenig Jr." ); addressee.setNameFromString( "Mr. Tobias Koenig Jr." );
addressee.setNickName( "tokoe" ); addressee.setNickName( "tokoe" );
addressee.setBirthday( TQDate( 1982, 7, 19 ) ); addressee.setBirthday( TQDate( 1982, 7, 19 ) );
addressee.setMailer( "mutt1.2" ); addressee.setMailer( "mutt1.2" );
addressee.setTimeZone( KABC::TimeZone( +2 ) ); addressee.setTimeZone( TDEABC::TimeZone( +2 ) );
KABC::Geo geo; TDEABC::Geo geo;
geo.setLatitude( 30 ); geo.setLatitude( 30 );
geo.setLongitude( 51 ); geo.setLongitude( 51 );
addressee.setGeo( geo ); addressee.setGeo( geo );
@ -63,17 +63,17 @@ int main( int argc, char **argv )
addressee.setRevision( TQDateTime::currentDateTime() ); addressee.setRevision( TQDateTime::currentDateTime() );
addressee.setSortString( "koenig" ); addressee.setSortString( "koenig" );
addressee.setUrl( KURL( "http://wgess16.dyndns.org") ); addressee.setUrl( KURL( "http://wgess16.dyndns.org") );
addressee.setSecrecy( KABC::Secrecy( KABC::Secrecy::Confidential ) ); addressee.setSecrecy( TDEABC::Secrecy( TDEABC::Secrecy::Confidential ) );
/* /*
TQImage img; TQImage img;
img.load( "testimg.png", "PNG" ); img.load( "testimg.png", "PNG" );
KABC::Picture photo; TDEABC::Picture photo;
photo.setData( img ); photo.setData( img );
addressee.setPhoto( photo ); addressee.setPhoto( photo );
TQImage img2; TQImage img2;
img2.load( "testimg.png", "PNG" ); img2.load( "testimg.png", "PNG" );
KABC::Picture logo; TDEABC::Picture logo;
logo.setData( img2 ); logo.setData( img2 );
addressee.setLogo( logo ); addressee.setLogo( logo );
@ -81,26 +81,26 @@ int main( int argc, char **argv )
soundFile.open( IO_ReadOnly ); soundFile.open( IO_ReadOnly );
TQByteArray data = soundFile.readAll(); TQByteArray data = soundFile.readAll();
soundFile.close(); soundFile.close();
KABC::Sound sound; TDEABC::Sound sound;
sound.setData( data ); sound.setData( data );
addressee.setSound( sound ); addressee.setSound( sound );
*/ */
addressee.insertEmail( "tokoe@kde.org", true ); addressee.insertEmail( "tokoe@kde.org", true );
addressee.insertEmail( "tokoe82@yahoo.de", true ); addressee.insertEmail( "tokoe82@yahoo.de", true );
KABC::PhoneNumber phone1( "3541523475", KABC::PhoneNumber::Pref | KABC::PhoneNumber::Home ); TDEABC::PhoneNumber phone1( "3541523475", TDEABC::PhoneNumber::Pref | TDEABC::PhoneNumber::Home );
KABC::PhoneNumber phone2( "+46745673475", KABC::PhoneNumber::Work ); TDEABC::PhoneNumber phone2( "+46745673475", TDEABC::PhoneNumber::Work );
addressee.insertPhoneNumber( phone1 ); addressee.insertPhoneNumber( phone1 );
addressee.insertPhoneNumber( phone2 ); addressee.insertPhoneNumber( phone2 );
KABC::Key key( "secret key", KABC::Key::X509 ); TDEABC::Key key( "secret key", TDEABC::Key::X509 );
addressee.insertKey( key ); addressee.insertKey( key );
TQStringList categories; TQStringList categories;
categories << "Friends" << "School" << "KDE"; categories << "Friends" << "School" << "KDE";
addressee.setCategories( categories ); addressee.setCategories( categories );
KABC::Address a( KABC::Address::Work | KABC::Address::Postal | KABC::Address::Parcel ); TDEABC::Address a( TDEABC::Address::Work | TDEABC::Address::Postal | TDEABC::Address::Parcel );
a.setStreet( "6544 Battleford Drive" ); a.setStreet( "6544 Battleford Drive" );
a.setLocality( "Raleigh" ); a.setLocality( "Raleigh" );
a.setRegion( "NC" ); a.setRegion( "NC" );
@ -112,14 +112,14 @@ int main( int argc, char **argv )
addressee.insertCustom( "2hsdf", "ertuer", "iurt" ); addressee.insertCustom( "2hsdf", "ertuer", "iurt" );
addressee.insertCustom( "3hsdf", "ertuer", "iurt" ); addressee.insertCustom( "3hsdf", "ertuer", "iurt" );
KABC::Addressee::List list; TDEABC::Addressee::List list;
for ( int i = 0; i < 1000; ++i ) { for ( int i = 0; i < 1000; ++i ) {
KABC::Addressee addr = addressee; TDEABC::Addressee addr = addressee;
addr.setUid( TQString::number( i ) ); addr.setUid( TQString::number( i ) );
list.append( addr ); list.append( addr );
} }
KABC::VCardConverter converter; TDEABC::VCardConverter converter;
TQString txt = converter.createVCards( list ); TQString txt = converter.createVCards( list );
TQFile file( "out.vcf" ); TQFile file( "out.vcf" );

@ -20,7 +20,7 @@
#include "vcard.h" #include "vcard.h"
using namespace KABC; using namespace TDEABC;
VCard::VCard() VCard::VCard()
{ {

@ -26,7 +26,7 @@
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
namespace KABC { namespace TDEABC {
class VCard class VCard
{ {

@ -20,7 +20,7 @@
#include "vcardline.h" #include "vcardline.h"
using namespace KABC; using namespace TDEABC;
class VCardLine::VCardLinePrivate class VCardLine::VCardLinePrivate
{ {

@ -27,7 +27,7 @@
#include <tqmap.h> #include <tqmap.h>
#include <tqstring.h> #include <tqstring.h>
namespace KABC { namespace TDEABC {
class VCardLine class VCardLine
{ {

@ -27,7 +27,7 @@
#define FOLD_WIDTH 75 #define FOLD_WIDTH 75
using namespace KABC; using namespace TDEABC;
static TQString backslash( "\\\\" ); static TQString backslash( "\\\\" );
static TQString comma( "\\," ); static TQString comma( "\\," );

@ -23,7 +23,7 @@
#include "vcard.h" #include "vcard.h"
namespace KABC { namespace TDEABC {
class VCardParser class VCardParser
{ {

@ -30,7 +30,7 @@
#include "vcardtool.h" #include "vcardtool.h"
using namespace KABC; using namespace TDEABC;
static bool needsEncoding( const TQString &value ) static bool needsEncoding( const TQString &value )
{ {
@ -459,8 +459,8 @@ Addressee::List VCardTool::parseVCards( const TQString& vcard )
type += mAddressTypeMap[ (*it).lower() ]; type += mAddressTypeMap[ (*it).lower() ];
bool available = false; bool available = false;
KABC::Address::List addressList = addr.addresses(); TDEABC::Address::List addressList = addr.addresses();
KABC::Address::List::Iterator it; TDEABC::Address::List::Iterator it;
for ( it = addressList.begin(); it != addressList.end(); ++it ) { for ( it = addressList.begin(); it != addressList.end(); ++it ) {
if ( (*it).type() == type ) { if ( (*it).type() == type ) {
(*it).setLabel( (*lineIt).value().asString() ); (*it).setLabel( (*lineIt).value().asString() );
@ -471,7 +471,7 @@ Addressee::List VCardTool::parseVCards( const TQString& vcard )
} }
if ( !available ) { // a standalone LABEL tag if ( !available ) { // a standalone LABEL tag
KABC::Address address( type ); TDEABC::Address address( type );
address.setLabel( (*lineIt).value().asString() ); address.setLabel( (*lineIt).value().asString() );
addr.insertAddress( address ); addr.insertAddress( address );
} }

@ -26,7 +26,7 @@
class TQDateTime; class TQDateTime;
namespace KABC { namespace TDEABC {
class Agent; class Agent;
class Key; class Key;

@ -45,7 +45,7 @@ namespace KRES {
* Example: * Example:
* *
* \code * \code
* KABC::Factory *factory = KABC::Factory::self( "contact" ); * TDEABC::Factory *factory = TDEABC::Factory::self( "contact" );
* *
* // to allow a transparent configuration of resources, we have * // to allow a transparent configuration of resources, we have
* // to use a tdeconfig object. * // to use a tdeconfig object.
@ -53,7 +53,7 @@ namespace KRES {
* config.writePathEntry( "FileName", "/home/foobar/test.vcf" );// resource dependend * config.writePathEntry( "FileName", "/home/foobar/test.vcf" );// resource dependend
* config.writeEntry( "FileFormat", "vcard" ); // resource dependend * config.writeEntry( "FileFormat", "vcard" ); // resource dependend
* *
* KABC::Resource *res = factory->resource( "file", &config ); * TDEABC::Resource *res = factory->resource( "file", &config );
* *
* // do something with resource * // do something with resource
* *

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

Loading…
Cancel
Save