Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qdbuscontext.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QDBUSCONTEXT_H
5
#define QDBUSCONTEXT_H
6
7
#include <QtDBus/qtdbusglobal.h>
8
#include <QtCore/qstring.h>
9
#include <QtDBus/qdbuserror.h>
10
11
#ifndef QT_NO_DBUS
12
13
QT_BEGIN_NAMESPACE
14
15
16
class
QDBusConnection
;
17
class
QDBusMessage
;
18
19
class
QDBusContextPrivate
;
20
class
Q_DBUS_EXPORT
QDBusContext
21
{
22
public
:
23
QDBusContext
();
24
~QDBusContext
();
25
26
bool
calledFromDBus()
const
;
27
QDBusConnection
connection
()
const
;
28
const
QDBusMessage
&
message
()
const
;
29
30
// convenience methods
31
bool
isDelayedReply()
const
;
32
// yes, they are const, so that you can use them even from const methods
33
void
setDelayedReply(
bool
enable
)
const
;
34
void
sendErrorReply(
const
QString
&
name
,
const
QString
&msg =
QString
())
const
;
35
void
sendErrorReply(
QDBusError::ErrorType
type
,
const
QString
&msg =
QString
())
const
;
36
37
private
:
38
QDBusContextPrivate
*d_ptr;
39
friend
class
QDBusContextPrivate
;
40
};
41
42
QT_END_NAMESPACE
43
44
#endif
// QT_NO_DBUS
45
#endif
QDBusConnection
\inmodule QtDBus
Definition
qdbusconnection.h:42
QDBusContextPrivate
Definition
qdbuscontext_p.h:30
QDBusContext
The QDBusContext class allows slots to determine the D-Bus context of the calls.
Definition
qdbuscontext.h:21
QDBusError::ErrorType
ErrorType
In order to facilitate verification of the most common D-Bus errors generated by the D-Bus implementa...
Definition
qdbuserror.h:24
QDBusMessage
\inmodule QtDBus
Definition
qdbusmessage.h:22
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
connection
DBusConnection * connection
Definition
qdbus_symbols_p.h:155
type
GLenum type
Definition
qopengles2ext.h:150
enable
GLboolean enable
Definition
qopengles2ext.h:855
message
GLuint GLsizei const GLchar * message
Definition
qopengles2ext.h:154
name
GLuint name
Definition
qopengles2ext.h:156
qtbase
src
dbus
qdbuscontext.h
Generated by
1.9.7