Update UniFi Login
This commit is contained in:
+19
-1
@@ -31,6 +31,24 @@ private:
|
||||
void UpdatePresentDevices();
|
||||
void SendStateChange(bool present, const std::string& macAddress);
|
||||
|
||||
void ClearCookiesFile();
|
||||
|
||||
private:
|
||||
struct PresentDevice
|
||||
{
|
||||
PresentDevice(const std::string& macAddress);
|
||||
PresentDevice(const std::string& macAddress, int lastSeen);
|
||||
|
||||
std::string MacAddress;
|
||||
int LastSeen;
|
||||
|
||||
bool operator==(const PresentDevice& other) const;
|
||||
bool operator!=(const PresentDevice& other) const;
|
||||
|
||||
bool operator==(const std::string& other) const;
|
||||
bool operator!=(const std::string& other) const;
|
||||
};
|
||||
|
||||
private:
|
||||
Timer::Timer m_deviceTimer;
|
||||
Timer::Timer m_inventoryTimer;
|
||||
@@ -52,7 +70,7 @@ private:
|
||||
std::string m_target;
|
||||
std::vector<Util::StaticDevice> m_staticDevices;
|
||||
|
||||
std::vector<std::string> m_presentDevices;
|
||||
std::vector<PresentDevice> m_presentDevices;
|
||||
};
|
||||
|
||||
} // namespace WiFi
|
||||
|
||||
Reference in New Issue
Block a user