BluezQt::Request

Search for usage in LXR

BluezQt::Request< T > Class Template Reference

#include <BluezQt/Request>

Inheritance diagram for BluezQt::Request< T >:

Public Member Functions

 Request ()
 
 Request (const Request &other)
 
virtual ~Request ()
 
void accept (T returnValue) const
 
void cancel () const
 
Requestoperator= (const Request &other)
 
void reject () const
 

Detailed Description

template<typename T = void>
class BluezQt::Request< T >

D-Bus request.

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

Definition at line 38 of file request.h.

Constructor & Destructor Documentation

◆ Request() [1/2]

template<typename T >
BluezQt::Request< T >::Request
explicit

Creates a new Request object.

Definition at line 92 of file request.cpp.

◆ ~Request()

template<typename T >
BluezQt::Request< T >::~Request
virtual

Destroys a Request object.

Definition at line 106 of file request.cpp.

◆ Request() [2/2]

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

Copy constructor.

Parameters
other

Definition at line 111 of file request.cpp.

Member Function Documentation

◆ accept()

template<typename T >
void BluezQt::Request< T >::accept ( 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.

Parameters
returnValuereturn value of request

Definition at line 126 of file request.cpp.

◆ cancel()

template<typename T >
void BluezQt::Request< T >::cancel

Cancels the request.

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

Definition at line 138 of file request.cpp.

◆ operator=()

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

Copy assignment operator.

Parameters
other

Definition at line 117 of file request.cpp.

◆ reject()

template<typename T >
void BluezQt::Request< T >::reject

Rejects the request.

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

Definition at line 132 of file request.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.