00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef RECURRENCEACTIONS_H
00024 #define RECURRENCEACTIONS_H
00025
00026 #include "kcalutils_export.h"
00027
00028 #include <kcalcore/incidence.h>
00029
00030 class KDateTime;
00031 class KGuiItem;
00032 class QWidget;
00033
00034 namespace KCalUtils
00035 {
00036
00047 namespace RecurrenceActions
00048 {
00054 enum Scope {
00058 NoOccurrence = 0,
00059
00063 SelectedOccurrence = 1,
00064
00068 PastOccurrences = 2,
00069
00073 FutureOccurrences = 4,
00074
00078 AllOccurrences = PastOccurrences | SelectedOccurrence | FutureOccurrences
00079 };
00080
00093 KCALUTILS_EXPORT
00094 int availableOccurrences( const KCalCore::Incidence::Ptr &incidence,
00095 const KDateTime &selectedOccurrence );
00096
00115 KCALUTILS_EXPORT int questionMultipleChoice( const KDateTime &selectedOccurrence,
00116 const QString &message, const QString &caption,
00117 const KGuiItem &action, int availableChoices,
00118 int preselectedChoices, QWidget *parent );
00119
00135 KCALUTILS_EXPORT
00136 int questionSelectedAllCancel( const QString &message, const QString &caption,
00137 const KGuiItem &actionSelected, const KGuiItem &actionAll,
00138 QWidget *parent );
00139
00164 KCALUTILS_EXPORT
00165 int questionSelectedFutureAllCancel( const QString &message, const QString &caption,
00166 const KGuiItem &actionSelected,
00167 const KGuiItem &actionFuture,
00168 const KGuiItem &actionAll,
00169 QWidget *parent );
00170 }
00171
00172 }
00173
00174 #endif
00175
00176