• AvahiServiceEntry
  • AvahiServiceEntry Class

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

    Header: #include <AvahiServiceEntry>

    Public Functions

    AvahiServiceEntry()
    AvahiServiceEntry(QString name, QString serviceType, QHostAddress hostAddress, QString domain, QString hostName, quint16 port, QAbstractSocket::NetworkLayerProtocol protocol, QStringList txt, AvahiLookupResultFlags flags)
    QString domain() const
    AvahiLookupResultFlags flags() 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 AvahiServiceEntry & other) const
    bool operator==(const AvahiServiceEntry & other) const

    Detailed Description

    Holds information about an avahi service entry.

    You can find an example here.

    Member Function Documentation

    AvahiServiceEntry::AvahiServiceEntry()

    Constructs an empty invalid AvahiServiceEntry

    AvahiServiceEntry::AvahiServiceEntry(QString name, QString serviceType, QHostAddress hostAddress, QString domain, QString hostName, quint16 port, QAbstractSocket::NetworkLayerProtocol protocol, QStringList txt, AvahiLookupResultFlags flags)

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

    QString AvahiServiceEntry::domain() const

    Returns the domain of this AvahiServiceEntry.

    AvahiLookupResultFlags AvahiServiceEntry::flags() const

    Returns the avahi flags of this AvahiServiceEntry.

    QHostAddress AvahiServiceEntry::hostAddress() const

    Returns the host address of this AvahiServiceEntry.

    QString AvahiServiceEntry::hostName() const

    Returns the host name of this AvahiServiceEntry.

    bool AvahiServiceEntry::isChached() const

    Returns true if this AvahiServiceEntry is cached.

    bool AvahiServiceEntry::isLocal() const

    Returns true if this AvahiServiceEntry was found local.

    bool AvahiServiceEntry::isMulticast() const

    Returns true if this AvahiServiceEntry is a multicast service.

    bool AvahiServiceEntry::isOurOwn() const

    Returns true if this AvahiServiceEntry is our own service.

    bool AvahiServiceEntry::isValid() const

    Returns true if this AvahiServiceEntry is valid.

    bool AvahiServiceEntry::isWideArea() const

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

    QString AvahiServiceEntry::name() const

    Returns the name of this AvahiServiceEntry.

    quint16 AvahiServiceEntry::port() const

    Returns the port of this AvahiServiceEntry.

    QAbstractSocket::NetworkLayerProtocol AvahiServiceEntry::protocol() const

    Returns the network protocol of this AvahiServiceEntry.

    QString AvahiServiceEntry::serviceType() const

    Returns the service type of this AvahiServiceEntry.

    QStringList AvahiServiceEntry::txt() const

    Returns the txt string list of this AvahiServiceEntry.

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

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

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

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