-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 19 | ||||
-rw-r--r-- | core/pim/osearch/adresssearch.h | 8 | ||||
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 3 | ||||
-rw-r--r-- | core/pim/osearch/applnksearch.cpp | 13 | ||||
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 7 | ||||
-rw-r--r-- | core/pim/osearch/contactitem.h | 9 | ||||
-rw-r--r-- | core/pim/osearch/datebooksearch.cpp | 19 | ||||
-rw-r--r-- | core/pim/osearch/datebooksearch.h | 4 | ||||
-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 3 | ||||
-rw-r--r-- | core/pim/osearch/doclnksearch.cpp | 18 | ||||
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 10 | ||||
-rw-r--r-- | core/pim/osearch/eventitem.h | 8 | ||||
-rw-r--r-- | core/pim/osearch/mainwindow.cpp | 50 | ||||
-rw-r--r-- | core/pim/osearch/mainwindow.h | 1 | ||||
-rw-r--r-- | core/pim/osearch/olistview.cpp | 9 | ||||
-rw-r--r-- | core/pim/osearch/osearch.pro | 2 | ||||
-rw-r--r-- | core/pim/osearch/resultitem.cpp | 4 | ||||
-rw-r--r-- | core/pim/osearch/resultitem.h | 4 | ||||
-rw-r--r-- | core/pim/osearch/searchgroup.cpp | 8 | ||||
-rw-r--r-- | core/pim/osearch/todoitem.cpp | 16 | ||||
-rw-r--r-- | core/pim/osearch/todoitem.h | 9 | ||||
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 14 | ||||
-rw-r--r-- | core/pim/osearch/todosearch.h | 8 |
23 files changed, 137 insertions, 109 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index 7681ea2..dbd6df6 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp | |||
@@ -13,2 +13,5 @@ | |||
13 | #include "adresssearch.h" | 13 | #include "adresssearch.h" |
14 | #include "contactitem.h" | ||
15 | |||
16 | #include <qpe/resource.h> | ||
14 | 17 | ||
@@ -17,6 +20,2 @@ | |||
17 | //#include <qwhatsthis.h> | 20 | //#include <qwhatsthis.h> |
18 | #include <qpe/resource.h> | ||
19 | #include <opie/ocontactaccess.h> | ||
20 | |||
21 | #include "contactitem.h" | ||
22 | 21 | ||
@@ -26,6 +25,6 @@ AdressSearch::AdressSearch(QListView* parent, QString name): | |||
26 | _contacts = 0; | 25 | _contacts = 0; |
27 | QIconSet is = Resource::loadIconSet( "addressbook/AddressBookSmall" ); | 26 | QIconSet is = Resource::loadIconSet( "addressbook/AddressBookSmall" ); |
28 | setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); | 27 | setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); |
29 | 28 | ||
30 | 29 | ||
31 | //QWhatsThis::add( this, QObject::tr("Search the addressbook") ); | 30 | //QWhatsThis::add( this, QObject::tr("Search the addressbook") ); |
@@ -46,3 +45,3 @@ void AdressSearch::load() | |||
46 | { | 45 | { |
47 | _contacts = new OContactAccess("osearch"); | 46 | _contacts = new OPimContactAccess("osearch"); |
48 | } | 47 | } |
@@ -51,5 +50,5 @@ int AdressSearch::search() | |||
51 | { | 50 | { |
52 | ORecordList<OContact> results = _contacts->matchRegexp(_search); | 51 | OPimRecordList<OPimContact> results = _contacts->matchRegexp(_search); |
53 | for (uint i = 0; i < results.count(); i++) { | 52 | for (uint i = 0; i < results.count(); i++) { |
54 | (void)new ContactItem( this, new OContact( results[i] )); | 53 | (void)new ContactItem( this, new OPimContact( results[i] )); |
55 | } | 54 | } |
diff --git a/core/pim/osearch/adresssearch.h b/core/pim/osearch/adresssearch.h index d5c7622..028521a 100644 --- a/core/pim/osearch/adresssearch.h +++ b/core/pim/osearch/adresssearch.h | |||
@@ -1,3 +1 @@ | |||
1 | // | ||
2 | // | ||
3 | // C++ Interface: $MODULE$ | // C++ Interface: $MODULE$ | |
@@ -16,4 +14,6 @@ | |||
16 | #include "searchgroup.h" | 14 | #include "searchgroup.h" |
15 | #include <opie2/ocontactaccess.h> | ||
16 | |||
17 | using namespace Opie; | ||
17 | 18 | ||
18 | class OContactAccess; | ||
19 | 19 | ||
@@ -34,3 +34,3 @@ protected: | |||
34 | private: | 34 | private: |
35 | OContactAccess *_contacts; | 35 | OPimContactAccess *_contacts; |
36 | }; | 36 | }; |
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp index 2c4a4cb..06c2b1e 100644 --- a/core/pim/osearch/applnkitem.cpp +++ b/core/pim/osearch/applnkitem.cpp | |||
@@ -15,5 +15,6 @@ | |||
15 | #include <qpe/applnk.h> | 15 | #include <qpe/applnk.h> |
16 | #include <qfileinfo.h> | ||
17 | #include <qpe/qcopenvelope_qws.h> | 16 | #include <qpe/qcopenvelope_qws.h> |
18 | 17 | ||
18 | #include <qfileinfo.h> | ||
19 | |||
19 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) | 20 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) |
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp index e8170c5..1c84d66 100644 --- a/core/pim/osearch/applnksearch.cpp +++ b/core/pim/osearch/applnksearch.cpp | |||
@@ -13,2 +13,3 @@ | |||
13 | #include "applnksearch.h" | 13 | #include "applnksearch.h" |
14 | #include "applnkitem.h" | ||
14 | 15 | ||
@@ -16,7 +17,5 @@ | |||
16 | #include <qpe/qpeapplication.h> | 17 | #include <qpe/qpeapplication.h> |
17 | #include <qiconset.h> | ||
18 | #include <qpe/resource.h> | 18 | #include <qpe/resource.h> |
19 | 19 | ||
20 | #include "applnkitem.h" | 20 | #include <qiconset.h> |
21 | |||
22 | 21 | ||
@@ -45,3 +44,3 @@ int AppLnkSearch::search() | |||
45 | QList<AppLnk> appList = _apps->children(); | 44 | QList<AppLnk> appList = _apps->children(); |
46 | 45 | ||
47 | for ( AppLnk *app = appList.first(); app != 0; app = appList.next() ){ | 46 | for ( AppLnk *app = appList.first(); app != 0; app = appList.next() ){ |
@@ -49,3 +48,3 @@ int AppLnkSearch::search() | |||
49 | || (_search.match(app->comment()) != -1) | 48 | || (_search.match(app->comment()) != -1) |
50 | || (_search.match(app->exec()) != -1) ) { | 49 | || (_search.match(app->exec()) != -1) ) { |
51 | insertItem( app ); | 50 | insertItem( app ); |
@@ -53,4 +52,4 @@ int AppLnkSearch::search() | |||
53 | if (searchFile( app )) | 52 | if (searchFile( app )) |
54 | insertItem( app ); | 53 | insertItem( app ); |
55 | qApp->processEvents( 100 ); | 54 | qApp->processEvents( 100 ); |
56 | } | 55 | } |
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index c4738ae..eedc374 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -14,4 +14,2 @@ | |||
14 | 14 | ||
15 | #include <qpixmap.h> | ||
16 | #include <opie/ocontact.h> | ||
17 | #include <qpe/resource.h> | 15 | #include <qpe/resource.h> |
@@ -19,3 +17,6 @@ | |||
19 | 17 | ||
20 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) | 18 | #include <qpixmap.h> |
19 | |||
20 | |||
21 | ContactItem::ContactItem(OListViewItem* parent, OPimContact *contact) | ||
21 | : ResultItem(parent) | 22 | : ResultItem(parent) |
diff --git a/core/pim/osearch/contactitem.h b/core/pim/osearch/contactitem.h index d6303e2..3c553fc 100644 --- a/core/pim/osearch/contactitem.h +++ b/core/pim/osearch/contactitem.h | |||
@@ -15,5 +15,8 @@ | |||
15 | 15 | ||
16 | #include <opie2/opimrecord.h> | ||
17 | #include <opie2/opimcontact.h> | ||
18 | |||
16 | #include "resultitem.h" | 19 | #include "resultitem.h" |
17 | 20 | ||
18 | class OContact; | 21 | using namespace Opie; |
19 | 22 | ||
@@ -25,3 +28,3 @@ class ContactItem : public ResultItem | |||
25 | public: | 28 | public: |
26 | ContactItem(OListViewItem* parent, OContact *contact); | 29 | ContactItem(OListViewItem* parent, OPimContact *contact); |
27 | 30 | ||
@@ -36,3 +39,3 @@ private: | |||
36 | void setIcon(); | 39 | void setIcon(); |
37 | OContact *_contact; | 40 | OPimContact *_contact; |
38 | 41 | ||
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp index 50c76e0..2b4660a 100644 --- a/core/pim/osearch/datebooksearch.cpp +++ b/core/pim/osearch/datebooksearch.cpp | |||
@@ -4,3 +4,3 @@ | |||
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
@@ -13,10 +13,11 @@ | |||
13 | #include "datebooksearch.h" | 13 | #include "datebooksearch.h" |
14 | |||
15 | #include "eventitem.h" | 14 | #include "eventitem.h" |
16 | 15 | ||
16 | #include <opie2/opimevent.h> | ||
17 | #include <opie2/opimrecurrence.h> | ||
18 | |||
19 | |||
17 | #include <qpe/resource.h> | 20 | #include <qpe/resource.h> |
18 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
19 | #include <opie/oevent.h> | 22 | |
20 | #include <opie/orecur.h> | ||
21 | #include <opie/odatebookaccess.h> | ||
22 | #include <qiconset.h> | 23 | #include <qiconset.h> |
@@ -26,2 +27,4 @@ | |||
26 | 27 | ||
28 | |||
29 | |||
27 | DatebookSearch::DatebookSearch(QListView* parent, QString name) | 30 | DatebookSearch::DatebookSearch(QListView* parent, QString name) |
@@ -61,5 +64,5 @@ int DatebookSearch::search() | |||
61 | { | 64 | { |
62 | ORecordList<OEvent> results = _dates->matchRegexp(_search); | 65 | OPimRecordList<OPimEvent> results = _dates->matchRegexp(_search); |
63 | for (uint i = 0; i < results.count(); i++) | 66 | for (uint i = 0; i < results.count(); i++) |
64 | insertItem( new OEvent( results[i] ) ); | 67 | insertItem( new OPimEvent( results[i] ) ); |
65 | return _resultCount; | 68 | return _resultCount; |
@@ -69,3 +72,3 @@ void DatebookSearch::insertItem( void *rec ) | |||
69 | { | 72 | { |
70 | OEvent *ev = (OEvent*)rec; | 73 | OPimEvent *ev = (OPimEvent*)rec; |
71 | if ( !actionShowPastEvents->isOn() && | 74 | if ( !actionShowPastEvents->isOn() && |
diff --git a/core/pim/osearch/datebooksearch.h b/core/pim/osearch/datebooksearch.h index a6d115e..2af727d 100644 --- a/core/pim/osearch/datebooksearch.h +++ b/core/pim/osearch/datebooksearch.h | |||
@@ -16,4 +16,6 @@ | |||
16 | #include "searchgroup.h" | 16 | #include "searchgroup.h" |
17 | #include <opie2/odatebookaccess.h> | ||
18 | |||
19 | using namespace Opie; | ||
17 | 20 | ||
18 | class ODateBookAccess; | ||
19 | class QAction; | 21 | class QAction; |
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp index 56eb26a..1516b8e 100644 --- a/core/pim/osearch/doclnkitem.cpp +++ b/core/pim/osearch/doclnkitem.cpp | |||
@@ -15,2 +15,4 @@ | |||
15 | #include <qpe/applnk.h> | 15 | #include <qpe/applnk.h> |
16 | #include <qpe/qcopenvelope_qws.h> | ||
17 | |||
16 | #include <qfile.h> | 18 | #include <qfile.h> |
@@ -18,3 +20,2 @@ | |||
18 | #include <qfileinfo.h> | 20 | #include <qfileinfo.h> |
19 | #include <qpe/qcopenvelope_qws.h> | ||
20 | 21 | ||
diff --git a/core/pim/osearch/doclnksearch.cpp b/core/pim/osearch/doclnksearch.cpp index b03dbd8..c73dcbf 100644 --- a/core/pim/osearch/doclnksearch.cpp +++ b/core/pim/osearch/doclnksearch.cpp | |||
@@ -13,2 +13,13 @@ | |||
13 | 13 | ||
14 | |||
15 | #include "doclnkitem.h" | ||
16 | #include "doclnksearch.h" | ||
17 | |||
18 | #include <opie2/owait.h> | ||
19 | |||
20 | #include <qpe/applnk.h> | ||
21 | #include <qpe/config.h> | ||
22 | #include <qpe/resource.h> | ||
23 | #include <qpe/qpeapplication.h> | ||
24 | |||
14 | #include <qaction.h> | 25 | #include <qaction.h> |
@@ -18,10 +29,3 @@ | |||
18 | #include <qtextstream.h> | 29 | #include <qtextstream.h> |
19 | #include <qpe/applnk.h> | ||
20 | #include <qpe/config.h> | ||
21 | #include <qpe/resource.h> | ||
22 | #include <qpe/qpeapplication.h> | ||
23 | #include <opie/owait.h> | ||
24 | 30 | ||
25 | #include "doclnkitem.h" | ||
26 | #include "doclnksearch.h" | ||
27 | 31 | ||
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp index 3228093..f6e34fe 100644 --- a/core/pim/osearch/eventitem.cpp +++ b/core/pim/osearch/eventitem.cpp | |||
@@ -14,10 +14,10 @@ | |||
14 | 14 | ||
15 | #include <qdatetime.h> | 15 | |
16 | #include <qpixmap.h> | ||
17 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 17 | #include <qpe/qcopenvelope_qws.h> |
19 | //#include <qwhatsthis.h> | ||
20 | #include <opie/oevent.h> | ||
21 | 18 | ||
22 | EventItem::EventItem(OListViewItem* parent, OEvent *event) | 19 | #include <qdatetime.h> |
20 | #include <qpixmap.h> | ||
21 | |||
22 | EventItem::EventItem(OListViewItem* parent, OPimEvent *event) | ||
23 | : ResultItem(parent) | 23 | : ResultItem(parent) |
diff --git a/core/pim/osearch/eventitem.h b/core/pim/osearch/eventitem.h index 5f9c9fc..68923f1 100644 --- a/core/pim/osearch/eventitem.h +++ b/core/pim/osearch/eventitem.h | |||
@@ -17,3 +17,5 @@ | |||
17 | 17 | ||
18 | class OEvent; | 18 | #include <opie2/opimevent.h> |
19 | |||
20 | using namespace Opie; | ||
19 | 21 | ||
@@ -25,3 +27,3 @@ class EventItem : public ResultItem | |||
25 | public: | 27 | public: |
26 | EventItem(OListViewItem* parent, OEvent *event); | 28 | EventItem(OListViewItem* parent, OPimEvent *event); |
27 | 29 | ||
@@ -35,3 +37,3 @@ private: | |||
35 | void setIcon(); | 37 | void setIcon(); |
36 | OEvent *_event; | 38 | OPimEvent *_event; |
37 | 39 | ||
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp index 55302cb..95f5967 100644 --- a/core/pim/osearch/mainwindow.cpp +++ b/core/pim/osearch/mainwindow.cpp | |||
@@ -12,3 +12,23 @@ | |||
12 | 12 | ||
13 | #include "olistview.h" | ||
14 | #include "olistviewitem.h" | ||
15 | #include "resultitem.h" | ||
16 | #include "adresssearch.h" | ||
17 | #include "todosearch.h" | ||
18 | #include "datebooksearch.h" | ||
19 | #include "applnksearch.h" | ||
20 | #include "doclnksearch.h" | ||
21 | #include "mainwindow.h" | ||
13 | 22 | ||
23 | #include <opie2/owait.h> | ||
24 | |||
25 | #include <qpe/qpemessagebox.h> | ||
26 | #include <qpe/resource.h> | ||
27 | #include <qpe/config.h> | ||
28 | |||
29 | #include <qpe/qpeapplication.h> | ||
30 | #include <qpe/config.h> | ||
31 | #include <qpe/global.h> | ||
32 | |||
33 | #include <qtoolbar.h> | ||
14 | #include <qaction.h> | 34 | #include <qaction.h> |
@@ -31,22 +51,6 @@ | |||
31 | #include <qmenubar.h> | 51 | #include <qmenubar.h> |
32 | #include <qpe/qpemessagebox.h> | ||
33 | #include <qpe/resource.h> | ||
34 | #include <qpe/config.h> | ||
35 | #include <qtoolbar.h> | ||
36 | #include <qpe/qpeapplication.h> | ||
37 | #include <qpe/config.h> | ||
38 | #include <qpe/global.h> | ||
39 | #include <opie/owait.h> | ||
40 | 52 | ||
41 | #include "olistview.h" | ||
42 | #include "olistviewitem.h" | ||
43 | #include "resultitem.h" | ||
44 | #include "adresssearch.h" | ||
45 | #include "todosearch.h" | ||
46 | #include "datebooksearch.h" | ||
47 | #include "applnksearch.h" | ||
48 | #include "doclnksearch.h" | ||
49 | #include "mainwindow.h" | ||
50 | 53 | ||
51 | static const char* const image1_data[] = { | 54 | |
55 | static const char* const image1_data[] = { | ||
52 | "14 14 3 1", | 56 | "14 14 3 1", |
@@ -180,3 +184,3 @@ void MainWindow::makeMenu() | |||
180 | LabelEnterText->setText( tr( "Search for: " ) ); | 184 | LabelEnterText->setText( tr( "Search for: " ) ); |
181 | 185 | ||
182 | addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); | 186 | addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); |
@@ -187,9 +191,9 @@ void MainWindow::makeMenu() | |||
187 | searchBar->setStretchableWidget( searchEdit ); | 191 | searchBar->setStretchableWidget( searchEdit ); |
188 | 192 | ||
189 | //Search button | 193 | //Search button |
190 | SearchAllAction->addTo( searchBar ); | 194 | SearchAllAction->addTo( searchBar ); |
191 | 195 | ||
192 | //image ripped of off opie-login/loginwindow.cpp | 196 | //image ripped of off opie-login/loginwindow.cpp |
193 | QPixmap image1( ( const char** ) image1_data ); | 197 | QPixmap image1( ( const char** ) image1_data ); |
194 | 198 | ||
195 | //Clear text | 199 | //Clear text |
@@ -198,3 +202,3 @@ void MainWindow::makeMenu() | |||
198 | ClearSearchText->setPixmap( image1 ); | 202 | ClearSearchText->setPixmap( image1 ); |
199 | 203 | ||
200 | connect( searchEdit, SIGNAL( textChanged( const QString & ) ),this, SLOT( setSearch( const QString & ) ) ); | 204 | connect( searchEdit, SIGNAL( textChanged( const QString & ) ),this, SLOT( setSearch( const QString & ) ) ); |
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h index 9886053..bf3081f 100644 --- a/core/pim/osearch/mainwindow.h +++ b/core/pim/osearch/mainwindow.h | |||
@@ -18,3 +18,2 @@ | |||
18 | #include <qlist.h> | 18 | #include <qlist.h> |
19 | |||
20 | #include <qmap.h> | 19 | #include <qmap.h> |
diff --git a/core/pim/osearch/olistview.cpp b/core/pim/osearch/olistview.cpp index e678d63..7a7cb26 100644 --- a/core/pim/osearch/olistview.cpp +++ b/core/pim/osearch/olistview.cpp | |||
@@ -12,5 +12,8 @@ | |||
12 | #include "olistviewitem.h" | 12 | #include "olistviewitem.h" |
13 | #include <qmessagebox.h> | 13 | |
14 | #include <qpe/qpeapplication.h> | 14 | #include <qpe/qpeapplication.h> |
15 | 15 | ||
16 | #include <qmessagebox.h> | ||
17 | |||
18 | |||
16 | OListView::OListView(QWidget *parent, const char *name ) | 19 | OListView::OListView(QWidget *parent, const char *name ) |
@@ -19,6 +22,6 @@ OListView::OListView(QWidget *parent, const char *name ) | |||
19 | 22 | ||
20 | setRootIsDecorated( true ); | 23 | setRootIsDecorated( true ); |
21 | addColumn(tr("Results"),qApp->desktop()->width() - 9 ); | 24 | addColumn(tr("Results"),qApp->desktop()->width() - 9 ); |
22 | //setColumnWidthMode(0, Manual); | 25 | //setColumnWidthMode(0, Manual); |
23 | 26 | ||
24 | setSorting( -1 ); | 27 | setSorting( -1 ); |
diff --git a/core/pim/osearch/osearch.pro b/core/pim/osearch/osearch.pro index c988f48..7412de9 100644 --- a/core/pim/osearch/osearch.pro +++ b/core/pim/osearch/osearch.pro | |||
@@ -37,3 +37,3 @@ INCLUDEPATH = $(OPIEDIR)/include | |||
37 | DEPENDPATH += $(OPIEDIR)/include | 37 | DEPENDPATH += $(OPIEDIR)/include |
38 | LIBS += -lqpe -lopie | 38 | LIBS += -lqpe -lopiecore2 -lopiepim2 -lopieui2 |
39 | include ( $(OPIEDIR)/include.pro ) | 39 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/core/pim/osearch/resultitem.cpp b/core/pim/osearch/resultitem.cpp index 2c1e95a..f051b12 100644 --- a/core/pim/osearch/resultitem.cpp +++ b/core/pim/osearch/resultitem.cpp | |||
@@ -14,6 +14,4 @@ | |||
14 | 14 | ||
15 | #include <qmessagebox.h> | ||
16 | |||
17 | #include <opie/otodo.h> | ||
18 | 15 | ||
16 | #include <qmessagebox.h> | ||
19 | 17 | ||
diff --git a/core/pim/osearch/resultitem.h b/core/pim/osearch/resultitem.h index 9e87f99..1c14e8f 100644 --- a/core/pim/osearch/resultitem.h +++ b/core/pim/osearch/resultitem.h | |||
@@ -15,6 +15,6 @@ | |||
15 | 15 | ||
16 | #include <qintdict.h> | ||
17 | |||
18 | #include "olistviewitem.h" | 16 | #include "olistviewitem.h" |
19 | 17 | ||
18 | #include <qintdict.h> | ||
19 | |||
20 | /** | 20 | /** |
diff --git a/core/pim/osearch/searchgroup.cpp b/core/pim/osearch/searchgroup.cpp index 0b58176..5377b9f 100644 --- a/core/pim/osearch/searchgroup.cpp +++ b/core/pim/osearch/searchgroup.cpp | |||
@@ -12,2 +12,6 @@ | |||
12 | // | 12 | // |
13 | #include "olistviewitem.h" | ||
14 | #include "searchgroup.h" | ||
15 | |||
16 | #include <opie2/owait.h> | ||
13 | 17 | ||
@@ -16,6 +20,2 @@ | |||
16 | #include <qapplication.h> | 20 | #include <qapplication.h> |
17 | #include <opie/owait.h> | ||
18 | |||
19 | #include "olistviewitem.h" | ||
20 | #include "searchgroup.h" | ||
21 | 21 | ||
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp index 9808a04..c20f1fd 100644 --- a/core/pim/osearch/todoitem.cpp +++ b/core/pim/osearch/todoitem.cpp | |||
@@ -14,4 +14,3 @@ | |||
14 | 14 | ||
15 | #include <opie/otodo.h> | 15 | |
16 | #include <qpixmap.h> | ||
17 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
@@ -19,3 +18,6 @@ | |||
19 | 18 | ||
20 | TodoItem::TodoItem(OListViewItem* parent, OTodo *todo) | 19 | #include <qpixmap.h> |
20 | |||
21 | |||
22 | TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo) | ||
21 | : ResultItem(parent) | 23 | : ResultItem(parent) |
@@ -63,12 +65,12 @@ void TodoItem::setIcon() | |||
63 | break; | 65 | break; |
64 | case OTodo::Description: | 66 | case OPimTodo::Description: |
65 | icon = Resource::loadPixmap( "txt" ); | 67 | icon = Resource::loadPixmap( "txt" ); |
66 | break; | 68 | break; |
67 | case OTodo::Summary: | 69 | case OPimTodo::Summary: |
68 | icon = Resource::loadPixmap( "osearch/summary" ); | 70 | icon = Resource::loadPixmap( "osearch/summary" ); |
69 | break; | 71 | break; |
70 | case OTodo::Priority: | 72 | case OPimTodo::Priority: |
71 | icon = Resource::loadPixmap( "todo/priority1" ); | 73 | icon = Resource::loadPixmap( "todo/priority1" ); |
72 | break; | 74 | break; |
73 | case OTodo::HasDate: | 75 | case OPimTodo::HasDate: |
74 | icon = Resource::loadPixmap( "osearch/clock" ); | 76 | icon = Resource::loadPixmap( "osearch/clock" ); |
diff --git a/core/pim/osearch/todoitem.h b/core/pim/osearch/todoitem.h index cc78e57..7c8537b 100644 --- a/core/pim/osearch/todoitem.h +++ b/core/pim/osearch/todoitem.h | |||
@@ -15,4 +15,7 @@ | |||
15 | 15 | ||
16 | |||
17 | #include <opie2/opimtodo.h> | ||
16 | #include "resultitem.h" | 18 | #include "resultitem.h" |
17 | class OTodo; | 19 | |
20 | using namespace Opie; | ||
18 | 21 | ||
@@ -24,3 +27,3 @@ class TodoItem : public ResultItem | |||
24 | public: | 27 | public: |
25 | TodoItem(OListViewItem* parent, OTodo *todo); | 28 | TodoItem(OListViewItem* parent, OPimTodo *todo); |
26 | ~TodoItem(); | 29 | ~TodoItem(); |
@@ -33,3 +36,3 @@ private: | |||
33 | void setIcon(); | 36 | void setIcon(); |
34 | OTodo *_todo; | 37 | OPimTodo *_todo; |
35 | 38 | ||
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp index 8de875e..5042803 100644 --- a/core/pim/osearch/todosearch.cpp +++ b/core/pim/osearch/todosearch.cpp | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "todosearch.h" | 13 | #include "todosearch.h" |
14 | #include "todoitem.h" | ||
14 | 15 | ||
15 | #include <opie/otodoaccess.h> | ||
16 | #include <opie/otodo.h> | ||
17 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
18 | #include <qpe/config.h> | 17 | #include <qpe/config.h> |
18 | |||
19 | #include <qiconset.h> | 19 | #include <qiconset.h> |
@@ -21,3 +21,3 @@ | |||
21 | #include <qpopupmenu.h> | 21 | #include <qpopupmenu.h> |
22 | #include "todoitem.h" | 22 | |
23 | 23 | ||
@@ -51,3 +51,3 @@ void TodoSearch::load() | |||
51 | { | 51 | { |
52 | _todos = new OTodoAccess(); | 52 | _todos = new OPimTodoAccess(); |
53 | _todos->load(); | 53 | _todos->load(); |
@@ -57,5 +57,5 @@ int TodoSearch::search() | |||
57 | { | 57 | { |
58 | ORecordList<OTodo> results = _todos->matchRegexp(_search); | 58 | OPimRecordList<OPimTodo> results = _todos->matchRegexp(_search); |
59 | for (uint i = 0; i < results.count(); i++) | 59 | for (uint i = 0; i < results.count(); i++) |
60 | insertItem( new OTodo( results[i] )); | 60 | insertItem( new OPimTodo( results[i] )); |
61 | return _resultCount; | 61 | return _resultCount; |
@@ -65,3 +65,3 @@ void TodoSearch::insertItem( void *rec ) | |||
65 | { | 65 | { |
66 | OTodo *todo = (OTodo*)rec; | 66 | OPimTodo *todo = (OPimTodo*)rec; |
67 | if (!actionShowCompleted->isOn() && | 67 | if (!actionShowCompleted->isOn() && |
diff --git a/core/pim/osearch/todosearch.h b/core/pim/osearch/todosearch.h index ee175da..740e483 100644 --- a/core/pim/osearch/todosearch.h +++ b/core/pim/osearch/todosearch.h | |||
@@ -17,5 +17,9 @@ | |||
17 | 17 | ||
18 | class OTodoAccess; | 18 | #include <opie2/otodoaccess.h> |
19 | #include <opie2/opimtodo.h> | ||
20 | |||
19 | class QAction; | 21 | class QAction; |
20 | 22 | ||
23 | using namespace Opie; | ||
24 | |||
21 | /** | 25 | /** |
@@ -37,3 +41,3 @@ protected: | |||
37 | private: | 41 | private: |
38 | OTodoAccess *_todos; | 42 | OPimTodoAccess *_todos; |
39 | QAction *actionShowCompleted; | 43 | QAction *actionShowCompleted; |