resourcecalendar.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <kconfig.h>
00024 #include <kdebug.h>
00025
00026 #include "calendar.h"
00027
00028 #include "resourcecalendar.h"
00029
00030 using namespace KCal;
00031
00032 ResourceCalendar::ResourceCalendar( const KConfig *config )
00033 : KRES::Resource( config )
00034 {
00035 }
00036
00037 ResourceCalendar::~ResourceCalendar()
00038 {
00039 }
00040
00041 void ResourceCalendar::writeConfig( KConfig* config )
00042 {
00043 kdDebug() << "ResourceCalendar::writeConfig()" << endl;
00044
00045 KRES::Resource::writeConfig( config );
00046 }
00047
00048 bool ResourceCalendar::addIncidence( Incidence *incidence )
00049 {
00050 Incidence::AddVisitor<ResourceCalendar> v( this );
00051 return incidence->accept( v );
00052 }
00053
00054 Incidence::List ResourceCalendar::rawIncidences()
00055 {
00056 return Calendar::mergeIncidenceList( rawEvents(), rawTodos(), journals() );
00057 }
00058
00059 #include "resourcecalendar.moc"
This file is part of the documentation for libkcal Library Version 3.2.2.