• ZeroConfServiceEntry
  • ZeroConfServiceEntry Class

    Holds information about an avahi service entry. More...

    Header: #include <ZeroConfServiceEntry>

    Public Functions

    ZeroConfServiceEntry()
    ZeroConfServiceEntry(QString name, QString serviceType, QHostAddress hostAddress, QString domain, QString hostName, quint16 port, QAbstractSocket::NetworkLayerProtocol protocol, QStringList txt, bool cached, bool isWideArea, bool isMulticast, bool isLocal, bool isOurOwn)
    QString domain() const
    QHostAddress hostAddress() const
    QString hostName() const
    bool isChached() const
    bool isLocal() const
    bool isMulticast() const
    bool isOurOwn() const
    bool isValid() const
    bool isWideArea() const
    QString name() const
    quint16 port() const
    QAbstractSocket::NetworkLayerProtocol protocol() const
    QString serviceType() const
    QStringList txt() const
    bool operator!=(const ZeroConfServiceEntry & other) const
    bool operator==(const ZeroConfServiceEntry & other) const

    Detailed Description

    Holds information about an avahi service entry.

    You can find an example here.

    Member Function Documentation

    ZeroConfServiceEntry::ZeroConfServiceEntry()

    Constructs an empty invalid ZeroConfServiceEntry

    ZeroConfServiceEntry::ZeroConfServiceEntry(QString name, QString serviceType, QHostAddress hostAddress, QString domain, QString hostName, quint16 port, QAbstractSocket::NetworkLayerProtocol protocol, QStringList txt, bool cached, bool isWideArea, bool isMulticast, bool isLocal, bool isOurOwn)

    Constructs a new ZeroConfServiceEntry with the given name, serviceType, hostAddress, domain, hostName, port, protocol, txt and flags.

    QString ZeroConfServiceEntry::domain() const

    Returns the domain of this ZeroConfServiceEntry.

    QHostAddress ZeroConfServiceEntry::hostAddress() const

    Returns the host address of this ZeroConfServiceEntry.

    QString ZeroConfServiceEntry::hostName() const

    Returns the host name of this ZeroConfServiceEntry.

    bool ZeroConfServiceEntry::isChached() const

    Returns true if this ZeroConfServiceEntry is cached.

    bool ZeroConfServiceEntry::isLocal() const

    Returns true if this ZeroConfServiceEntry was found local.

    bool ZeroConfServiceEntry::isMulticast() const

    Returns true if this ZeroConfServiceEntry is a multicast service.

    bool ZeroConfServiceEntry::isOurOwn() const

    Returns true if this ZeroConfServiceEntry is our own service.

    bool ZeroConfServiceEntry::isValid() const

    Returns true if this ZeroConfServiceEntry is valid.

    bool ZeroConfServiceEntry::isWideArea() const

    Returns true if this ZeroConfServiceEntry was found in the wide area.

    QString ZeroConfServiceEntry::name() const

    Returns the name of this ZeroConfServiceEntry.

    quint16 ZeroConfServiceEntry::port() const

    Returns the port of this ZeroConfServiceEntry.

    QAbstractSocket::NetworkLayerProtocol ZeroConfServiceEntry::protocol() const

    Returns the network protocol of this ZeroConfServiceEntry.

    QString ZeroConfServiceEntry::serviceType() const

    Returns the service type of this ZeroConfServiceEntry.

    QStringList ZeroConfServiceEntry::txt() const

    Returns the txt string list of this ZeroConfServiceEntry.

    bool ZeroConfServiceEntry::operator!=(const ZeroConfServiceEntry & other) const

    Returns true if this ZeroConfServiceEntry is not equal to other; otherwise returns false.

    bool ZeroConfServiceEntry::operator==(const ZeroConfServiceEntry & other) const

    Returns true if this ZeroConfServiceEntry is equal to other; otherwise returns false.