Aspose.Tasks for C++
RecurringTaskInfo.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="RecurringTaskInfo.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 #include <system/enum_helpers.h>
10 #include <system/date_time.h>
11 
12 #include "aspose.tasks.cpp/Duration.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
14 
15 namespace Aspose
16 {
17 namespace Tasks
18 {
19 namespace IO
20 {
21 namespace Mpx
22 {
23 class MpxReader;
24 } // namespace Mpx
25 namespace MSProject
26 {
27 class MPPRecurringInfoReader;
28 } // namespace MSProject
29 } // namespace IO
30 enum class Month;
31 enum class OrdinalNumber;
32 enum class RecurrencePattern;
33 class RecurringTaskParameters;
34 class Task;
35 enum class WeekdayType;
36 } // namespace Tasks
37 } // namespace Aspose
38 namespace System
39 {
40 enum class DayOfWeek;
41 } // namespace System
42 
43 namespace Aspose {
44 
45 namespace Tasks {
46 
47 /// <summary>
48 /// Represents the details of a recurring task in a project.
49 /// </summary>
50 class ASPOSE_TASKS_SHARED_CLASS RecurringTaskInfo : public System::Object
51 {
53  typedef System::Object BaseType;
54 
55  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
57 
58  friend class Aspose::Tasks::IO::MSProject::MPPRecurringInfoReader;
59  friend class Aspose::Tasks::IO::Mpx::MpxReader;
61 
62 public:
63 
64  /// <summary>
65  /// Gets a recurrence pattern of the recurring task.
66  /// <remarks>Can be one of the values of <see cref="RecurrencePattern"></see> enumeration.</remarks>
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API Aspose::Tasks::RecurrencePattern get_RecurrencePattern() const;
69  /// <summary>
70  /// Sets a recurrence pattern of the recurring task.
71  /// <remarks>Can be one of the values of <see cref="RecurrencePattern"></see> enumeration.</remarks>
72  /// </summary>
73  ASPOSE_TASKS_SHARED_API void set_RecurrencePattern(Aspose::Tasks::RecurrencePattern value);
74  /// <summary>
75  /// Gets the date for the occurrences to begin.
76  /// </summary>
77  ASPOSE_TASKS_SHARED_API System::DateTime get_StartDate() const;
78  /// <summary>
79  /// Sets the date for the occurrences to begin.
80  /// </summary>
81  ASPOSE_TASKS_SHARED_API void set_StartDate(System::DateTime value);
82  /// <summary>
83  /// Gets the date for the occurrences to end.
84  /// </summary>
85  ASPOSE_TASKS_SHARED_API System::DateTime get_EndDate() const;
86  /// <summary>
87  /// Sets the date for the occurrences to end.
88  /// </summary>
89  ASPOSE_TASKS_SHARED_API void set_EndDate(System::DateTime value);
90  /// <summary>
91  /// Gets the duration for one occurrence of the recurring task.
92  /// <remarks>the instance of <see cref="Duration"></see> class.</remarks>
93  /// </summary>
94  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Duration get_Duration() const;
95  /// <summary>
96  /// Sets the duration for one occurrence of the recurring task.
97  /// <remarks>the instance of <see cref="Duration"></see> class.</remarks>
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API void set_Duration(Aspose::Tasks::Duration value);
100  /// <summary>
101  /// Gets a number of occurrences of the recurring task.
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API int32_t get_Occurrences() const;
104  /// <summary>
105  /// Sets a number of occurrences of the recurring task.
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API void set_Occurrences(int32_t value);
108  /// <summary>
109  /// Gets a value indicating whether to use the end date or a number of occurrences for the recurring task.
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API bool get_UseEndDate() const;
112  /// <summary>
113  /// Sets a value indicating whether to use the end date or a number of occurrences for the recurring task.
114  /// </summary>
115  ASPOSE_TASKS_SHARED_API void set_UseEndDate(bool value);
116  /// <summary>
117  /// Gets a number of repetitions for the daily recurrence pattern.
118  /// </summary>
119  ASPOSE_TASKS_SHARED_API int32_t get_DailyRepetitions() const;
120  /// <summary>
121  /// Sets a number of repetitions for the daily recurrence pattern.
122  /// </summary>
123  ASPOSE_TASKS_SHARED_API void set_DailyRepetitions(int32_t value);
124  /// <summary>
125  /// Gets a value indicating whether to use workdays for the daily recurrence pattern.
126  /// </summary>
127  ASPOSE_TASKS_SHARED_API bool get_DailyUseWorkdays() const;
128  /// <summary>
129  /// Sets a value indicating whether to use workdays for the daily recurrence pattern.
130  /// </summary>
131  ASPOSE_TASKS_SHARED_API void set_DailyUseWorkdays(bool value);
132  /// <summary>
133  /// Gets a number of repetitions for the weekly recurrence pattern.
134  /// </summary>
135  ASPOSE_TASKS_SHARED_API int32_t get_WeeklyRepetitions() const;
136  /// <summary>
137  /// Sets a number of repetitions for the weekly recurrence pattern.
138  /// </summary>
139  ASPOSE_TASKS_SHARED_API void set_WeeklyRepetitions(int32_t value);
140  /// <summary>
141  /// Gets a collection of days used in the weekly recurrence pattern.
142  /// <remarks></remarks>
143  /// </summary>
144  ASPOSE_TASKS_SHARED_API WeekdayType get_WeeklyDays() const;
145  /// <summary>
146  /// Sets a collection of days used in the weekly recurrence pattern.
147  /// <remarks></remarks>
148  /// </summary>
149  ASPOSE_TASKS_SHARED_API void set_WeeklyDays(WeekdayType value);
150  /// <summary>
151  /// Gets a value indicating whether to use ordinal day for the monthly recurrence pattern.
152  /// </summary>
153  ASPOSE_TASKS_SHARED_API bool get_MonthlyUseOrdinalDay() const;
154  /// <summary>
155  /// Sets a value indicating whether to use ordinal day for the monthly recurrence pattern.
156  /// </summary>
157  ASPOSE_TASKS_SHARED_API void set_MonthlyUseOrdinalDay(bool value);
158  /// <summary>
159  /// Gets an ordinal number of the monthly recurrence pattern.
160  /// <remarks>Can be one of the values of <see cref="OrdinalNumber"></see> enumeration.</remarks>
161  /// </summary>
162  ASPOSE_TASKS_SHARED_API OrdinalNumber get_MonthlyOrdinalNumber() const;
163  /// <summary>
164  /// Sets an ordinal number of the monthly recurrence pattern.
165  /// <remarks>Can be one of the values of <see cref="OrdinalNumber"></see> enumeration.</remarks>
166  /// </summary>
167  ASPOSE_TASKS_SHARED_API void set_MonthlyOrdinalNumber(OrdinalNumber value);
168  /// <summary>
169  /// Gets a day of the monthly recurrence pattern when using ordinal day.
170  /// <remarks>Can be one of the values of <see cref="DayOfWeek"></see> enumeration.</remarks>
171  /// </summary>
172  ASPOSE_TASKS_SHARED_API System::DayOfWeek get_MonthlyOrdinalDay() const;
173  /// <summary>
174  /// Sets a day of the monthly recurrence pattern when using ordinal day.
175  /// <remarks>Can be one of the values of <see cref="DayOfWeek"></see> enumeration.</remarks>
176  /// </summary>
177  ASPOSE_TASKS_SHARED_API void set_MonthlyOrdinalDay(System::DayOfWeek value);
178  /// <summary>
179  /// Gets a number of repetitions for the monthly recurrence pattern when using ordinal day.
180  /// </summary>
181  ASPOSE_TASKS_SHARED_API int32_t get_MonthlyOrdinalRepetitions() const;
182  /// <summary>
183  /// Sets a number of repetitions for the monthly recurrence pattern when using ordinal day.
184  /// </summary>
185  ASPOSE_TASKS_SHARED_API void set_MonthlyOrdinalRepetitions(int32_t value);
186  /// <summary>
187  /// Gets a number of day of the monthly recurrence pattern.
188  /// </summary>
189  ASPOSE_TASKS_SHARED_API int32_t get_MonthlyDay() const;
190  /// <summary>
191  /// Sets a number of day of the monthly recurrence pattern.
192  /// </summary>
193  ASPOSE_TASKS_SHARED_API void set_MonthlyDay(int32_t value);
194  /// <summary>
195  /// Gets a number of repetitions for the monthly recurrence pattern.
196  /// </summary>
197  ASPOSE_TASKS_SHARED_API int32_t get_MonthlyRepetitions() const;
198  /// <summary>
199  /// Sets a number of repetitions for the monthly recurrence pattern.
200  /// </summary>
201  ASPOSE_TASKS_SHARED_API void set_MonthlyRepetitions(int32_t value);
202  /// <summary>
203  /// Gets a value indicating whether to use ordinal day for the yearly recurrence pattern.
204  /// </summary>
205  ASPOSE_TASKS_SHARED_API bool get_YearlyUseOrdinalDay() const;
206  /// <summary>
207  /// Sets a value indicating whether to use ordinal day for the yearly recurrence pattern.
208  /// </summary>
209  ASPOSE_TASKS_SHARED_API void set_YearlyUseOrdinalDay(bool value);
210  /// <summary>
211  /// Gets a date for the yearly recurrence pattern.
212  /// </summary>
213  ASPOSE_TASKS_SHARED_API System::DateTime get_YearlyDate() const;
214  /// <summary>
215  /// Sets a date for the yearly recurrence pattern.
216  /// </summary>
217  ASPOSE_TASKS_SHARED_API void set_YearlyDate(System::DateTime value);
218  /// <summary>
219  /// Gets an ordinal number of the yearly recurrence pattern.
220  /// <remarks>Can be one of the values of <see cref="OrdinalNumber"></see> enumeration.</remarks>
221  /// </summary>
222  ASPOSE_TASKS_SHARED_API OrdinalNumber get_YearlyOrdinalNumber() const;
223  /// <summary>
224  /// Sets an ordinal number of the yearly recurrence pattern.
225  /// <remarks>Can be one of the values of <see cref="OrdinalNumber"></see> enumeration.</remarks>
226  /// </summary>
227  ASPOSE_TASKS_SHARED_API void set_YearlyOrdinalNumber(OrdinalNumber value);
228  /// <summary>
229  /// Gets a weekday of the yearly recurrence pattern when using ordinal day.
230  /// <remarks>Can be one of the values of <see cref="DayOfWeek"></see> enumeration.</remarks>
231  /// </summary>
232  ASPOSE_TASKS_SHARED_API System::DayOfWeek get_YearlyOrdinalDay() const;
233  /// <summary>
234  /// Sets a weekday of the yearly recurrence pattern when using ordinal day.
235  /// <remarks>Can be one of the values of <see cref="DayOfWeek"></see> enumeration.</remarks>
236  /// </summary>
237  ASPOSE_TASKS_SHARED_API void set_YearlyOrdinalDay(System::DayOfWeek value);
238  /// <summary>
239  /// Gets a month of the yearly recurrence pattern when using ordinal day.
240  /// <remarks>Can be one of the values of <see cref="Month"></see> enumeration.</remarks>
241  /// </summary>
242  ASPOSE_TASKS_SHARED_API Month get_YearlyOrdinalMonth() const;
243  /// <summary>
244  /// Sets a month of the yearly recurrence pattern when using ordinal day.
245  /// <remarks>Can be one of the values of <see cref="Month"></see> enumeration.</remarks>
246  /// </summary>
247  ASPOSE_TASKS_SHARED_API void set_YearlyOrdinalMonth(Month value);
248  /// <summary>
249  /// Gets the parent task of this instance of <see cref="RecurringTaskInfo"></see> class.
250  /// </summary>
251  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Task>& get_Task() const;
252 
253 protected:
254 
255  /// <summary>
256  /// Gets the parent task of this instance of <see cref="RecurringTaskInfo"></see> class.
257  /// </summary>
258  ASPOSE_TASKS_SHARED_API void set_Task(const System::SharedPtr<Aspose::Tasks::Task>& value);
259 
260  ASPOSE_TASKS_SHARED_API RecurringTaskInfo();
261 
262  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(RecurringTaskInfo, CODEPORTING_ARGS());
263  #ifdef ASPOSE_GET_SHARED_MEMBERS
264  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
265  #endif
266 
267 
268 private:
269 
270  Aspose::Tasks::RecurrencePattern pr_RecurrencePattern;
271  System::DateTime pr_StartDate;
272  System::DateTime pr_EndDate;
273  Aspose::Tasks::Duration pr_Duration;
274  int32_t pr_Occurrences;
275  bool pr_UseEndDate;
276  int32_t pr_DailyRepetitions;
277  bool pr_DailyUseWorkdays;
278  int32_t pr_WeeklyRepetitions;
279  WeekdayType pr_WeeklyDays;
280  bool pr_MonthlyUseOrdinalDay;
281  OrdinalNumber pr_MonthlyOrdinalNumber;
282  System::DayOfWeek pr_MonthlyOrdinalDay;
283  int32_t pr_MonthlyOrdinalRepetitions;
284  int32_t pr_MonthlyDay;
285  int32_t pr_MonthlyRepetitions;
286  bool pr_YearlyUseOrdinalDay;
287  System::DateTime pr_YearlyDate;
288  OrdinalNumber pr_YearlyOrdinalNumber;
289  System::DayOfWeek pr_YearlyOrdinalDay;
290  Month pr_YearlyOrdinalMonth;
291  System::WeakPtr<Aspose::Tasks::Task> pr_Task;
292 
293 };
294 
295 } // namespace Tasks
296 } // namespace Aspose
297 
298 
Represents duration in a project.
Definition: Duration.h:163
Represents the details of a recurring task in a project.
Definition: RecurringTaskInfo.h:51
OrdinalNumber get_YearlyOrdinalNumber() const
Gets an ordinal number of the yearly recurrence pattern.
bool get_UseEndDate() const
Gets a value indicating whether to use the end date or a number of occurrences for the recurring task...
void set_YearlyUseOrdinalDay(bool value)
Sets a value indicating whether to use ordinal day for the yearly recurrence pattern.
void set_MonthlyOrdinalDay(System::DayOfWeek value)
Sets a day of the monthly recurrence pattern when using ordinal day.
void set_MonthlyRepetitions(int32_t value)
Sets a number of repetitions for the monthly recurrence pattern.
void set_Duration(Aspose::Tasks::Duration value)
Sets the duration for one occurrence of the recurring task.
Aspose::Tasks::RecurrencePattern get_RecurrencePattern() const
Gets a recurrence pattern of the recurring task.
System::DateTime get_StartDate() const
Gets the date for the occurrences to begin.
int32_t get_MonthlyDay() const
Gets a number of day of the monthly recurrence pattern.
void set_YearlyOrdinalNumber(OrdinalNumber value)
Sets an ordinal number of the yearly recurrence pattern.
Aspose::Tasks::Duration get_Duration() const
Gets the duration for one occurrence of the recurring task.
WeekdayType get_WeeklyDays() const
Gets a collection of days used in the weekly recurrence pattern.
System::DateTime get_YearlyDate() const
Gets a date for the yearly recurrence pattern.
void set_WeeklyDays(WeekdayType value)
Sets a collection of days used in the weekly recurrence pattern.
bool get_MonthlyUseOrdinalDay() const
Gets a value indicating whether to use ordinal day for the monthly recurrence pattern.
int32_t get_WeeklyRepetitions() const
Gets a number of repetitions for the weekly recurrence pattern.
System::DayOfWeek get_MonthlyOrdinalDay() const
Gets a day of the monthly recurrence pattern when using ordinal day.
int32_t get_MonthlyOrdinalRepetitions() const
Gets a number of repetitions for the monthly recurrence pattern when using ordinal day.
const System::SharedPtr< Aspose::Tasks::Task > & get_Task() const
Gets the parent task of this instance of RecurringTaskInfo class.
void set_WeeklyRepetitions(int32_t value)
Sets a number of repetitions for the weekly recurrence pattern.
bool get_YearlyUseOrdinalDay() const
Gets a value indicating whether to use ordinal day for the yearly recurrence pattern.
void set_Occurrences(int32_t value)
Sets a number of occurrences of the recurring task.
void set_UseEndDate(bool value)
Sets a value indicating whether to use the end date or a number of occurrences for the recurring task...
int32_t get_Occurrences() const
Gets a number of occurrences of the recurring task.
void set_YearlyDate(System::DateTime value)
Sets a date for the yearly recurrence pattern.
void set_YearlyOrdinalDay(System::DayOfWeek value)
Sets a weekday of the yearly recurrence pattern when using ordinal day.
void set_MonthlyUseOrdinalDay(bool value)
Sets a value indicating whether to use ordinal day for the monthly recurrence pattern.
int32_t get_MonthlyRepetitions() const
Gets a number of repetitions for the monthly recurrence pattern.
void set_DailyRepetitions(int32_t value)
Sets a number of repetitions for the daily recurrence pattern.
void set_DailyUseWorkdays(bool value)
Sets a value indicating whether to use workdays for the daily recurrence pattern.
void set_EndDate(System::DateTime value)
Sets the date for the occurrences to end.
void set_YearlyOrdinalMonth(Month value)
Sets a month of the yearly recurrence pattern when using ordinal day.
void set_MonthlyOrdinalRepetitions(int32_t value)
Sets a number of repetitions for the monthly recurrence pattern when using ordinal day.
OrdinalNumber get_MonthlyOrdinalNumber() const
Gets an ordinal number of the monthly recurrence pattern.
bool get_DailyUseWorkdays() const
Gets a value indicating whether to use workdays for the daily recurrence pattern.
System::DayOfWeek get_YearlyOrdinalDay() const
Gets a weekday of the yearly recurrence pattern when using ordinal day.
Month get_YearlyOrdinalMonth() const
Gets a month of the yearly recurrence pattern when using ordinal day.
void set_RecurrencePattern(Aspose::Tasks::RecurrencePattern value)
Sets a recurrence pattern of the recurring task.
void set_MonthlyOrdinalNumber(OrdinalNumber value)
Sets an ordinal number of the monthly recurrence pattern.
void set_MonthlyDay(int32_t value)
Sets a number of day of the monthly recurrence pattern.
int32_t get_DailyRepetitions() const
Gets a number of repetitions for the daily recurrence pattern.
void set_StartDate(System::DateTime value)
Sets the date for the occurrences to begin.
System::DateTime get_EndDate() const
Gets the date for the occurrences to end.
Represents the set of parameters are used to create a recurring task in a project.
Definition: RecurringTaskParameters.h:49
Definition: Asn.h:13