source: trunk/doc/src/snippets/code/src_qdbus_qdbusinterface.cpp@ 5

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

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

File size: 406 bytes
Line 
1//! [0]
2QDBusInterface remoteApp( "com.example.Calculator", "/Calculator/Operations",
3 "org.mathematics.RPNCalculator" );
4remoteApp.call( "PushOperand", 2 );
5remoteApp.call( "PushOperand", 2 );
6remoteApp.call( "ExecuteOperation", "+" );
7QDBusReply<int> reply = remoteApp.call( "PopOperand" );
8
9if ( reply.isValid() )
10 printf( "%d", reply.value() ); // prints 4
11//! [0]
Note: See TracBrowser for help on using the repository browser.