dbus-cxx logo
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil > Class Template Reference

Subclass of the numbered sigc::signal templates. More...

#include <dbus_signal.h>

Inheritance diagram for DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >:
Inheritance graph
[legend]

Public Types

typedef DBusCxxPointer< signalpointer
- Public Types inherited from DBus::signal_base
typedef DBusCxxPointer
< signal_base
pointer

Public Member Functions

 signal (const std::string &interface, const std::string &name)
 signal (const std::string &path, const std::string &interface, const std::string &name)
 signal (const std::string &interface, const std::string &name, const signal &src)
 signal (const std::string &path, const std::string &interface, const std::string &name, const signal &src)
virtual signal_base::pointer clone ()
virtual std::string introspect (int space_depth=0) const
 Returns a DBus XML description of this interface.
virtual std::string arg_name (size_t i)
virtual void set_arg_name (size_t i, const std::string &name)
- Public Member Functions inherited from DBus::signal_base
virtual ~signal_base ()
DBusCxxPointer< Connectionconnection ()
void set_connection (DBusCxxPointer< Connection > connection)
const std::string & sender () const
void set_sender (const std::string &s)
const std::string & interface () const
void set_interface (const std::string &i)
const std::string & name () const
void set_name (const std::string &n)
const Pathpath () const
void set_path (const std::string &s)
const std::string & destination () const
void set_destination (const std::string &s)

Static Public Member Functions

static pointer create (const std::string &interface, const std::string &name)
static pointer create (const std::string &path, const std::string &interface, const std::string &name)
static pointer create (const std::string &interface, const std::string &name, const signal &src)
static pointer create (const std::string &path, const std::string &interface, const std::string &name, const signal &src)

Protected Member Functions

T_return internal_callback (T_arg1 arg1)
- Protected Member Functions inherited from DBus::signal_base
 signal_base (const std::string &path, const std::string &interface, const std::string &name)
 signal_base (const std::string &interface, const std::string &name)
 signal_base (DBusCxxPointer< Connection > connection, const std::string &path, const std::string &interface, const std::string &name)
 signal_base (DBusCxxPointer< Connection > connection, const std::string &interface, const std::string &name)
 signal_base (const signal_base &other)
bool handle_dbus_outgoing (Message::const_pointer)

Protected Attributes

std::string m_arg_names [1]
sigc::connection m_internal_callback_connection
- Protected Attributes inherited from DBus::signal_base
DBusCxxWeakPointer< Connectionm_connection
std::string m_sender
Path m_path
std::string m_interface
std::string m_name
std::string m_destination
std::string m_match_rule

Friends

class Interface

Detailed Description

template<class T_return, class T_arg1>
class DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >

Subclass of the numbered sigc::signal templates.

This class defines a subclass of the sigc::signal types and can be used as its parent. The key difference is that when the signal is emitted a DBus signal message is created using the parameters of the signal emission and transmitted via the dbus in addition to any local signal propagation that may take place.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Member Typedef Documentation

template<class T_return , class T_arg1 >
typedef DBusCxxPointer<signal> DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::pointer

Constructor & Destructor Documentation

template<class T_return , class T_arg1 >
DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::signal ( const std::string &  interface,
const std::string &  name 
)
inline
template<class T_return , class T_arg1 >
DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::signal ( const std::string &  path,
const std::string &  interface,
const std::string &  name 
)
inline
template<class T_return , class T_arg1 >
DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::signal ( const std::string &  interface,
const std::string &  name,
const signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil > &  src 
)
inline
template<class T_return , class T_arg1 >
DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::signal ( const std::string &  path,
const std::string &  interface,
const std::string &  name,
const signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil > &  src 
)
inline

Member Function Documentation

template<class T_return , class T_arg1 >
virtual std::string DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::arg_name ( size_t  i)
inlinevirtual
template<class T_return , class T_arg1 >
virtual signal_base::pointer DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::clone ( )
inlinevirtual
template<class T_return , class T_arg1 >
static pointer DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::create ( const std::string &  interface,
const std::string &  name 
)
inlinestatic
template<class T_return , class T_arg1 >
static pointer DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::create ( const std::string &  path,
const std::string &  interface,
const std::string &  name 
)
inlinestatic
template<class T_return , class T_arg1 >
static pointer DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::create ( const std::string &  interface,
const std::string &  name,
const signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil > &  src 
)
inlinestatic
template<class T_return , class T_arg1 >
static pointer DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::create ( const std::string &  path,
const std::string &  interface,
const std::string &  name,
const signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil > &  src 
)
inlinestatic
template<class T_return , class T_arg1 >
T_return DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::internal_callback ( T_arg1  arg1)
inlineprotected
template<class T_return , class T_arg1 >
virtual std::string DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::introspect ( int  space_depth = 0) const
inlinevirtual
template<class T_return , class T_arg1 >
virtual void DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::set_arg_name ( size_t  i,
const std::string &  name 
)
inlinevirtual

Friends And Related Function Documentation

template<class T_return , class T_arg1 >
friend class Interface
friend

Member Data Documentation

template<class T_return , class T_arg1 >
std::string DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::m_arg_names[1]
protected
template<class T_return , class T_arg1 >
sigc::connection DBus::signal< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::m_internal_callback_connection
protected

The documentation for this class was generated from the following file:

Generated on Sat Sep 21 2013 17:22:40 for dbus-cxx by doxygen 1.8.1.2