Diffstat (limited to 'libopie/pim/test/oevent_test.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/pim/test/oevent_test.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libopie/pim/test/oevent_test.cpp b/libopie/pim/test/oevent_test.cpp index 6f04995..247b83b 100644 --- a/libopie/pim/test/oevent_test.cpp +++ b/libopie/pim/test/oevent_test.cpp @@ -6,10 +6,10 @@ int main(int argc, char* argv ) { OEvent ev; - ev.setUid( 20 ); +// ev.setUid( 20 ); - ev.setDescription( "Foo" ); + ev.setDescription( "Foo Descsfewrf" ); OEvent ev2 = ev; - ev2.setDescription("Foo2"); + ev2.setDescription("Foo3"); qWarning("%s", ev2.description().latin1() ); qWarning("%s", ev.description().latin1() ); @@ -21,4 +21,5 @@ int main(int argc, char* argv ) { qWarning("%s", ev2.startDateTime().toString().latin1() ); qWarning("%s", ev2.startDateTimeInZone().toString().latin1() ); + qWarning("%d %d", ev.isAllDay(), ev2.isAllDay() ); ODateBookAccess acc; @@ -46,4 +47,7 @@ int main(int argc, char* argv ) { qWarning("Date: %s", ef.date().toString().latin1() ); } + ev.setUid( 1 ); + acc.add( ev ); + acc.save(); return 0; |