From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/tests/testincidencegenerator.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libkcal/tests/testincidencegenerator.h (limited to 'libkcal/tests/testincidencegenerator.h') diff --git a/libkcal/tests/testincidencegenerator.h b/libkcal/tests/testincidencegenerator.h new file mode 100644 index 000000000..5f2538284 --- /dev/null +++ b/libkcal/tests/testincidencegenerator.h @@ -0,0 +1,34 @@ +#ifndef TESTINCIDENCEGENERATOR +#define TESTINCIDENCEGENERATOR + +#include "event.h" +#include "todo.h" +#include "journal.h" +using namespace KCal; + +static Event* makeTestEvent() +{ + Event *event = new Event(); + event->setSummary("Test Event"); + event->recurrence()->setDaily( 2 ); + event->recurrence()->setDuration( 3 ); + return event; +} + +static Todo* makeTestTodo() +{ + Todo *todo = new Todo(); + todo->setSummary("Test Todo"); + todo->setPriority( 5 ); + return todo; +} + +static Journal* makeTestJournal() +{ + Journal *journal = new Journal(); + journal->setSummary("Test Journal"); + return journal; +} + + +#endif -- cgit v1.2.1