/*---------------------------------------------------------------------------* Project: news File: news_UserResult.h Copyright (C)2010 Nintendo Co., Ltd. All rights reserved. These coded instructions, COLORments, 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. $Rev$ *---------------------------------------------------------------------------*/ #ifndef NN_NEWS_CTR_USER_USERRESULT_H_ #define NN_NEWS_CTR_USER_USERRESULT_H_ #include namespace nn { namespace news { namespace CTR { namespace user { enum Description { DESCRIPTION_NONE, DESCRIPTION_INVALID_SUBJECT_SIZE, //!< 表題のサイズが大きすぎます. DESCRIPTION_INVALID_MESSAGE_SIZE, //!< 本文のサイズが大きすぎます. DESCRIPTION_INVALID_PICTURE_SIZE, //!< 画像のサイズが大きすぎます. DESCRIPTION_INVALID_PICTURE, //!< 画像が不正です. DESCRIPTION_MAX }; /*! :category Result @class nn::news::ResultInvalidSubjectSize @brief 表題のサイズが大きすぎます. */ inline Result ResultInvalidSubjectSize() { return nn::MakePermanentResult( nn::Result::SUMMARY_INVALID_ARGUMENT, nn::Result::MODULE_NN_NEWS, DESCRIPTION_INVALID_SUBJECT_SIZE); } /*! :category Result @class nn::news::ResultInvalidMessageSize @brief 本文のサイズが大きすぎます. */ inline Result ResultInvalidMessageSize() { return nn::MakePermanentResult( nn::Result::SUMMARY_INVALID_ARGUMENT, nn::Result::MODULE_NN_NEWS, DESCRIPTION_INVALID_MESSAGE_SIZE); } /*! :category Result @class nn::news::ResultInvalidPictureSize @brief 画像のサイズが大きすぎます. */ inline Result ResultInvalidPictureSize() { return nn::MakePermanentResult( nn::Result::SUMMARY_INVALID_ARGUMENT, nn::Result::MODULE_NN_NEWS, DESCRIPTION_INVALID_PICTURE_SIZE); } /*! :category Result @class nn::news::ResultInvalidPicture @brief 画像が不正です. */ inline Result ResultInvalidPicture() { return nn::MakePermanentResult( nn::Result::SUMMARY_INVALID_ARGUMENT, nn::Result::MODULE_NN_NEWS, DESCRIPTION_INVALID_PICTURE); } } // end of namespace user } // end of namespace CTR } // end of namespace news } // end of namespace nn #endif /* NN_NEWS_CTR_USER_USERRESULT_H_ */