1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     boss_TaskIdList.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 34430 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_BOSS_BOSS_TASK_ID_LIST_H_
17 #define NN_BOSS_BOSS_TASK_ID_LIST_H_
18 
19 #include <nn/boss/boss_Const.h>
20 #include <nn/boss/boss_Result.h>
21 #include <nn/boss/boss_Types.h>
22 
23 #ifdef __cplusplus
24 
25 namespace nn {
26 namespace boss {
27 
28 /*!
29   @brief        タスクのIDリストを表すクラスです。登録しているタスク一覧を取得する場合などに利用します。
30 */
31 class TaskIdList
32 {
33 public:
34 /*!
35   @brief        コンストラクタです。
36 */
37     explicit TaskIdList(void);
38 
39 /*!
40   @brief        デストラクタです。
41 */
42     virtual ~TaskIdList(void);
43 
44 /*!
45   @brief        一覧内のタスクID個数を返します。
46 
47   @return       一覧の個数が返ります。<BR>
48 */
49     u16 GetSize(void);
50 
51 /*!
52   @brief        指定した位置のタスクIDを返します。
53 
54   @param[in]    index   一覧内の位置を指定します。
55   @return       タスクIDが返ります。<BR>
56          @retval NULL indexが不正の場合にはNULLが返ります。
57 */
58     char* GetTaskId(u16 index);
59 
60 protected:
61     friend class AccessConfig;
62     TaskIdInfoList      m_TaskId;
63 };
64 
65 } // end of namespace boss
66 } // end of namespace nn
67 
68 #endif // __cplusplus
69 
70 #endif /* NN_BOSS_BOSS_TASK_ID_LIST_H_ */
71