nn::boss::RegisterTask Functionnn::Result RegisterTask( Task * pTask, TaskPolicy * pPolicy, TaskAction * pAction, TaskOption * pOption = NULL, u8 taskStep = DEFAULT_STEP_ID ); nn::Result RegisterTask( Task * pTask, TaskPolicy * pPolicy, TaskAction * pAction, const char * pFilePath, TaskOption * pOption = NULL, u8 taskStep = DEFAULT_STEP_ID );
| RegisterTask ( Task *, TaskPolicy *, TaskAction *, TaskOption *, u8 ) | Registers a task. |
| RegisterTask ( Task *, TaskPolicy *, TaskAction *, const char *, TaskOption *, u8 ) | Registers a specified file to a task. Currently, you can only use this to register DataStore upload tasks. |
RegisterTask ( Task *, TaskPolicy *, TaskAction *, TaskOption *, u8 )To register tasks, you must prepare instances of the subclass of the TaskPolicy class and the TaskAction class. (Currently only NsaDownloadAction is available.) For more information about which attributes must be set, see the topic for each class.
After you have finished registering a task, you can reuse each of these instances as necessary by calling the Initialize function. A task execution instruction can be issued by calling the nn::boss::Task::Start function for a registered task.
Common Task Registration Errors
1. If BOSS storage has not been registered when registering an NADL task (ResultStorageNotFound),
register BOSS storage for NADL task using RegisterStorage.
2. A task with the same task ID is already registered (ResultTaskIdAlreadyExist).
Either use the UnregisterTask function to delete one of the tasks, or reuse the task that has already been registered.
RegisterTask ( Task *, TaskPolicy *, TaskAction *, const char *, TaskOption *, u8 )CONFIDENTIAL