summaryrefslogtreecommitdiff
path: root/core/pim/osearch/datebooksearch.cpp
authortille <tille>2003-05-11 19:19:30 (UTC)
committer tille <tille>2003-05-11 19:19:30 (UTC)
commit43c18630840a98aed8deb96b454957c40f0a4344 (patch) (side-by-side diff)
tree60e5b68d1d172c77560d5af7bea83e81be7144a6 /core/pim/osearch/datebooksearch.cpp
parent38dc2fd6258f11ba0507c7bd8f8dfd5b39bc0df5 (diff)
downloadopie-43c18630840a98aed8deb96b454957c40f0a4344.zip
opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.gz
opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.bz2
improved applnk and doclnk searching
clean up: - mainwindow: handling of searchgroups - searchgroups: introduced load, search and insertItem functions - flexible actions handling - doclnksearch inherits applnksearch
Diffstat (limited to 'core/pim/osearch/datebooksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/datebooksearch.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp
index 83b99f5..68699fa 100644
--- a/core/pim/osearch/datebooksearch.cpp
+++ b/core/pim/osearch/datebooksearch.cpp
@@ -30,17 +30,21 @@ DatebookSearch::~DatebookSearch()
}
-void DatebookSearch::expand()
+void DatebookSearch::load()
{
- SearchGroup::expand();
- if (!_dates){
_dates = new ODateBookAccess();
_dates->load();
- }
+}
+
+int DatebookSearch::search()
+{
ORecordList<OEvent> results = _dates->matchRegexp(_search);
- setText(0, text(0) + " (" + QString::number( results.count() ) + ")" );
- for (uint i = 0; i < results.count(); i++) {
+ for (uint i = 0; i < results.count(); i++)
new EventItem( this, new OEvent( results[i] ));
- }
+ return results.count();
}
+void DatebookSearch::insertItem( void* )
+{
+
+}