From 43c18630840a98aed8deb96b454957c40f0a4344 Mon Sep 17 00:00:00 2001 From: tille Date: Sun, 11 May 2003 19:19:30 +0000 Subject: improved applnk and doclnk searching clean up: - mainwindow: handling of searchgroups - searchgroups: introduced load, search and insertItem functions - flexible actions handling - doclnksearch inherits applnksearch --- (limited to 'core/pim/osearch/adresssearch.cpp') diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index 0ee8eba..69ad9ef 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp @@ -30,16 +30,21 @@ AdressSearch::~AdressSearch() delete _contacts; } +void AdressSearch::load() +{ + _contacts = new OContactAccess("osearch"); +} -void AdressSearch::expand() +int AdressSearch::search() { - SearchGroup::expand(); - if (_search.isEmpty()) return; - if (!_contacts) _contacts = new OContactAccess("osearch"); ORecordList results = _contacts->matchRegexp(_search); - setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); for (uint i = 0; i < results.count(); i++) { new ContactItem( this, new OContact( results[i] )); } + return results.count(); } +void AdressSearch::insertItem( void* ) +{ + +} -- cgit v0.9.0.2