forked from jbagg/QtZeroConf
Make QZeroConfService's setter functions private
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
#include "qzeroconfglobal.h"
|
#include "qzeroconfglobal.h"
|
||||||
|
|
||||||
class QZeroConfServiceData;
|
class QZeroConfServiceData;
|
||||||
|
class QZeroConfPrivate;
|
||||||
|
|
||||||
class Q_ZEROCONF_EXPORT QZeroConfService
|
class Q_ZEROCONF_EXPORT QZeroConfService
|
||||||
{
|
{
|
||||||
@ -15,6 +16,8 @@ class Q_ZEROCONF_EXPORT QZeroConfService
|
|||||||
Q_PROPERTY( QString domain READ domain )
|
Q_PROPERTY( QString domain READ domain )
|
||||||
Q_PROPERTY( QString host READ host )
|
Q_PROPERTY( QString host READ host )
|
||||||
|
|
||||||
|
friend class QZeroConfPrivate;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QZeroConfService();
|
QZeroConfService();
|
||||||
@ -22,31 +25,30 @@ public:
|
|||||||
QZeroConfService &operator=(const QZeroConfService &);
|
QZeroConfService &operator=(const QZeroConfService &);
|
||||||
~QZeroConfService();
|
~QZeroConfService();
|
||||||
|
|
||||||
|
|
||||||
QString name() const;
|
QString name() const;
|
||||||
void setName(const QString &name);
|
|
||||||
QString type() const;
|
QString type() const;
|
||||||
void setType(const QString &type);
|
|
||||||
QString domain() const;
|
QString domain() const;
|
||||||
void setDomain(const QString &domain);
|
|
||||||
QString host() const;
|
QString host() const;
|
||||||
void setHost(const QString &host);
|
|
||||||
QHostAddress ip() const;
|
QHostAddress ip() const;
|
||||||
void setIp(QHostAddress &ip);
|
|
||||||
QHostAddress ipv6() const;
|
QHostAddress ipv6() const;
|
||||||
void setIpv6(const QHostAddress &ipv6);
|
|
||||||
quint32 interfaceIndex() const;
|
quint32 interfaceIndex() const;
|
||||||
void setInterfaceIndex(const quint32 &interfaceIndex);
|
|
||||||
quint16 port() const;
|
quint16 port() const;
|
||||||
void setPort(const quint16 port);
|
|
||||||
QMap <QByteArray, QByteArray> txt() const;
|
QMap <QByteArray, QByteArray> txt() const;
|
||||||
void setTxt(const QMap<QByteArray, QByteArray> txt);
|
|
||||||
void appendTxt(QByteArray idx, QByteArray val = "");
|
|
||||||
|
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
bool operator==(const QZeroConfService &rhs) const;
|
bool operator==(const QZeroConfService &rhs) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void setName(const QString &name);
|
||||||
|
void setType(const QString &type);
|
||||||
|
void setDomain(const QString &domain);
|
||||||
|
void setHost(const QString &host);
|
||||||
|
void setIp(QHostAddress &ip);
|
||||||
|
void setIpv6(const QHostAddress &ipv6);
|
||||||
|
void setInterfaceIndex(const quint32 &interfaceIndex);
|
||||||
|
void setPort(const quint16 port);
|
||||||
|
void setTxt(const QMap<QByteArray, QByteArray> txt);
|
||||||
|
void appendTxt(QByteArray idx, QByteArray val = "");
|
||||||
QExplicitlySharedDataPointer<QZeroConfServiceData> data;
|
QExplicitlySharedDataPointer<QZeroConfServiceData> data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user