source: trunk/doc/src/snippets/code/src_qdbus_qdbusreply.cpp@ 244

Last change on this file since 244 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 304 bytes
Line 
1//! [0]
2QDBusReply<QString> reply = interface->call("RemoteMethod");
3if (reply.isValid())
4 // use the returned value
5 useValue(reply.value());
6else
7 // call failed. Show an error condition.
8 showError(reply.error());
9//! [0]
10
11
12//! [1]
13QString reply = interface->call("RemoteMethod");
14//! [1]
Note: See TracBrowser for help on using the repository browser.