-rw-r--r-- | korganizer/koprefs.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 864cf1b..7d71cbd 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h @@ -28,2 +28,4 @@ #include <qdict.h> +#include <qdir.h> +#include <qobject.h> @@ -43,2 +45,25 @@ class QStringList; +class KopiCalendarFile : public QObject +{ + public: + KopiCalendarFile( ) : QObject( ) + { + isStandard = false; + isEnabled = true; + isAlarmEnabled = true; + isReadOnly = false; + mName = "Calendar"; + mFileName = QDir::homeDirPath() + "/icalfile.ics"; + mCalNumber = 0; + mDefaultColor = Qt::red; + } + bool isStandard; + bool isEnabled; + bool isAlarmEnabled; + bool isReadOnly; + QString mName; + QString mFileName; + int mCalNumber; + QColor mDefaultColor; +}; class KOPrefs : public KPimPrefs @@ -69,3 +94,5 @@ class KOPrefs : public KPimPrefs void setAllDefaults(); - + KopiCalendarFile * getNewCalendar(); + void deleteCalendar( int ); + QColor defaultColor( int ) const; protected: @@ -307,2 +334,4 @@ class KOPrefs : public KPimPrefs int mCurrentDisplayedView; + QPtrList<KopiCalendarFile> mCalendars; + int mNextAvailableCalendar; @@ -310,2 +339,3 @@ class KOPrefs : public KPimPrefs QDict<QColor> mCategoryColors; + QArray<KopiCalendarFile*> mDefCalColors; QColor mDefaultCategoryColor; |