/*---------------------------------------------------------------------------* Project: Horizon File: ac_Ac.h Copyright (C)2009 Nintendo Co., Ltd. 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. $Date:: 2010-09-13#$ *---------------------------------------------------------------------------*/ // // このファイルを編集しないでください。 // このファイルは自動生成されます。 // #ifndef NN_AC_CTR_AC_AC_H_ #define NN_AC_CTR_AC_AC_H_ #include #include #include #include namespace nn { namespace ac { namespace CTR { namespace detail { class Ac { public: enum Tag { TAG_IPC_ERROR, TAG_CREATE_DEFAULT_CONFIG, TAG_DEBUG_SET_NETWORK_AREA, TAG_CONNECT, TAG_CONNECT_ASYNC, TAG_CONNECT_FROM_BROWSER, TAG_CONNECT_FROM_BROWSER_ASYNC, TAG_GET_CONNECT_RESULT, TAG_DEBUG_SET_NETWORK_SETTING_1, TAG_CANCEL_CONNECT_ASYNC, TAG_CLOSE, TAG_CLOSE_ASYNC, TAG_GET_CLOSE_RESULT, TAG_GET_LAST_ERROR_CODE, TAG_GET_LAST_DETAIL_ERROR_CODE, TAG_GET_STATUS, TAG_GET_CONNECTING_AP_TYPE, TAG_GET_CONNECTING_ACCESS_POINT, TAG_GET_CONNECTING_INFRA_PRIORITY, TAG_GET_CONNECTING_NINTENDO_ZONE_BEACON, TAG_GET_CONNECTING_NINTENDO_ZONE_BEACON_SUBSET, TAG_GET_CONNECTING_LOCATION, TAG_EXCLUSIVE, TAG_UN_EXCLUSIVE, TAG_CLOSE_ALL, TAG_LOGOUT_HOTSPOT, TAG_SCAN_ACCESS_POINT, TAG_SCAN_NINTENDO_ZONE, TAG_SCAN_NINTENDO_ZONE_SUBSET, TAG_BEGIN_SCAN_USB_ACCESS_POINT, TAG_END_SCAN_USB_ACCESS_POINT, TAG_SET_ALLOW_AP_TYPE, TAG_ADD_ALLOW_AP_TYPE, TAG_ADD_DENY_AP_TYPE, TAG_SET_NETWORK_AREA, TAG_SET_INFRA_PRIORITY, TAG_GET_INFRA_PRIORITY, TAG_SET_POWER_SAVE_MODE, TAG_GET_POWER_SAVE_MODE, TAG_SET_BSSID_FILTER, TAG_SET_APNUM_FILTER, TAG_SET_FROM_APPLICATION, TAG_SET_REQUEST_EULA_VERSION, TAG_CONVERT_PASSPHRASE_TO_PSK, TAG_GET_NINTENDO_ZONE_BEACON_NOT_FOUND_EVENT, TAG_REGISTER_DISCONNECT_EVENT, TAG_GET_STATUS_CHANGE_EVENT, TAG_SET_AUTH_SERVER_TYPE, TAG_GET_CONNECTING_SECURITY_MODE, TAG_GET_CONNECTING_SSID, TAG_GET_CONNECTING_SSID_LENGTH, TAG_GET_CONNECTING_PROXY_ENABLE, TAG_GET_CONNECTING_PROXY_AUTH_TYPE, TAG_GET_CONNECTING_PROXY_PORT, TAG_GET_CONNECTING_PROXY_HOST, TAG_GET_CONNECTING_PROXY_USER_NAME, TAG_GET_CONNECTING_PROXY_PASSWORD, TAG_IPC_END }; public: static Handle s_Session; public: Ac() {} public: static nn::Result CreateDefaultConfig( nn::ac::CTR::Config* config ); static nn::Result DebugSetNetworkArea( nn::ac::CTR::Config* config, nn::ac::CTR::NetworkArea networkArea ); static nn::Result Connect( const nn::ac::CTR::Config& config ); static nn::Result ConnectAsync( const nn::ac::CTR::Config& config, nn::Handle event ); static nn::Result ConnectFromBrowser( const nn::ac::CTR::Config& config ); static nn::Result ConnectFromBrowserAsync( const nn::ac::CTR::Config& config, nn::Handle event ); static nn::Result GetConnectResult(); static nn::Result DebugSetNetworkSetting1( const u8 ssid[], size_t ssidLen, nn::ac::CTR::SecurityMode securityMode, const u8 key[], size_t keyLen ); static nn::Result CancelConnectAsync(); static nn::Result Close(); static nn::Result CloseAsync( nn::Handle event ); static nn::Result GetCloseResult(); static nn::Result GetLastErrorCode( u32* errorCode ); static nn::Result GetLastDetailErrorCode( u32* errorCode ); static nn::Result GetStatus( nn::ac::CTR::Status* status ); static nn::Result GetConnectingApType( nn::ac::CTR::ApType* apType ); static nn::Result GetConnectingAccessPoint( u8 ap[], size_t len ); static nn::Result GetConnectingInfraPriority( nn::ac::CTR::InfraPriority* infraPriority ); static nn::Result GetConnectingNintendoZoneBeacon( u8 beacon[], size_t len ); static nn::Result GetConnectingNintendoZoneBeaconSubset( u8 beacon[], size_t len ); static nn::Result GetConnectingLocation( u8 areacode[] ); static nn::Result Exclusive(); static nn::Result UnExclusive(); static nn::Result CloseAll(); static nn::Result LogoutHotspot(); static nn::Result ScanAccessPoint( u8* findNum, u8 apDataList[], u16 len ); static nn::Result ScanNintendoZone( u8* findNum, u8 zoneDataList[], u16 len ); static nn::Result ScanNintendoZoneSubset( u8* findNum, u8 zoneDataList[], u16 len ); static nn::Result BeginScanUsbAccessPoint( nn::Handle allowEvent, nn::Handle denyEvent ); static nn::Result EndScanUsbAccessPoint(); static nn::Result SetAllowApType( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::ApType apType ); static nn::Result AddAllowApType( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::ApType apType ); static nn::Result AddDenyApType( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::ApType apType ); static nn::Result SetNetworkArea( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::NetworkArea networkArea ); static nn::Result SetInfraPriority( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::InfraPriority infraPriority ); static nn::Result GetInfraPriority( const nn::ac::CTR::Config& config, nn::ac::CTR::InfraPriority* infraPriority ); static nn::Result SetPowerSaveMode( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::PowerSaveMode powerSaveMode ); static nn::Result GetPowerSaveMode( const nn::ac::CTR::Config& config, nn::ac::CTR::PowerSaveMode* powerSaveMode ); static nn::Result SetBssidFilter( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, const bit8 bssid[] ); static nn::Result SetApnumFilter( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, const u8 apnum[] ); static nn::Result SetFromApplication( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, nn::ac::CTR::Application application ); static nn::Result SetRequestEulaVersion( const nn::ac::CTR::Config& srcConfig, nn::ac::CTR::Config* destConfig, u8 minorVersion, u8 majorVersion ); static nn::Result ConvertPassphraseToPsk( const u8 passphrase[], size_t passphraseLen, const u8 ssid[], size_t ssidLen, u8 key[], size_t keyLen ); static nn::Result GetNintendoZoneBeaconNotFoundEvent( nn::Handle event ); static nn::Result RegisterDisconnectEvent( nn::Handle event ); static nn::Result GetStatusChangeEvent( nn::Handle* event ); static nn::Result SetAuthServerType( nn::ac::CTR::AuthServerType type ); static nn::Result GetConnectingSecurityMode( nn::ac::CTR::SecurityMode* securityMode ); static nn::Result GetConnectingSsid( u8 ssid[] ); static nn::Result GetConnectingSsidLength( u8* length ); static nn::Result GetConnectingProxyEnable( bool* enable ); static nn::Result GetConnectingProxyAuthType( nn::ac::CTR::ProxyAuthType* authType ); static nn::Result GetConnectingProxyPort( u16* port ); static nn::Result GetConnectingProxyHost( u8 host[] ); static nn::Result GetConnectingProxyUserName( u8 username[] ); static nn::Result GetConnectingProxyPassword( u8 password[] ); }; } // end of namespace detail } // end of namespace CTR } // end of namespace ac } // end of namespace nn #endif // ifndef NN_AC_CTR_AC_AC_H_