/*---------------------------------------------------------------------------* Project: Horizon File: BgsCommunicator.h Copyright 2009-2011 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. $Rev$ *---------------------------------------------------------------------------*/ #ifndef BGSCOMMUNICATOR_H_ #define BGSCOMMUNICATOR_H_ #include #if defined(__ARMCC_VERSION) #include #else #include #include "types.h" #endif namespace ConsoleRestore { class BgsCommunicator { public: BgsCommunicator(); virtual ~BgsCommunicator(); //! @brief プリインストール情報を取得するためのXMLを構築します //! @param[in] deviceId デバイスID //! @param[in] serialNo シリアルNo. void CreateXml(bit64 deviceId, u8* serialNo); //! @brief 構築したXMLデータを取得します std::string GetXml(); //! @brief 構築したXMLを使ってBGSと通信します bool Execute(); //! @brief 通信結果のサイズを取得します size_t GetBodySize(); //! @brief 通信結果を取得します //! @param[out] buf 通信結果を書き込むバッファ void GetBody(void* buf); private: std::string m_Xml; }; } /* namespace ConsoleRestore */ #endif /* BGSCOMMUNICATOR_H_ */