ksync Library API Documentation

calendarsyncee.h

00001 #ifndef CALENDARSYNCEE_H
00002 #define CALENDARSYNCEE_H
00003 // $Id: calendarsyncee.h,v 1.3 2002/07/28 17:27:55 cschumac Exp $
00004 
00005 #include <calendarlocal.h>
00006 
00007 #include "ksyncer.h"
00008 
00009 using namespace KCal;
00010 
00011 class CalendarSyncEntry : public KSyncEntry
00012 {
00013   public:
00014     CalendarSyncEntry(Incidence *);
00015   
00016     QString name();
00017     QString id();
00018     QString timestamp();
00019     
00020     bool equals(KSyncEntry *entry);
00021 
00022     Incidence *incidence() { return mIncidence; }
00023 
00024   private:
00025     Incidence *mIncidence;
00026 };
00027 
00032 class CalendarSyncee : public KSyncee
00033 {
00034   public:
00035     CalendarSyncee();
00036     ~CalendarSyncee();
00037   
00038     CalendarSyncEntry *firstEntry();
00039     CalendarSyncEntry *nextEntry();
00040     
00041 //    CalendarSyncEntry *findEntry(const QString &id);
00042 
00043     void addEntry(KSyncEntry *);
00044     void removeEntry(KSyncEntry *);
00045 
00046     bool read();
00047     bool write();
00048 
00049   private:
00050     CalendarSyncEntry *createEntry(Incidence *);
00051   
00052     CalendarLocal *mCalendar;
00053     QPtrList<Event> mEvents;
00054     Event *mCurrentEvent;
00055     
00056     QPtrList<CalendarSyncEntry> mEntries;
00057 };
00058 
00059 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:17 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001