nn::boss::TaskPolicy Classclass TaskPolicy
Class for representing task policies. Use this to do such things as set the policy information used when registering a task.
TaskPolicy
|
Constructor. | |
|---|---|---|
| V |
~TaskPolicy
|
Destructor. |
Initialize
|
Configures the policy settings. This initialization makes it possible to reuse objects. | |
InitializeWithSecInterval
|
(This is exclusively for debugging. Regular execution intervals are only approved if they are measured in hours. Use the Initialize function when you are not debugging. ) Configures policy settings. Specify the execution interval in seconds. |
|
SetDuration
|
Sets the duration for a single execution. (To be supported in the future.) | |
SetPriority
|
Sets a task's execution priority. See TaskPriority for details on priority types. Applications use the default value (PRIORITY_MEDIUM), and there is generally no need to change this. You must change this to PRIORITY_STOPPED for tasks you want to run on a specific AP. A task's execution priority is adjusted by the scheduler according to circumstances and settings sent from the server. |
|
SetProperty
|
Sets a property value in the class. Call this function after allocating memory for the description's data type. It can be used for the following properties. Identifier: Description TASK_PERMISSION: Task execution restrictions as set by Parental Controls and EULA permissions. The data type is TaskPermission. |
|
GetProperty
|
Gets a property value from the class. Call this function after allocating memory for the description's data type. It can be used for the following properties. Identifier: Description TASK_PRIORITY: Task priority as set on task registration. Data type is TaskPriority.TASK_SCHEDULING_POLICY: Scheduling policy of the task. Data type is SchedulingPolicy.TASK_EXEC_INTERVAL: Task execution interval. Data type is u32 (seconds).TASK_EXEC_COUNT: Task execution count. Data type is u16.TASK_PERMISSION: Task execution restrictions as set by Parental Controls and EULA permissions. The data type is TaskPermission. |
CONFIDENTIAL