ctr_Repair/trunk/ConsoleDataMigration/sources/ConsoleRestore/BgsCommunicator.h
N2614 c35367985a BgsCommunicator:XMLデータ生成まで
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@566 385bec56-5757-e545-9c3a-d8741f4650f1
2012-01-18 07:03:27 +00:00

61 lines
1.7 KiB
C++

/*---------------------------------------------------------------------------*
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 <string>
#if defined(__ARMCC_VERSION)
#include <nn.h>
#else
#include <cstddef>
#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_ */