1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     camera_Result.h
4 
5   Copyright (C)2010 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: 22311 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_CAMERA_CAMERA_RESULT_H_
17 #define NN_CAMERA_CAMERA_RESULT_H_
18 
19 #include <nn/Result.h>
20 
21 /*! @file
22     @brief      CAMERA ライブラリの Result 群です。
23 */
24 
25 
26 namespace nn {
27 namespace camera {
28 namespace CTR {
29 
30     /*
31         @brief Result コードの詳細
32     */
33     enum Description
34     {
35         DESCRIPTION_CAMERA_IS_SLEEPING = 1,
36         DESCRIPTION_CAMERA_FATAL_ERROR
37     };
38 
39 /*!
40   @name   Result 値
41   @{
42 */
43 
44 /*!
45     @class nn::camera::CTR::ResultIsSleeping
46     @brief @ref システムがスリープ中であるためカメラを使用できないことを示します。
47 */
48     NN_DEFINE_RESULT_CONST(
49         ResultIsSleeping,
50         Result::LEVEL_STATUS, Result::SUMMARY_STATUS_CHANGED, Result::MODULE_NN_CAMERA, DESCRIPTION_CAMERA_IS_SLEEPING
51     );
52 
53 /*!
54     @class nn::camera::CTR::ResultFatalError
55     @brief @ref カメラの再起動処理に失敗したことを示します。カメラが物理的に故障している可能性があります。
56 */
57     NN_DEFINE_RESULT_CONST(
58         ResultFatalError,
59         Result::LEVEL_FATAL, Result::SUMMARY_INTERNAL, Result::MODULE_NN_CAMERA, DESCRIPTION_CAMERA_FATAL_ERROR
60     );
61 }
62 }
63 }
64 
65 #endif /* NN_CAMERA_CAMERA_RESULT_H_ */
66