// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "Core/Dialog/PSPDialog.h"20#include "Core/MemMapHelpers.h"2122struct SceUtilityNetconfData {23char groupName[8];24int timeout;25};2627struct SceUtilityNetconfParam {28pspUtilityDialogCommon common;29int netAction; // sets how to connect30PSPPointer<SceUtilityNetconfData> NetconfData;31int netHotspot; // Flag to allow hotspot connections32int netHotspotConnected; // Flag to check if a hotspot connection is active33int netWifiSpot; // Flag to allow WIFI connections34};3536class PSPNetconfDialog : public PSPDialog {37public:38PSPNetconfDialog(UtilityDialogType type) : PSPDialog(type) {}3940int Init(u32 paramAddr);41int Update(int animSpeed) override;42int Shutdown(bool force = false) override;43void DoState(PointerWrap &p) override;44pspUtilityDialogCommon* GetCommonParam() override;4546protected:47bool UseAutoStatus() override {48return false;49}5051private:52void DrawBanner();53void DrawIndicator();5455SceUtilityNetconfParam request = {};56u32 requestAddr = 0;57int connResult = -1;5859u32 scanInfosAddr = 0;60int scanStep = 0;61u64 startTime = 0;6263bool showNoWlanNotice_ = false;64bool jsonReady_ = false;65};666768