Aspose.Tasks for C++
ProjectServerSaveOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ProjectServerSaveOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/timespan.h>
9 #include <system/string.h>
10 #include <system/guid.h>
11 
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 class ProjectServerManager;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 /// <summary>
27 /// Allows to specify additional options when project is saved to Project Server or Project Online.
28 /// </summary>
29 class ASPOSE_TASKS_SHARED_CLASS ProjectServerSaveOptions final : public System::Object
30 {
32  typedef System::Object BaseType;
33 
34  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
36 
38 
39 public:
40 
41  /// <summary>
42  /// Gets name of a project which is displayed in Project Server \ Project Online projects list. Should be unique within Project Server \ Project Online instance.
43  /// Is the value is omitted, the value of Prj.Name property will be used instead.
44  /// </summary>
45  ASPOSE_TASKS_SHARED_API System::String get_ProjectName() const;
46  /// <summary>
47  /// Sets name of a project which is displayed in Project Server \ Project Online projects list. Should be unique within Project Server \ Project Online instance.
48  /// Is the value is omitted, the value of Prj.Name property will be used instead.
49  /// </summary>
50  ASPOSE_TASKS_SHARED_API void set_ProjectName(const System::String& value);
51  /// <summary>
52  /// Gets unique identifier of a project. Should be unique within Project Server \ Project Online instance.
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API System::Guid get_ProjectGuid() const;
55  /// <summary>
56  /// Sets unique identifier of a project. Should be unique within Project Server \ Project Online instance.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API void set_ProjectGuid(System::Guid value);
59  /// <summary>
60  /// Gets timeout used when waiting for processing of save project request by a Project Server's queue processing service. The default value for this property is 1 minute.
61  /// </summary>
62  /// <remarks>
63  /// The processing time may be longer for large projects or in case when Project Server instance is too busy responding to other requests.
64  /// </remarks>
65  ASPOSE_TASKS_SHARED_API System::TimeSpan get_Timeout() const;
66  /// <summary>
67  /// Sets timeout used when waiting for processing of save project request by a Project Server's queue processing service. The default value for this property is 1 minute.
68  /// </summary>
69  /// <remarks>
70  /// The processing time may be longer for large projects or in case when Project Server instance is too busy responding to other requests.
71  /// </remarks>
72  ASPOSE_TASKS_SHARED_API void set_Timeout(System::TimeSpan value);
73  /// <summary>
74  /// Gets interval between queue job status requests. The default value is 2 seconds.
75  /// </summary>
76  ASPOSE_TASKS_SHARED_API System::TimeSpan get_PollingInterval() const;
77  /// <summary>
78  /// Sets interval between queue job status requests. The default value is 2 seconds.
79  /// </summary>
80  ASPOSE_TASKS_SHARED_API void set_PollingInterval(System::TimeSpan value);
81 
82  /// <summary>
83  /// Initializes a new instance of the <see cref="ProjectServerSaveOptions"></see> class.
84  /// </summary>
85  ASPOSE_TASKS_SHARED_API ProjectServerSaveOptions();
86 
87 protected:
88 
89  ASPOSE_TASKS_SHARED_API System::String get_DebuggerDisplay();
90 
91  #ifdef ASPOSE_GET_SHARED_MEMBERS
92  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
93  #endif
94 
95 
96 private:
97 
98  System::String pr_ProjectName;
99  System::Guid pr_ProjectGuid;
100  System::TimeSpan pr_Timeout;
101  System::TimeSpan pr_PollingInterval;
102 
103 };
104 
105 } // namespace Tasks
106 } // namespace Aspose
107 
108 
Allows to specify additional options when project is saved to Project Server or Project Online...
Definition: ProjectServerSaveOptions.h:29
The class which provides the methods to read and to perform operations on projects in the specified P...
Definition: ProjectServerManager.h:56