forked from jbagg/QtZeroConf
made QZeroConfService compareable
This commit is contained in:
@@ -139,4 +139,9 @@ bool QZeroConfService::isValid() const
|
||||
return (!data->name.isEmpty()) && (data->port > 0);
|
||||
}
|
||||
|
||||
bool QZeroConfService::operator==(const QZeroConfService &rhs) const
|
||||
{
|
||||
return this->name() == rhs.name() && this->ip() == rhs.ip() && this->ipv6() == rhs.ipv6();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -36,6 +36,7 @@ public:
|
||||
void appendTxt(QByteArray idx, QByteArray val = "");
|
||||
|
||||
bool isValid() const;
|
||||
bool operator==(const QZeroConfService &rhs) const;
|
||||
|
||||
private:
|
||||
QSharedDataPointer<QZeroConfServiceData> data;
|
||||
|
Reference in New Issue
Block a user