libkcal

calhelper.h
Go to the documentation of this file.
1 /*
2  This file is part of libkcal.
3 
4  Copyright (c) 2009-2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
29 #ifndef KCAL_CALHELPER_H
30 #define KCAL_CALHELPER_H
31 
32 class TQString;
33 #include <tqpair.h>
34 
35 namespace KCal {
36 class Calendar;
37 class Incidence;
38 class ResourceCalendar;
39 
44 namespace CalHelper {
45 
56  bool isMyKolabIncidence( Calendar *calendar, Incidence *incidence );
57 
68  bool isMyCalendarIncidence( Calendar *calendar, Incidence *incidence );
69 
80  Incidence *findMyCalendarIncidenceByUid( Calendar *calendar, const TQString &uid );
81 
90  bool usingGroupware( Calendar *calendar );
91 
100  bool hasMyWritableEventsFolders( const TQString &family );
101 
111  ResourceCalendar *incResourceCalendar( Calendar *calendar, Incidence *incidence );
112 
127  TQPair<ResourceCalendar *, TQString> incSubResourceCalendar( Calendar *calendar,
128  Incidence *incidence );
129 
130 }
131 
132 }
133 
134 #endif
135