Pages
API Documentation
On this page

BluezQt::PendingCall Class

Pending method call. More...

  • Header: #include <BluezQt/PendingCall>
  • CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
    target_link_libraries(mytarget PRIVATE KF6::BluezQt)
  • Inherits: QObject
  • Inherited By: BluezQt::TPendingCall

List of all members, including inherited members

Public Types

Properties

Public Functions

Signals

Detailed Description

This class represents a pending method call. It is a convenient wrapper around QDBusPendingReply and QDBusPendingCallWatcher.

Member Type Documentation

enum PendingCall::Error

Known error types.

Constant Value Description
BluezQt::PendingCall::NoError 0 Indicates there is no error.
BluezQt::PendingCall::NotReady 1 Indicates that the device is not ready.
BluezQt::PendingCall::Failed 2 Indicates that the action have failed.
BluezQt::PendingCall::Rejected 3 Indicates that the action was rejected.
BluezQt::PendingCall::Canceled 4 Indicates that the action was canceled.
BluezQt::PendingCall::InvalidArguments 5 Indicates that invalid arguments were passed.
BluezQt::PendingCall::AlreadyExists 6 Indicates that an agent or pairing record already exists.
BluezQt::PendingCall::DoesNotExist 7 Indicates that an agent, service or pairing operation does not exists.
BluezQt::PendingCall::InProgress 8 Indicates that the action is already in progress.
BluezQt::PendingCall::NotInProgress 9 Indicates that the action is not in progress.
BluezQt::PendingCall::AlreadyConnected 10 Indicates that the device is already connected.
BluezQt::PendingCall::ConnectFailed 11 Indicates that the connection to the device have failed.
BluezQt::PendingCall::NotConnected 12 Indicates that the device is not connected.
BluezQt::PendingCall::NotSupported 13 Indicates that the action is not supported.
BluezQt::PendingCall::NotAuthorized 14 Indicates that the caller is not authorized to do the action.
BluezQt::PendingCall::AuthenticationCanceled 15 Indicates that the authentication was canceled.
BluezQt::PendingCall::AuthenticationFailed 16 Indicates that the authentication have failed.
BluezQt::PendingCall::AuthenticationRejected 17 Indicates that the authentication was rejected.
BluezQt::PendingCall::AuthenticationTimeout 18 Indicates that the authentication timed out.
BluezQt::PendingCall::ConnectionAttemptFailed 19 Indicates that the connection attempt have failed.
BluezQt::PendingCall::InvalidLength 20 Indicates that the data provided generates a data packet which is too long.
BluezQt::PendingCall::NotPermitted 21 Indicates that the action is not permitted (e.g. maximum reached or socket locked).
BluezQt::PendingCall::DBusError 98 Indicates an error with D-Bus.
BluezQt::PendingCall::InternalError 99 Indicates an internal error.
BluezQt::PendingCall::UnknownError 100 Indicates an unknown error.

Property Documentation

[read-only] error : int

Access functions:

[read-only] errorText : QString

Access functions:

[read-only] isFinished : bool

Access functions:

userData : QVariant

Access functions:

[read-only] value : QVariant

Access functions:

[read-only] values : QVariantList

Access functions:

Member Function Documentation

int PendingCall::error() const

Returns an error code.

Note: Getter function for property error.

See also Error

QString PendingCall::errorText() const

Returns an error text.

Note: Getter function for property errorText.

[signal] void PendingCall::finished(BluezQt::PendingCall *call)

Indicates that the call has finished.

bool PendingCall::isFinished() const

Returns whether the call is finished.

Note: Getter function for property isFinished.

void PendingCall::setUserData(const QVariant &userData)

Sets the userData of the call.

Note: Setter function for property userData.

See also userData()

QVariant PendingCall::userData() const

Returns the user data of the call.

Note: Getter function for property userData.

See also setUserData()

QVariant PendingCall::value() const

Returns a first return value of the call.

Note: Getter function for property value.

QVariantList PendingCall::values() const

Returns all values of the call.

Note: Getter function for property values.

void PendingCall::waitForFinished()

Waits for the call to finish.

Warning: This method blocks until the call finishes!

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