Pages
API Documentation
On this page

BluezQt::Request Class

D-Bus request. More...

  • Header: #include <BluezQt/Request>
  • CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
    target_link_libraries(mytarget PRIVATE KF6::BluezQt)

List of all members, including inherited members

Public Functions

Detailed Description

This class represents a request from a Bluetooth daemon. It is a convenient wrapper around QDBusMessage and easily allows sending replies and handling errors.

See also Agent, ObexAgent, Profile

Member Function Documentation

[explicit] Request::Request()

Creates a new Request object.

Request::Request(const BluezQt::Request<T> &other)

Constructs a new Request object from other.

void Request::accept(T returnValue) const

Accepts the request.

This method should be called to send a reply to indicate the request was accepted.

In case the request is of type void, this method does not take any parameter.

returnValue The return value of the request.

void Request::cancel() const

Cancels the request.

This method should be called to send an error reply to indicate the request was canceled.

void Request::reject() const

Rejects the request.

This method should be called to send an error reply to indicate the request was rejected.

BluezQt::Request<T> &Request::operator=(const BluezQt::Request<T> &other)

Copies the Request object from other.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.