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 | |
33 | namespace KCalCore { |
34 | |
35 | namespace Events { |
36 | |
37 | KCALCORE_EXPORT bool startDateLessThan(const Event::Ptr &e1, const Event::Ptr &e2); |
38 | |
39 | KCALCORE_EXPORT bool summaryLessThan(const Event::Ptr &e1, const Event::Ptr &e2); |
40 | |
41 | KCALCORE_EXPORT bool summaryMoreThan(const Event::Ptr &e1, const Event::Ptr &e2); |
42 | |
43 | KCALCORE_EXPORT bool startDateMoreThan(const Event::Ptr &e1, const Event::Ptr &e2); |
44 | |
45 | KCALCORE_EXPORT bool endDateLessThan(const Event::Ptr &e1, const Event::Ptr &e2); |
46 | |
47 | KCALCORE_EXPORT bool endDateMoreThan(const Event::Ptr &e1, const Event::Ptr &e2); |
48 | |
49 | } |
50 | |
51 | namespace Todos { |
52 | |
53 | KCALCORE_EXPORT bool startDateLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
54 | |
55 | KCALCORE_EXPORT bool startDateMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
56 | |
57 | KCALCORE_EXPORT bool dueDateLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
58 | |
59 | KCALCORE_EXPORT bool dueDateMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
60 | |
61 | KCALCORE_EXPORT bool priorityLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
62 | |
63 | KCALCORE_EXPORT bool priorityMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
64 | |
65 | KCALCORE_EXPORT bool percentLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
66 | |
67 | KCALCORE_EXPORT bool percentMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
68 | |
69 | KCALCORE_EXPORT bool summaryLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
70 | |
71 | KCALCORE_EXPORT bool summaryMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
72 | |
73 | KCALCORE_EXPORT bool createdLessThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
74 | |
75 | KCALCORE_EXPORT bool createdMoreThan(const Todo::Ptr &t1, const Todo::Ptr &t2); |
76 | |
77 | } |
78 | |
79 | namespace Journals { |
80 | |
81 | KCALCORE_EXPORT bool dateLessThan(const Journal::Ptr &j1, const Journal::Ptr &j2); |
82 | |
83 | KCALCORE_EXPORT bool dateMoreThan(const Journal::Ptr &j1, const Journal::Ptr &j2); |
84 | |
85 | KCALCORE_EXPORT bool summaryLessThan(const Journal::Ptr &j1, const Journal::Ptr &j2); |
86 | |
87 | KCALCORE_EXPORT bool summaryMoreThan(const Journal::Ptr &j1, const Journal::Ptr &j2); |
88 | |
89 | } |
90 | |
91 | namespace Incidences { |
92 | |
93 | KCALCORE_EXPORT bool dateLessThan(const Incidence::Ptr &i1, |
94 | const Incidence::Ptr &i2); |
95 | |
96 | KCALCORE_EXPORT bool dateMoreThan(const Incidence::Ptr &i1, |
97 | const Incidence::Ptr &i2); |
98 | |
99 | KCALCORE_EXPORT bool createdLessThan(const Incidence::Ptr &i1, |
100 | const Incidence::Ptr &i2); |
101 | |
102 | KCALCORE_EXPORT bool createdMoreThan(const Incidence::Ptr &i1, |
103 | const Incidence::Ptr &i2); |
104 | |
105 | KCALCORE_EXPORT bool summaryLessThan(const Incidence::Ptr &i1, |
106 | const Incidence::Ptr &i2); |
107 | |
108 | KCALCORE_EXPORT bool summaryMoreThan(const Incidence::Ptr &i1, |
109 | const Incidence::Ptr &i2); |
110 | |
111 | } |
112 | |
113 | namespace Persons { |
114 | KCALCORE_EXPORT bool countMoreThan(const Person::Ptr &p1, const Person::Ptr &p2); |
115 | } |
116 | |
117 | } |
118 | |
119 | #endif |
120 | |