author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/calfilter.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/calfilter.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libkcal/calfilter.h b/libkcal/calfilter.h index e349770..821149f 100644 --- a/libkcal/calfilter.h +++ b/libkcal/calfilter.h | |||
@@ -9,74 +9,74 @@ | |||
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef _CALFILTER_H | 21 | #ifndef _CALFILTER_H |
22 | #define _CALFILTER_H | 22 | #define _CALFILTER_H |
23 | 23 | ||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qptrlist.h> | 25 | #include <q3ptrlist.h> |
26 | 26 | ||
27 | #include "event.h" | 27 | #include "event.h" |
28 | #include "todo.h" | 28 | #include "todo.h" |
29 | #include "journal.h" | 29 | #include "journal.h" |
30 | 30 | ||
31 | namespace KCal { | 31 | namespace KCal { |
32 | 32 | ||
33 | /** | 33 | /** |
34 | Filter for calendar objects. | 34 | Filter for calendar objects. |
35 | */ | 35 | */ |
36 | class CalFilter { | 36 | class CalFilter { |
37 | public: | 37 | public: |
38 | /** Construct filter. */ | 38 | /** Construct filter. */ |
39 | CalFilter(); | 39 | CalFilter(); |
40 | /** Construct filter with name */ | 40 | /** Construct filter with name */ |
41 | CalFilter(const QString &name); | 41 | CalFilter(const QString &name); |
42 | /** Destruct filter. */ | 42 | /** Destruct filter. */ |
43 | ~CalFilter(); | 43 | ~CalFilter(); |
44 | 44 | ||
45 | /** | 45 | /** |
46 | Set name of filter. | 46 | Set name of filter. |
47 | */ | 47 | */ |
48 | void setName(const QString &name) { mName = name; } | 48 | void setName(const QString &name) { mName = name; } |
49 | /** | 49 | /** |
50 | Return name of filter. | 50 | Return name of filter. |
51 | */ | 51 | */ |
52 | QString name() const { return mName; } | 52 | QString name() const { return mName; } |
53 | 53 | ||
54 | /** | 54 | /** |
55 | Apply filter to eventlist, all events not matching filter criterias are | 55 | Apply filter to eventlist, all events not matching filter criterias are |
56 | removed from the list. | 56 | removed from the list. |
57 | */ | 57 | */ |
58 | void apply(QPtrList<Event> *eventlist); | 58 | void apply(Q3PtrList<Event> *eventlist); |
59 | 59 | ||
60 | /** | 60 | /** |
61 | Apply filter to todolist, all todos not matching filter criterias are | 61 | Apply filter to todolist, all todos not matching filter criterias are |
62 | removed from the list. | 62 | removed from the list. |
63 | */ | 63 | */ |
64 | void apply(QPtrList<Todo> *todolist); | 64 | void apply(Q3PtrList<Todo> *todolist); |
65 | bool CalFilter::filterCalendarItem(Incidence *in); | 65 | bool filterCalendarItem(Incidence *in); |
66 | bool CalFilter::filterJournal(Journal *in); | 66 | bool filterJournal(Journal *in); |
67 | /** | 67 | /** |
68 | Apply filter criteria on the specified event. Return true, if event passes | 68 | Apply filter criteria on the specified event. Return true, if event passes |
69 | criteria, otherwise return false. | 69 | criteria, otherwise return false. |
70 | */ | 70 | */ |
71 | bool filterEvent(Event *); | 71 | bool filterEvent(Event *); |
72 | 72 | ||
73 | /** | 73 | /** |
74 | Apply filter criteria on the specified todo. Return true, if event passes | 74 | Apply filter criteria on the specified todo. Return true, if event passes |
75 | criteria, otherwise return false. | 75 | criteria, otherwise return false. |
76 | */ | 76 | */ |
77 | bool filterTodo(Todo *); | 77 | bool filterTodo(Todo *); |
78 | 78 | ||
79 | /** | 79 | /** |
80 | Apply filter criteria on the specified incidence. Return true, if event passes | 80 | Apply filter criteria on the specified incidence. Return true, if event passes |
81 | criteria, otherwise return false. | 81 | criteria, otherwise return false. |
82 | */ | 82 | */ |