summaryrefslogtreecommitdiff
path: root/libopie/pim/test
authorzecke <zecke>2003-02-22 16:33:34 (UTC)
committer zecke <zecke>2003-02-22 16:33:34 (UTC)
commit2424bcd292444b3a03c9b92dbc7f5b392c355755 (patch) (unidiff)
tree7f909f39bce8ba8501d07dc6ff238ae7918fc8de /libopie/pim/test
parent66b00525256255290dfcd9d48ebe1539f15b8dce (diff)
downloadopie-2424bcd292444b3a03c9b92dbc7f5b392c355755.zip
opie-2424bcd292444b3a03c9b92dbc7f5b392c355755.tar.gz
opie-2424bcd292444b3a03c9b92dbc7f5b392c355755.tar.bz2
fixx off by one in reading
Diffstat (limited to 'libopie/pim/test') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/test/oevent_test.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/libopie/pim/test/oevent_test.cpp b/libopie/pim/test/oevent_test.cpp
index 247b83b..d83ee0b 100644
--- a/libopie/pim/test/oevent_test.cpp
+++ b/libopie/pim/test/oevent_test.cpp
@@ -4,24 +4,6 @@
4#include "../odatebookaccess.h" 4#include "../odatebookaccess.h"
5 5
6int main(int argc, char* argv ) { 6int main(int argc, char* argv ) {
7 OEvent ev;
8// ev.setUid( 20 );
9
10 ev.setDescription( "Foo Descsfewrf" );
11
12 OEvent ev2 = ev;
13 ev2.setDescription("Foo3");
14 qWarning("%s", ev2.description().latin1() );
15 qWarning("%s", ev.description().latin1() );
16
17 QDateTime time = QDateTime::currentDateTime();
18 ev2.setStartDateTime( time );
19 ev2.setTimeZone( "Europe/London" );
20
21 qWarning("%s", ev2.startDateTime().toString().latin1() );
22 qWarning("%s", ev2.startDateTimeInZone().toString().latin1() );
23 qWarning("%d %d", ev.isAllDay(), ev2.isAllDay() );
24
25 ODateBookAccess acc; 7 ODateBookAccess acc;
26 if(!acc.load() ) qWarning("could not load"); 8 if(!acc.load() ) qWarning("could not load");
27 9
@@ -46,9 +28,6 @@ int main(int argc, char* argv ) {
46 qWarning("Summary: %s", ef.description().latin1() ); 28 qWarning("Summary: %s", ef.description().latin1() );
47 qWarning("Date: %s", ef.date().toString().latin1() ); 29 qWarning("Date: %s", ef.date().toString().latin1() );
48 } 30 }
49 ev.setUid( 1 );
50 acc.add( ev );
51 acc.save();
52 31
53 return 0; 32 return 0;
54} 33}