calformat.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCAL_CALFORMAT_H
00022 #define KCAL_CALFORMAT_H
00023
00024 #include <qstring.h>
00025 #include <qdatetime.h>
00026 #include <qevent.h>
00027
00028 #include "exceptions.h"
00029 #include "event.h"
00030
00031 namespace KCal {
00032
00033 class VCalDrag;
00034 class Calendar;
00035
00042 class CalFormat
00043 {
00044 public:
00046 CalFormat();
00048 virtual ~CalFormat();
00049
00055 virtual bool load(Calendar *, const QString &fileName) = 0;
00060 virtual bool save(Calendar *, const QString &fileName) = 0;
00061
00065 virtual bool fromString(Calendar *, const QString & ) = 0;
00069 virtual QString toString(Calendar *) = 0;
00070
00072 void clearException();
00077 ErrorFormat *exception();
00078
00082 static void setApplication(const QString& app, const QString& productID);
00084 static const QString& application() { return mApplication; }
00086 static const QString& productId() { return mProductId; }
00088 static int calendarVersion(const char* prodId);
00090 const QString &loadedProductId() { return mLoadedProductId; }
00091
00093 static QString createUniqueId();
00094
00099 void setException(ErrorFormat *error);
00100
00101 protected:
00102 QString mLoadedProductId;
00103
00104 private:
00105 ErrorFormat *mException;
00106
00107 static QString mApplication;
00108 static QString mProductId;
00109
00110 class Private;
00111 Private *d;
00112 };
00113
00114 }
00115
00116 #endif
This file is part of the documentation for libkcal Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 26 23:23:07 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003