Diffstat (limited to 'core/pim/todo/todomanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/todomanager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/todo/todomanager.cpp b/core/pim/todo/todomanager.cpp index 21e1d0c..7826747 100644 --- a/core/pim/todo/todomanager.cpp +++ b/core/pim/todo/todomanager.cpp | |||
@@ -22,34 +22,37 @@ | |||
22 | -- :-=` this library; see the file COPYING.LIB. | 22 | -- :-=` this library; see the file COPYING.LIB. |
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | |||
29 | #include <opie2/odebug.h> | ||
30 | |||
28 | #include <qpe/categoryselect.h> | 31 | #include <qpe/categoryselect.h> |
29 | 32 | ||
30 | #include "todomanager.h" | 33 | #include "todomanager.h" |
31 | 34 | ||
32 | using namespace Todo; | 35 | using namespace Todo; |
33 | 36 | ||
34 | TodoManager::TodoManager( QObject *obj ) | 37 | TodoManager::TodoManager( QObject *obj ) |
35 | : QObject( obj ) { | 38 | : QObject( obj ) { |
36 | m_db = 0l; | 39 | m_db = 0l; |
37 | QTime time; | 40 | QTime time; |
38 | time.start(); | 41 | time.start(); |
39 | int el = time.elapsed(); | 42 | int el = time.elapsed(); |
40 | qWarning("QTimer for loading %d", el/1000 ); | 43 | Opie::Core::owarn << "QTimer for loading " << el/1000 << oendl; |
41 | } | 44 | } |
42 | TodoManager::~TodoManager() { | 45 | TodoManager::~TodoManager() { |
43 | delete m_db; | 46 | delete m_db; |
44 | } | 47 | } |
45 | OPimTodo TodoManager::event(int uid ) { | 48 | OPimTodo TodoManager::event(int uid ) { |
46 | return m_db->find( uid ); | 49 | return m_db->find( uid ); |
47 | } | 50 | } |
48 | void TodoManager::updateList() { | 51 | void TodoManager::updateList() { |
49 | qWarning("update list"); | 52 | Opie::Core::owarn << "update lists" << oendl; |
50 | m_list = m_db->allRecords(); | 53 | m_list = m_db->allRecords(); |
51 | } | 54 | } |
52 | OPimTodoAccess::List TodoManager::list() const{ | 55 | OPimTodoAccess::List TodoManager::list() const{ |
53 | return m_list; | 56 | return m_list; |
54 | } | 57 | } |
55 | OPimTodoAccess::List TodoManager::sorted( bool asc, int so, int f, int cat ) { | 58 | OPimTodoAccess::List TodoManager::sorted( bool asc, int so, int f, int cat ) { |