1/*
2 This file is part of the kcalcore library.
3
4 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
5 Contact: Alvaro Manera <alvaro.manera@nokia.com>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22#ifndef KCALCORE_SORTING_P_H
23#define KCALCORE_SORTING_P_H
24
25#include "event.h"
26#include "journal.h"
27#include "todo.h"
28#include "freebusy.h"
29#include "person.h"
30
31#include "kcalcore_export.h"
32
33namespace KCalCore {
34
35namespace Events {
36
37KCALCORE_EXPORT bool startDateLessThan(const Event::Ptr &e1, const Event::Ptr &e2);
38
39KCALCORE_EXPORT bool summaryLessThan(const Event::Ptr &e1, const Event::Ptr &e2);
40
41KCALCORE_EXPORT bool summaryMoreThan(const Event::Ptr &e1, const Event::Ptr &e2);
42
43KCALCORE_EXPORT bool startDateMoreThan(const Event::Ptr &e1, const Event::Ptr &e2);
44
45KCALCORE_EXPORT bool endDateLessThan(const Event::Ptr &e1, const Event::Ptr &e2);
46
47KCALCORE_EXPORT bool endDateMoreThan(const Event::Ptr &e1, const Event::Ptr &e2);
48
49}
50
51namespace Todos {
52
53KCALCORE_EXPORT bool startDateLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
54
55KCALCORE_EXPORT bool startDateMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
56
57KCALCORE_EXPORT bool dueDateLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
58
59KCALCORE_EXPORT bool dueDateMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
60
61KCALCORE_EXPORT bool priorityLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
62
63KCALCORE_EXPORT bool priorityMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
64
65KCALCORE_EXPORT bool percentLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
66
67KCALCORE_EXPORT bool percentMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
68
69KCALCORE_EXPORT bool summaryLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
70
71KCALCORE_EXPORT bool summaryMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
72
73KCALCORE_EXPORT bool createdLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
74
75KCALCORE_EXPORT bool createdMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2);
76
77}
78
79namespace Journals {
80
81KCALCORE_EXPORT bool dateLessThan(const Journal::Ptr &j1, const Journal::Ptr &j2);
82
83KCALCORE_EXPORT bool dateMoreThan(const Journal::Ptr &j1, const Journal::Ptr &j2);
84
85KCALCORE_EXPORT bool summaryLessThan(const Journal::Ptr &j1, const Journal::Ptr &j2);
86
87KCALCORE_EXPORT bool summaryMoreThan(const Journal::Ptr &j1, const Journal::Ptr &j2);
88
89}
90
91namespace Incidences {
92
93KCALCORE_EXPORT bool dateLessThan(const Incidence::Ptr &i1,
94 const Incidence::Ptr &i2);
95
96KCALCORE_EXPORT bool dateMoreThan(const Incidence::Ptr &i1,
97 const Incidence::Ptr &i2);
98
99KCALCORE_EXPORT bool createdLessThan(const Incidence::Ptr &i1,
100 const Incidence::Ptr &i2);
101
102KCALCORE_EXPORT bool createdMoreThan(const Incidence::Ptr &i1,
103 const Incidence::Ptr &i2);
104
105KCALCORE_EXPORT bool summaryLessThan(const Incidence::Ptr &i1,
106 const Incidence::Ptr &i2);
107
108KCALCORE_EXPORT bool summaryMoreThan(const Incidence::Ptr &i1,
109 const Incidence::Ptr &i2);
110
111}
112
113namespace Persons {
114KCALCORE_EXPORT bool countMoreThan(const Person::Ptr &p1, const Person::Ptr &p2);
115}
116
117}
118
119#endif
120