
sigc++'s signal and slot system for both Objects and their proxies.sigc++ documentation and are beyond the scope of this tutorial.tr1 (Technical Report 1), which as of this writing has been accepted by the committee and recommended to ISO for incorporation as the first revision to the C++ standard. A reference implementation can be found in the boost library, the std::tr1 namespace of gcc 4.0 or greater, or the C++0x draft standard in gcc 4.3 or greater.pointer typedef and the create method defined in each dbus-cxx class.pointer typedef is defined within each class and is typedefed to a smart pointer to that specific class. Thus, DBus::Connection::pointer is a smart pointer to a D-Bus Connection endpoint, and DBus::CallMessage::pointer is a smart pointer to a D-Bus call message.create() methods with parameters that are identical to the class' constructors. Class constructors are protected, so in general you cannot access them.create() method to dynamically creates an instance of the class. This method will returns a smart pointer of the appropriate type for that class similar to the way the new operator dynamically creates an object and returns a raw pointer to the newly created object.create() method is static, you do not need an instance of the class to call it; Classname::create() is sufficient. Thus, to create a new dbus-cxx call message you would use DBus::CallMessage::create() and to create a new dbus-cxx connection you would use DBus::Connection::create().create() can be assigned to the class' pointer type, which allows you to use a syntax such as: DBus::CallMessage::pointer my_callmessage = DBus::CallMessage::create();
Continue On: Quick start example 0: A simple server and client
Go Back: Quick Start Guide to dbus-cxx
1.6.1