Rename KABC namespace

pull/4/head
Timothy Pearson 12 years ago
parent 030b15f733
commit 58b242107f

@ -2074,7 +2074,7 @@ if test $kde_qtver = 3; then
AC_SUBST(LIB_KJS, "-lkjs") AC_SUBST(LIB_KJS, "-lkjs")
AC_SUBST(LIB_SMB, "-lsmb") AC_SUBST(LIB_SMB, "-lsmb")
AC_SUBST(LIB_KAB, "-lkab") AC_SUBST(LIB_KAB, "-lkab")
AC_SUBST(LIB_KABC, "-ltdeabc") AC_SUBST(LIB_TDEABC, "-ltdeabc")
AC_SUBST(LIB_TDEHTML, "-ltdehtml") AC_SUBST(LIB_TDEHTML, "-ltdehtml")
AC_SUBST(LIB_KSPELL, "-ltdespell") AC_SUBST(LIB_KSPELL, "-ltdespell")
AC_SUBST(LIB_KPARTS, "-ltdeparts") AC_SUBST(LIB_KPARTS, "-ltdeparts")

@ -28,7 +28,7 @@ kerry_la_SOURCES = main.cpp beaglesearch.cpp kerryapp.cpp searchdlg.cpp searchdl
dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp
kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) $(LIB_QT) kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) $(LIB_QT)
kerry_la_LIBADD = -ltdeio -lkonq $(LIB_TDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC) -lDCOP $(LIB_QT) $(LIB_TDECORE) kerry_la_LIBADD = -ltdeio -lkonq $(LIB_TDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_TDEABC) -lDCOP $(LIB_QT) $(LIB_TDECORE)
autostartdir = $(datadir)/autostart autostartdir = $(datadir)/autostart
autostart_DATA = kerry.autostart.desktop beagled.desktop autostart_DATA = kerry.autostart.desktop beagled.desktop

@ -728,20 +728,20 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
properties=properties+(*it); properties=properties+(*it);
if (!m_addressBook) if (!m_addressBook)
m_addressBook = KABC::StdAddressBook::self( false ); m_addressBook = TDEABC::StdAddressBook::self( false );
KABC::Addressee addresseee = m_addressBook->findByUid( item->uri().mid(8,10) ); TDEABC::Addressee addresseee = m_addressBook->findByUid( item->uri().mid(8,10) );
TQString number; TQString number;
number = addresseee.phoneNumber(KABC::PhoneNumber::Work).number(); number = addresseee.phoneNumber(TDEABC::PhoneNumber::Work).number();
if (!number.isEmpty()) if (!number.isEmpty())
properties=properties+i18n("Business phone: %1").arg(number)+"<br>"; properties=properties+i18n("Business phone: %1").arg(number)+"<br>";
number = addresseee.phoneNumber(KABC::PhoneNumber::Cell).number(); number = addresseee.phoneNumber(TDEABC::PhoneNumber::Cell).number();
if (!number.isEmpty()) if (!number.isEmpty())
properties=properties+i18n("Mobile phone: %1").arg(number)+"<br>"; properties=properties+i18n("Mobile phone: %1").arg(number)+"<br>";
number = addresseee.phoneNumber(KABC::PhoneNumber::Home).number(); number = addresseee.phoneNumber(TDEABC::PhoneNumber::Home).number();
if (!number.isEmpty()) if (!number.isEmpty())
properties=properties+i18n("Home phone: %1").arg(number)+"<br>"; properties=properties+i18n("Home phone: %1").arg(number)+"<br>";
@ -1726,9 +1726,9 @@ void SearchDlg::searchBookmarks(KBookmarkGroup group)
void SearchDlg::searchAddressbook() void SearchDlg::searchAddressbook()
{ {
if (!m_addressBook) if (!m_addressBook)
m_addressBook = KABC::StdAddressBook::self( false ); m_addressBook = TDEABC::StdAddressBook::self( false );
KABC::AddressBook::ConstIterator it = m_addressBook->begin(); TDEABC::AddressBook::ConstIterator it = m_addressBook->begin();
while (it!=m_addressBook->end()) { while (it!=m_addressBook->end()) {
if (!current_query.matches((*it).assembledName()+' '+(*it).fullEmail())) { if (!current_query.matches((*it).assembledName()+' '+(*it).fullEmail())) {
it++; it++;

@ -159,7 +159,7 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
bool checkUriInResults(const TQString& path) const; bool checkUriInResults(const TQString& path) const;
KBookmarkManager *bookmarkManager; KBookmarkManager *bookmarkManager;
KABC::AddressBook* m_addressBook; TDEABC::AddressBook* m_addressBook;
void searchAddressbook(); void searchAddressbook();
void searchBookmarks(KBookmarkGroup); void searchBookmarks(KBookmarkGroup);

Loading…
Cancel
Save