|
|
|
@ -728,20 +728,20 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
|
|
|
|
|
properties=properties+(*it);
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
number = addresseee.phoneNumber(KABC::PhoneNumber::Work).number();
|
|
|
|
|
number = addresseee.phoneNumber(TDEABC::PhoneNumber::Work).number();
|
|
|
|
|
if (!number.isEmpty())
|
|
|
|
|
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())
|
|
|
|
|
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())
|
|
|
|
|
properties=properties+i18n("Home phone: %1").arg(number)+"<br>";
|
|
|
|
|
|
|
|
|
@ -1726,9 +1726,9 @@ void SearchDlg::searchBookmarks(KBookmarkGroup group)
|
|
|
|
|
void SearchDlg::searchAddressbook()
|
|
|
|
|
{
|
|
|
|
|
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()) {
|
|
|
|
|
if (!current_query.matches((*it).assembledName()+' '+(*it).fullEmail())) {
|
|
|
|
|
it++;
|
|
|
|
|