2
Copyright (c) 2010-2011 Sérgio Martins <iamsergio@gmail.com>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
#ifndef CALENDARBASE_TEST_H_
21
#define CALENDARBASE_TEST_H_
23
#include <akonadi/collection.h>
24
#include <akonadi/item.h>
27
#include <QTestEventLoop>
28
#include <QtCore/QObject>
29
#include <QStringList>
35
class CalendarBaseTest : public QObject
39
void handleCreateFinished(bool success, const QString &errorString);
40
void handleDeleteFinished(bool success, const QString &errorString);
44
void cleanupTestCase();
47
void testChildIncidences_data();
48
void testChildIncidences();
50
// void testDeleteAll(); This has been disabled in KCalCore::Calendar::deleteAll*() so no need to test
53
void fetchCollection();
54
void createInitialIncidences();
55
Akonadi::Item::Id createTodo(const QString &uid, const QString &parentUid = QString());
57
Akonadi::Collection mCollection;
58
Akonadi::CalendarBase *mCalendar;
59
bool mExpectedSlotResult;
63
QString mOneJournalUid;
64
QString mOneIncidenceUid;