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 
This is the main "calendar" object class.
Definition: calendar.h:171
This class provides the base class common to all calendar components.
Definition: incidence.h:48
This class provides the interfaces for a calendar resource.
ResourceCalendar * incResourceCalendar(Calendar *calendar, Incidence *incidence)
Returns the ResourceCalendar where the Incidence is stored, if any.
Definition: calhelper.cpp:139
bool isMyKolabIncidence(Calendar *calendar, Incidence *incidence)
Determine if the specified incidence is likely a Kolab incidence owned by the the user.
Definition: calhelper.cpp:37
bool usingGroupware(Calendar *calendar)
Determines if the Calendar is using a Groupware resource type.
Definition: calhelper.cpp:82
TQPair< ResourceCalendar *, TQString > incSubResourceCalendar(Calendar *calendar, Incidence *incidence)
Returns the (ResourceCalendar, SubResourceCalendar) pair where the Incidence is stored,...
Definition: calhelper.cpp:149
bool isMyCalendarIncidence(Calendar *calendar, Incidence *incidence)
Determine if the specified incidence is likely owned by the the user, independent of the Resource typ...
Definition: calhelper.cpp:55
Incidence * findMyCalendarIncidenceByUid(Calendar *calendar, const TQString &uid)
Searches for the specified Incidence by UID, returning an Incidence pointer if and only if the found ...
Definition: calhelper.cpp:60
bool hasMyWritableEventsFolders(const TQString &family)
Determines if the Calendar has any writable folders with Events content that are owned by me.
Definition: calhelper.cpp:100
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38