/*--------------------------------------------------------------------------* Copyright (C) 2012 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef NN_BOSS_BOSS_TASKSETTING_H_ #define NN_BOSS_BOSS_TASKSETTING_H_ #include #include #include #ifdef __cplusplus namespace nn { namespace boss { /*! @addtogroup nn_boss_api @{ */ /*! @brief Represents task settings. Used when registering a task. */ class TaskSetting { friend class Task; friend class PrivateTaskSetting; friend class PrivateNetTaskSetting; friend class PrivateNbdlTaskSetting; friend class TaskSettingTester; public: /*! @brief Constructor. */ explicit TaskSetting(void); /*! @brief Destructor. */ virtual ~TaskSetting(void); /*! @brief Initializes task settings. */ void InitializeSetting(void); /*! @brief Sets whether to allow tasks to run when Online Interaction in Games is restricted in Parental Controls. Tasks cannot run by default if this setting is not made and Online Interaction in Games is restricted in Parental Controls. @param[in] canRun Specifies whether tasks are allowed to run. Specify true if tasks are allowed to run. Otherwise, specify false. */ void SetRunPermissionInParentalControlRestriction( bool canRun ); protected: u8 m_settingBuf[TASK_RECORD_SIZE]; virtual nn::Result RegisterPreprocess( nn::boss::AccountID accountId, nn::boss::TitleID titleId, const char* taskId ); virtual void RegisterPostprocess( nn::boss::AccountID accountId, nn::boss::TitleID titleId, const char* taskId, nn::Result registerResult); }; //! @} } // end of namespace boss } // end of namespace nn #endif // __cplusplus #endif /* NN_BOSS_BOSS_TASKSETTING_H_ */