-rw-r--r-- | korganizer/calendarview.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index 8d329a9..751b8d9 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h @@ -42,6 +42,8 @@ #include <korganizer/calendarviewbase.h> +#include <ksyncmanager.h> + class QWidgetStack; class QSplitter; @@ -77,7 +79,7 @@ using namespace KCal; @short main calendar view widget @author Cornelius Schumacher */ -class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer +class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer, public KSyncInterface { Q_OBJECT public: @@ -460,8 +462,12 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser public: // show a standard warning // returns KMsgBox::yesNoCancel() - int msgCalModified(); + int msgCalModified(); + virtual bool sync(KSyncManager* manager, QString filename, int mode); + + virtual bool syncExternal(KSyncManager* manager, QString resource); void confSync(); + void setSyncManager(KSyncManager* manager); void setLoadedFileVersion(QDateTime); bool checkFileVersion(QString fn); bool checkFileChanged(QString fn); @@ -484,6 +490,7 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser Todo *selectedTodo(); private: + KSyncManager* mSyncManager; AlarmDialog * mAlarmDialog; QString mAlarmNotification; QString mSuspendAlarmNotification; |