#pragma once // Qt #include // Project #include "VView.h" /*! * \brief The Network class * Provides abstraction for a wifi network * \details Holds information about the wifi network such as ssid, security, and connection status * */ class Network { public: enum SECURITY_LEVEL { UNSUPPORTED, WEP, WPA_TKIP, WPA_TKIP_AES, WPA_AES, WPA2_AES, }; enum SIGNAL_LEVEL { REFRESHING, NO_SIGNAL, LVL_1, LVL_2, LVL_3, LVL_4, LVL_5 }; enum STATUS { NOT_CONNECTED, CONNECTING, CONNECTED, DISCONNECTING }; QString ssid() const { return _ssid; } SECURITY_LEVEL security() const { return _security; } STATUS status() const { return _status; } explicit Network(); explicit Network(const int vSSID) {_ssid = vSSID; } explicit Network(const int vSSID, const SECURITY_LEVEL vSecurityLevel, const STATUS vStatus) { _ssid = vSSID; _security = vSecurityLevel; _status = vStatus; } private: QString _ssid = ""; SECURITY_LEVEL _security = UNSUPPORTED; STATUS _status = NOT_CONNECTED; };