Add missing changes to fix build

This commit is contained in:
Cameron Gutman
2021-07-02 23:54:17 -05:00
parent fa3f822cf1
commit 043c55ae66
3 changed files with 102 additions and 1 deletions
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include <QHostAddress>
class NvAddress
{
public:
NvAddress();
explicit NvAddress(QString addr, uint16_t port);
explicit NvAddress(QHostAddress addr, uint16_t port);
uint16_t port() const;
void setPort(uint16_t port);
QString address() const;
void setAddress(QString addr);
void setAddress(QHostAddress addr);
bool isNull() const;
QString toString() const;
bool operator==(const NvAddress& other) const
{
return m_Address == other.m_Address &&
m_Port == other.m_Port;
}
bool operator!=(const NvAddress& other) const
{
return !operator==(other);
}
private:
QString m_Address;
uint16_t m_Port;
};