• CoreLink
  • CoreLink Class

    Represents a link of a CoRE link format. More...

    Header: #include <CoreLink>

    Public Functions

    CoreLink()
    CoapPdu::ContentType contentType() const
    QString interfaceDescription() const
    int maximumSize() const
    bool observable() const
    QString path() const
    QString resourceType() const
    void setContentType(const CoapPdu::ContentType & contentType)
    void setInterfaceDescription(const QString & interfaceDescription)
    void setMaximumSize(const int & maximumSize)
    void setObservable(const bool & observable)
    void setPath(const QString & path)
    void setResourceType(const QString & resourceType)
    void setTitle(const QString & title)
    QString title() const

    Detailed Description

    Represents a link of a CoRE link format.

    This class represents a Constrained RESTful Environments (CoRE) Link format according to the RFC6690 specification.

    Member Function Documentation

    Constructs a CoreLink.

    CoapPdu::ContentType CoreLink::contentType() const

    Returns the l{CoapPdu::ContentType} of this CoreLink.

    See also setContentType().

    QString CoreLink::interfaceDescription() const

    Returns the interface description of this CoreLink.

    See also setInterfaceDescription().

    int CoreLink::maximumSize() const

    Returns the maximum payload size of this CoreLink.

    See also setMaximumSize().

    bool CoreLink::observable() const

    Returns true if this CoreLink is observable.

    See also setObservable().

    QString CoreLink::path() const

    Returns the path of this CoreLink.

    See also setPath().

    QString CoreLink::resourceType() const

    Returns the resource type of this CoreLink.

    See also setResourceType().

    void CoreLink::setContentType(const CoapPdu::ContentType & contentType)

    Sets the l{CoapPdu::ContentType} of this CoreLink to the given contentType.

    See also contentType().

    void CoreLink::setInterfaceDescription(const QString & interfaceDescription)

    Sets the interface description of this CoreLink to the given interfaceDescription.

    See also interfaceDescription().

    void CoreLink::setMaximumSize(const int & maximumSize)

    Sets the maximum payload size of this CoreLink to the given maximumSize.

    See also maximumSize().

    void CoreLink::setObservable(const bool & observable)

    Sets this CoreLink observable.

    See also observable().

    void CoreLink::setPath(const QString & path)

    Sets the path of this CoreLink.

    See also path().

    void CoreLink::setResourceType(const QString & resourceType)

    Sets the resource type of this CoreLink to the given resourceType.

    See also resourceType().

    void CoreLink::setTitle(const QString & title)

    Sets the title of this CoreLink.

    See also title().

    QString CoreLink::title() const

    Returns the title of this CoreLink.

    See also setTitle().