#ifndef ASH_SYSTEM_PHONEHUB_ENABLE_HOTSPOT_QUICK_ACTION_CONTROLLER_H_
#define ASH_SYSTEM_PHONEHUB_ENABLE_HOTSPOT_QUICK_ACTION_CONTROLLER_H_
#include "ash/system/phonehub/quick_action_controller_base.h"
#include "base/memory/raw_ptr.h"
#include "chromeos/ash/components/phonehub/tether_controller.h"
namespace ash {
class EnableHotspotQuickActionController
: public QuickActionControllerBase,
public phonehub::TetherController::Observer {
public:
explicit EnableHotspotQuickActionController(
phonehub::TetherController* tether_controller);
~EnableHotspotQuickActionController() override;
EnableHotspotQuickActionController(EnableHotspotQuickActionController&) =
delete;
EnableHotspotQuickActionController operator=(
EnableHotspotQuickActionController&) = delete;
QuickActionItem* CreateItem() override;
void OnButtonPressed(bool is_now_enabled) override;
void UpdateQuickActionItemUi() override;
void OnTetherStatusChanged() override;
private:
enum class ActionState { kOff, kConnecting, kConnected, kNoReception };
void SetState(ActionState state);
raw_ptr<phonehub::TetherController> tether_controller_ = nullptr;
raw_ptr<QuickActionItem> item_ = nullptr;
};
}
#endif