File indexing completed on 2024-04-21 03:52:40

0001 /*
0002   This file is part of the kcalcore library.
0003 
0004   SPDX-FileCopyrightText: 2004 Till Adam <adam@kde.org>
0005 
0006   SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef TESTINCIDENCEGENERATOR_H
0010 #define TESTINCIDENCEGENERATOR_H
0011 
0012 #include "../event.h"
0013 #include "../journal.h"
0014 #include "../todo.h"
0015 using namespace KCalendarCore;
0016 
0017 static Event *makeTestEvent()
0018 {
0019     Event *event = new Event();
0020     event->setSummary("Test Event");
0021     event->recurrence()->setDaily(2);
0022     event->recurrence()->setDuration(3);
0023     return event;
0024 }
0025 
0026 static Todo *makeTestTodo()
0027 {
0028     Todo *todo = new Todo();
0029     todo->setSummary("Test Todo");
0030     todo->setPriority(5);
0031     return todo;
0032 }
0033 
0034 static Journal *makeTestJournal()
0035 {
0036     Journal *journal = new Journal();
0037     journal->setSummary("Test Journal");
0038     return journal;
0039 }
0040 
0041 #endif