diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-01 00:37:02 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-01 00:37:02 +0000 |
commit | cc29364f06178f8f6b457384f2ec37a042bd9d43 (patch) | |
tree | 7c77a3184c698bbf9d98cef09fb1ba8124daceba /korganizer/koincidenceeditor.h | |
parent | 4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff) | |
download | tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip |
* Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch
* Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed
* Added journal read support to the CalDAV resource
* Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koincidenceeditor.h')
-rw-r--r-- | korganizer/koincidenceeditor.h | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/korganizer/koincidenceeditor.h b/korganizer/koincidenceeditor.h index 35c4c45ba..91f22afdd 100644 --- a/korganizer/koincidenceeditor.h +++ b/korganizer/koincidenceeditor.h @@ -28,6 +28,7 @@ #include <kdialogbase.h> #include <kurl.h> +class TQDate; class TQDateTime; namespace KPIM { @@ -42,9 +43,10 @@ class KOEditorDetails; class KOAttendeeEditor; namespace KCal { -class Calendar; -class CalendarLocal; -class Incidence; + class Calendar; + class CalendarLocal; + class Incidence; + class ResourceCalendar; } using namespace KCal; using namespace KOrg; @@ -54,7 +56,7 @@ using namespace KOrg; */ class KOIncidenceEditor : public KDialogBase { - Q_OBJECT + Q_OBJECT public: /** Construct new IncidenceEditor. @@ -64,15 +66,31 @@ class KOIncidenceEditor : public KDialogBase virtual ~KOIncidenceEditor(); /** This incidence has been modified externally */ - virtual void modified (int /*change*/=0) {} + virtual void modified() {} virtual void reload() = 0; + virtual void setResource( ResourceCalendar *res, const TQString &subRes ); virtual void selectInvitationCounterProposal( bool enable ); + virtual void selectCreateTask( bool enable ); + + /** + This should be called when editing only one occurrence of a recurring incidence, + before showing the editor. + + It gives the editor a pointer to the original incidence, which contains all occurrences + and a pointer to the original incidence already dissociated from the event (mEvent). + + If the user presses ok/apply the changes made to the incAfterDissociation are commited + to the callendar through mChanger. + + If the user presses cancel we restore originalIncidence and all dissociations are discarded + */ + void setRecurringIncidence( Incidence *originalIncidence, Incidence *incAfterDissociation ); public slots: /** Edit an existing todo. */ - virtual void editIncidence(Incidence *, Calendar *) = 0; + virtual void editIncidence(Incidence *, const TQDate &, Calendar *) = 0; virtual void setIncidenceChanger( IncidenceChangerBase *changer ) { mChanger = changer; } /** Initialize editor. This function creates the tab widgets. */ @@ -88,7 +106,6 @@ class KOIncidenceEditor : public KDialogBase */ void addAttendees( const TQStringList &attendees ); - signals: void deleteAttendee( Incidence * ); @@ -153,7 +170,14 @@ class KOIncidenceEditor : public KDialogBase TQMap<TQWidget*, KPIM::DesignerFields*> mDesignerFieldForWidget; TQPtrList<TQWidget> mEmbeddedURLPages; TQPtrList<TQWidget> mAttachedDesignerFields; + ResourceCalendar *mResource; + TQString mSubResource; bool mIsCounter; + bool mIsCreateTask; + + Incidence *mRecurIncidence; + Incidence *mRecurIncidenceAfterDissoc; + }; #endif |