8 #include <system/string.h>
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 #include "aspose.tasks.cpp/Duration.h"
20 enum class OrdinalNumber;
22 enum class RecurrencePattern;
23 class RecurrencePatternBase;
24 class RecurrenceRangeBase;
25 class RecurringTaskBuilder;
26 class RecurringTaskInfo;
30 class RecurringTaskParametersValidator;
32 enum class WeekdayType;
51 typedef System::Object BaseType;
53 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
56 friend class Aspose::Tasks::Validators::RecurringTaskParametersValidator;
57 friend class RecurringTaskBuilder;
61 class TaskRecurringInfoBuilder :
public System::Object
63 typedef TaskRecurringInfoBuilder
ThisType;
64 typedef System::Object BaseType;
66 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
71 System::SharedPtr<RecurringTaskInfo> Build(
const System::SharedPtr<Task>& task,
const System::SharedPtr<RecurringTaskParameters>& parameters);
75 int32_t GetDailyRepetitions(
const System::SharedPtr<RecurrencePatternBase>& pattern);
76 System::DateTime GetFinishDate(
const System::SharedPtr<RecurrenceRangeBase>& rangeBase);
77 int32_t GetMonthlyDay(
const System::SharedPtr<RecurrencePatternBase>& pattern);
78 System::DayOfWeek GetMonthlyOrdinalDay(
const System::SharedPtr<RecurrencePatternBase>& pattern);
79 OrdinalNumber GetMonthlyOrdinalNumber(
const System::SharedPtr<RecurrencePatternBase>& pattern);
80 int32_t GetMonthlyOrdinalRepetitions(
const System::SharedPtr<RecurrencePatternBase>& pattern);
81 int32_t GetMonthlyRepetitions(
const System::SharedPtr<RecurrencePatternBase>& pattern);
82 int32_t GetOccurrences(
const System::SharedPtr<RecurrencePatternBase>& patternBase);
83 RecurrencePattern GetRecurrencePatternType(
const System::SharedPtr<RecurrencePatternBase>& pattern);
84 WeekdayType GetWeeklyDays(
const System::SharedPtr<RecurrencePatternBase>& pattern);
85 int32_t GetWeeklyRepetitions(
const System::SharedPtr<RecurrencePatternBase>& pattern);
86 System::DateTime GetYearlyDate(
const System::SharedPtr<RecurrencePatternBase>& pattern,
const System::SharedPtr<Task>& task);
87 System::DayOfWeek GetYearlyOrdinalDay(
const System::SharedPtr<RecurrencePatternBase>& pattern);
88 Month GetYearlyOrdinalMonth(
const System::SharedPtr<RecurrencePatternBase>& pattern);
89 OrdinalNumber GetYearlyOrdinalNumber(
const System::SharedPtr<RecurrencePatternBase>& pattern);
90 bool IsDailyUseWorkDays(
const System::SharedPtr<RecurrencePatternBase>& pattern);
91 bool IsMonthlyUseOrdinalDay(
const System::SharedPtr<RecurrencePatternBase>& pattern);
92 bool IsUseEndDate(
const System::SharedPtr<RecurrenceRangeBase>& recurrenceRange);
93 bool IsYearlyUseOrdinalDay(
const System::SharedPtr<RecurrencePatternBase>& pattern);
135 ASPOSE_TASKS_SHARED_API
void set_TaskName(
const System::String& value);
147 ASPOSE_TASKS_SHARED_API
void SetCalendar(
const System::SharedPtr<Project>& project,
const System::String& calendarName);
154 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::Calendar>& get_Calendar()
const;
156 ASPOSE_TASKS_SHARED_API
void EnsureInitializationIsDone();
157 ASPOSE_TASKS_SHARED_API System::SharedPtr<RecurringTaskInfo> GetRecurringInfo(
const System::SharedPtr<Task>& task);
161 #ifdef ASPOSE_GET_SHARED_MEMBERS
162 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
169 bool pr_IgnoreResourceCalendar;
170 System::SharedPtr<RecurrencePatternBase> pr_RecurrencePattern;
171 System::String pr_TaskName;
172 System::SharedPtr<Aspose::Tasks::Calendar> pr_Calendar;
177 ASPOSE_TASKS_SHARED_API
void set_Calendar(
const System::SharedPtr<Aspose::Tasks::Calendar>& value);
Represents duration in a project.
Definition: Duration.h:161
Represents the set of parameters are used to create a recurring task in a project.
Definition: RecurringTaskParameters.h:49
const System::SharedPtr< RecurrencePatternBase > & get_RecurrencePattern() const
Gets the recurrence pattern of the recurring task.
void SetCalendar(const System::SharedPtr< Project > &project, const System::String &calendarName)
Set a calendar for recurring task. The calendar is selected from project calendar collection.
void set_RecurrencePattern(const System::SharedPtr< RecurrencePatternBase > &value)
Sets the recurrence pattern of the recurring task.
void set_TaskName(const System::String &value)
Sets the name of the recurring task.
RecurringTaskParameters()
Initializes a new instance of the RecurringTaskParameters class.
Aspose::Tasks::Duration get_Duration() const
Gets the duration for one occurrence of the recurring task.
System::String get_TaskName() const
Gets the name of the recurring task.
void set_Duration(Aspose::Tasks::Duration value)
Sets the duration for one occurrence of the recurring task.
bool get_IgnoreResourceCalendar() const
Gets a value indicating whether to schedule the recurring task even if it does not happen when any re...
void set_IgnoreResourceCalendar(bool value)
Sets a value indicating whether to schedule the recurring task even if it does not happen when any re...
Aspose.
Definition: Asn.h:13