summaryrefslogtreecommitdiff
path: root/core/pim
authorsimon <simon>2002-04-30 14:27:27 (UTC)
committer simon <simon>2002-04-30 14:27:27 (UTC)
commit972fbb128294c821ff0f13ea59a83edb015d571e (patch) (unidiff)
tree29d5de901e2e6c679d4cc76286e3e6e77a49b297 /core/pim
parent5dae945f8ec25a811efb10eb71d606ce8da4429f (diff)
downloadopie-972fbb128294c821ff0f13ea59a83edb015d571e.zip
opie-972fbb128294c821ff0f13ea59a83edb015d571e.tar.gz
opie-972fbb128294c821ff0f13ea59a83edb015d571e.tar.bz2
- XMLTree is in the Opie namespace now
Diffstat (limited to 'core/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todotable.cpp2
-rw-r--r--core/pim/todo/todotable.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp
index 208a084..2389cdd 100644
--- a/core/pim/todo/todotable.cpp
+++ b/core/pim/todo/todotable.cpp
@@ -36,24 +36,26 @@
36#include <qdatetime.h> 36#include <qdatetime.h>
37#include <qtextstream.h> 37#include <qtextstream.h>
38 38
39#include <qcursor.h> 39#include <qcursor.h>
40#include <qregexp.h> 40#include <qregexp.h>
41 41
42#include <errno.h> 42#include <errno.h>
43#include <stdlib.h> 43#include <stdlib.h>
44 44
45#include <stdio.h> 45#include <stdio.h>
46#include <iostream> 46#include <iostream>
47 47
48using namespace Opie;
49
48namespace { 50namespace {
49 51
50 static bool taskCompare( const ToDoEvent &task, const QRegExp &r, int category ); 52 static bool taskCompare( const ToDoEvent &task, const QRegExp &r, int category );
51 static QString journalFileName(); 53 static QString journalFileName();
52 static ToDoEvent xmlToEvent( XMLElement *ev ); 54 static ToDoEvent xmlToEvent( XMLElement *ev );
53} 55}
54CheckItem::CheckItem( QTable *t, const QString &key ) 56CheckItem::CheckItem( QTable *t, const QString &key )
55 : QTableItem( t, Never, "" ), checked( FALSE ), sortKey( key ) 57 : QTableItem( t, Never, "" ), checked( FALSE ), sortKey( key )
56{ 58{
57} 59}
58 60
59QString CheckItem::key() const 61QString CheckItem::key() const
diff --git a/core/pim/todo/todotable.h b/core/pim/todo/todotable.h
index 2f6e635..7672f21 100644
--- a/core/pim/todo/todotable.h
+++ b/core/pim/todo/todotable.h
@@ -85,25 +85,29 @@ class DueTextItem : public QTableItem
85 void setToDoEvent( const ToDoEvent *ev ); 85 void setToDoEvent( const ToDoEvent *ev );
86 void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); 86 void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected );
87 private: 87 private:
88 int m_off; 88 int m_off;
89 bool m_hasDate:1; 89 bool m_hasDate:1;
90 bool m_completed:1; 90 bool m_completed:1;
91 91
92}; 92};
93 93
94 94
95enum journal_action { ACTION_ADD=0, ACTION_REMOVE, ACTION_REPLACE }; 95enum journal_action { ACTION_ADD=0, ACTION_REMOVE, ACTION_REPLACE };
96 96
97namespace Opie
98{
97class XMLElement; 99class XMLElement;
100};
101
98class TodoTable : public QTable 102class TodoTable : public QTable
99{ 103{
100 Q_OBJECT 104 Q_OBJECT
101 105
102public: 106public:
103 TodoTable( QWidget *parent = 0, const char * name = 0 ); 107 TodoTable( QWidget *parent = 0, const char * name = 0 );
104 void addEntry( const ToDoEvent &todo ); 108 void addEntry( const ToDoEvent &todo );
105 void clearFindRow() { currFindRow = -2; } 109 void clearFindRow() { currFindRow = -2; }
106 110
107 ToDoEvent currentEntry() const; 111 ToDoEvent currentEntry() const;
108 void replaceCurrentEntry( const ToDoEvent &todo, bool fromTableItem = false ); 112 void replaceCurrentEntry( const ToDoEvent &todo, bool fromTableItem = false );
109 113