# DBus-C++

## Desktop Communication Bus System

libdbus-c-- Documentation 0.9.0

- Files
- Data Structures
- Globals
- Main Page

pendingcall.h
Go to the documentation of this file.
1/*
2 *
3 * D-Bus++ - C++ bindings for D-Bus
4 *
5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com>
6 *
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library 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 GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23
24
25#ifndef __DBUSXX_PENDING_CALL_H
26#define __DBUSXX_PENDING_CALL_H
27
28#include "api.h"
29#include "util.h"
30#include "message.h"
31
32 namespace DBus
33{
34
35 class Connection;
36
37 class DXXAPI PendingCall
38{
39 public:
40
41 struct Private;
42
43 PendingCall(Private *);
44
45 PendingCall(const PendingCall &);
46
47 virtual ~PendingCall();
48
49 PendingCall &operator = (const PendingCall &);
50
56 bool completed();
57
72 void cancel();
73
83 void block();
84
95 void data(void *data);
96
104 void *data();
105
109 Slot<void, PendingCall &>& slot();
110
121 Message steal_reply();
122
123 private:
124
125 RefPtrI<Private> _pvt;
126
127 friend struct Private;
128 friend class Connection;
129};
130
131} /* namespace DBus */
132
133#endif//__DBUSXX_PENDING_CALL_H
api.h
DXXAPI
#define DXXAPI
Definition api.h:36
DBus::Connection
Definition connection.h:49
DBus::Message
Definition message.h:159
DBus::PendingCall::cancel
void cancel()
Cancels the pending call, such that any reply or error received will just be ignored.
Definition pendingcall.cpp:99
DBus::PendingCall::slot
Slot< void, PendingCall & > & slot()
Definition pendingcall.cpp:122
DBus::PendingCall::steal_reply
Message steal_reply()
Gets the reply.
Definition pendingcall.cpp:127
DBus::PendingCall::completed
bool completed()
Checks whether the pending call has received a reply yet, or not.
Definition pendingcall.cpp:94
DBus::PendingCall::PendingCall
PendingCall(Private *)
Definition pendingcall.cpp:63
DBus::PendingCall::Connection
friend class Connection
Definition pendingcall.h:128
DBus::PendingCall::data
void data(void *data)
Stores a pointer on a PendingCall, along with an optional function to be used for freeing the data wh...
Definition pendingcall.cpp:109
DBus::PendingCall::block
void block()
Block until the pending call is completed.
Definition pendingcall.cpp:104
DBus::PendingCall::_pvt
RefPtrI< Private > _pvt
Definition pendingcall.h:125
DBus::RefPtrI
Definition util.h:114
DBus::Slot
Definition util.h:226
message.h
DBus
Definition connection_p.h:42
DBus::PendingCall::Private
Definition pendingcall_p.h:41
util.h