DBus-1-TQt
1.0
Loading...
Searching...
No Matches
tqdbusmessage.h
Go to the documentation of this file.
1
/* qdbusmessage.h TQT_DBusMessage object
2
*
3
* Copyright (C) 2005 Harald Fernengel <harry@kdevelop.org>
4
* Copyright (C) 2005-2007 Kevin Krammer <kevin.krammer@gmx.at>
5
*
6
* Licensed under the Academic Free License version 2.1
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21
* USA.
22
*
23
*/
24
25
#ifndef TQDBUSMESSAGE_H
26
#define TQDBUSMESSAGE_H
27
28
#include "
tqdbusmacros.h
"
29
#include "
tqdbusdata.h
"
30
31
#include <tqvaluelist.h>
32
33
#include <limits.h>
34
35
class
TQT_DBusError
;
36
class
TQT_DBusMessagePrivate
;
37
struct
DBusMessage;
38
115
class
TQDBUS_EXPORT
TQT_DBusMessage
:
public
TQValueList
<TQT_DBusData>
116
{
117
friend
class
TQT_DBusConnection
;
118
public
:
125
enum
126
{
130
DefaultTimeout = -1,
131
135
NoTimeout = INT_MAX
136
};
137
151
enum
MessageType
152
{
157
InvalidMessage
,
158
164
MethodCallMessage
,
165
171
ReplyMessage
,
172
178
ErrorMessage
,
179
185
SignalMessage
186
};
187
196
TQT_DBusMessage
();
197
198
207
TQT_DBusMessage
(
const
TQT_DBusMessage
&other);
208
215
~TQT_DBusMessage
();
216
231
TQT_DBusMessage
&operator=(
const
TQT_DBusMessage
&other);
232
249
static
TQT_DBusMessage
signal(
const
TQString &path,
const
TQString &interface,
250
const
TQString &member);
251
272
static
TQT_DBusMessage
methodCall(
const
TQString &service,
const
TQString &path,
273
const
TQString &interface,
const
TQString &method);
274
290
static
TQT_DBusMessage
methodReply(
const
TQT_DBusMessage
&other);
291
308
static
TQT_DBusMessage
methodError(
const
TQT_DBusMessage
&other,
const
TQT_DBusError
& error);
309
327
TQString path()
const
;
328
346
TQString interface()
const
;
347
365
TQString member()
const
;
366
385
TQString sender()
const
;
386
398
TQT_DBusError
error()
const
;
399
405
MessageType type()
const
;
406
414
int
timeout()
const
;
415
436
void
setTimeout(
int
ms);
437
452
int
serialNumber()
const
;
453
475
int
replySerialNumber()
const
;
476
477
//protected:
490
DBusMessage *toDBusMessage()
const
;
491
507
static
TQT_DBusMessage
fromDBusMessage(DBusMessage *dmsg);
508
509
private
:
510
TQT_DBusMessagePrivate
*
d
;
511
};
512
513
#endif
514
TQT_DBusConnection
Provides access to a specific D-Bus bus.
Definition
tqdbusconnection.h:172
TQT_DBusError
Class for transporting D-Bus errors.
Definition
tqdbuserror.h:41
TQT_DBusMessage
A message converts and transports data over D-Bus.
Definition
tqdbusmessage.h:116
TQT_DBusMessage::d
TQT_DBusMessagePrivate * d
Definition
tqdbusmessage.h:510
TQT_DBusMessage::MessageType
MessageType
D-Bus message types.
Definition
tqdbusmessage.h:152
TQT_DBusMessage::MethodCallMessage
@ MethodCallMessage
Definition
tqdbusmessage.h:164
TQT_DBusMessage::ReplyMessage
@ ReplyMessage
Definition
tqdbusmessage.h:171
TQT_DBusMessage::ErrorMessage
@ ErrorMessage
Definition
tqdbusmessage.h:178
TQT_DBusMessage::InvalidMessage
@ InvalidMessage
Definition
tqdbusmessage.h:157
TQT_DBusMessagePrivate
Definition
tqdbusmessage_p.h:36
TQValueList
Definition
tqdbusdata.h:37
tqdbusdata.h
tqdbusmacros.h
TQDBUS_EXPORT
#define TQDBUS_EXPORT
Definition
tqdbusmacros.h:29
build
dbus-1-tqt-6om2Y2
dbus-1-tqt-14.1.4
src
tqdbusmessage.h
Generated by
1.9.8