summaryrefslogtreecommitdiffstats
path: root/libkcal/tests/testincidencegenerator.h
blob: 5f2538284b8f57da980efec84999d50e7a8c74e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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