libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
qi::ProxyProperty< T > Class Template Reference

#include <proxyproperty.hpp>

Public Types

typedef SignalF< void(const T &)> SignalType
 
- Public Types inherited from qi::Property< T >
typedef PropertyImpl< T > ImplType
 
typedef ImplType::Getter Getter
 
typedef ImplType::Setter Setter
 
- Public Types inherited from qi::PropertyImpl< T >
typedef boost::function< bool(T
&, const T &)> 
Setter
 
typedef boost::function< T(const
T &)> 
Getter
 
typedef SignalF< void(const T &)> SignalType
 
typedef T PropertyType
 
- Public Types inherited from qi::SignalF< void(const T &)>
typedef void(const T &) FunctionType
 
- Public Types inherited from qi::SignalBase
typedef boost::function< void(bool)> OnSubscribers
 

Public Member Functions

 ProxyProperty ()
 
 ProxyProperty (AnyObject object, const std::string &propertyName)
 
void setup (AnyObject object, const std::string &propertyName)
 
 ~ProxyProperty ()
 
void onSubscribe (bool enable, GenericObject *object, const std::string &propertyName, SignalLink link)
 
AnyReference bounceEvent (const AnyReferenceVector args)
 
void triggerOverride (const GenericFunctionParameters &params, MetaCallType, GenericObject *object, const std::string &propertyName)
 
- Public Member Functions inherited from qi::Property< T >
 Property (Getter getter=Getter(), Setter setter=Setter(), SignalBase::OnSubscribers onsubscribe=SignalBase::OnSubscribers())
 
 Property (AutoAnyReference defaultValue, Getter getter=Getter(), Setter setter=Setter(), SignalBase::OnSubscribers onsubscribe=SignalBase::OnSubscribers())
 
virtual SignalBase * signal ()
 
virtual void setValue (AutoAnyReference value)
 
virtual AnyValue value () const
 
- Public Member Functions inherited from qi::PropertyImpl< T >
 PropertyImpl (Getter getter=Getter(), Setter setter=Setter(), SignalBase::OnSubscribers onsubscribe=SignalBase::OnSubscribers())
 
virtual ~PropertyImpl ()
 
T get () const
 
void set (const T &v)
 
void operator= (const T &v)
 
- Public Member Functions inherited from qi::SignalF< void(const T &)>
 SignalF (OnSubscribers onSubscribers=OnSubscribers())
 
virtual qi::Signature signature () const
 
SignalSubscriber & connect (...)
 
- Public Member Functions inherited from qi::SignalBase
 SignalBase (const Signature &signature, OnSubscribers onSubscribers=OnSubscribers())
 
 SignalBase (OnSubscribers onSubscribers=OnSubscribers())
 
virtual ~SignalBase ()
 
template<typename F >
SignalSubscriber & connect (const boost::function< F > &func)
 
SignalSubscriber & connect (const SignalSubscriber &s)
 
SignalSubscriber & connect (AnyObject object, const unsigned int slot)
 
SignalSubscriber & connect (AnyObject object, const std::string &slot)
 
bool disconnectAll ()
 
bool asyncDisconnectAll ()
 
bool disconnect (const SignalLink &link)
 
bool asyncDisconnect (const SignalLink &link)
 
virtual void trigger (const GenericFunctionParameters &params, MetaCallType callType=MetaCallType_Auto)
 
void setCallType (MetaCallType callType)
 Set the MetaCallType used by operator()(). More...
 
void operator() (qi::AutoAnyReference p1=qi::AutoAnyReference(), qi::AutoAnyReference p2=qi::AutoAnyReference(), qi::AutoAnyReference p3=qi::AutoAnyReference(), qi::AutoAnyReference p4=qi::AutoAnyReference(), qi::AutoAnyReference p5=qi::AutoAnyReference(), qi::AutoAnyReference p6=qi::AutoAnyReference(), qi::AutoAnyReference p7=qi::AutoAnyReference(), qi::AutoAnyReference p8=qi::AutoAnyReference())
 Trigger the signal with given arguments, and call type set by setCallType() More...
 
std::vector< SignalSubscriber > subscribers ()
 
bool hasSubscribers ()
 
void _setSignature (const Signature &s)
 
- Public Member Functions inherited from qi::PropertyBase
virtual ~PropertyBase ()
 

Additional Inherited Members

- Public Attributes inherited from qi::SignalBase
boost::shared_ptr
< SignalBasePrivate > 
_p
 
- Static Public Attributes inherited from qi::SignalBase
static const SignalLink invalidSignalLink
 
- Protected Types inherited from qi::SignalBase
typedef boost::function< void(const
GenericFunctionParameters
&params, MetaCallType callType)> 
Trigger
 
- Protected Member Functions inherited from qi::SignalBase
void callSubscribers (const GenericFunctionParameters &params, MetaCallType callType=MetaCallType_Auto)
 
void setTriggerOverride (Trigger trigger)
 
void setOnSubscribers (OnSubscribers onSubscribers)
 
void callOnSubscribe (bool v)
 
void createNewTrackLink (int &id, SignalLink *&trackLink)
 
void disconnectTrackLink (int id)
 
- Protected Attributes inherited from qi::PropertyImpl< T >
Getter _getter
 
Setter _setter
 
T _value
 

Detailed Description

template<typename T>
class qi::ProxyProperty< T >

Property proxy using AnyObject as backend

Warning
reading and writing the property are synchronous operations and might take time if backend object is a remote proxy.

Definition at line 22 of file proxyproperty.hpp.

Member Typedef Documentation

template<typename T>
typedef SignalF<void (const T&)> qi::ProxyProperty< T >::SignalType

Definition at line 25 of file proxyproperty.hpp.

Constructor & Destructor Documentation

template<typename T>
qi::ProxyProperty< T >::ProxyProperty ( )
inline

Definition at line 26 of file proxyproperty.hpp.

template<typename T>
qi::ProxyProperty< T >::ProxyProperty ( AnyObject  object,
const std::string &  propertyName 
)
inline

Definition at line 32 of file proxyproperty.hpp.

template<typename T >
qi::ProxyProperty< T >::~ProxyProperty ( )

Definition at line 59 of file proxyproperty.hpp.

Member Function Documentation

template<typename T >
AnyReference qi::ProxyProperty< T >::bounceEvent ( const AnyReferenceVector  args)

Definition at line 101 of file proxyproperty.hpp.

template<typename T >
void qi::ProxyProperty< T >::onSubscribe ( bool  enable,
GenericObject *  object,
const std::string &  propertyName,
SignalLink  link 
)

Definition at line 79 of file proxyproperty.hpp.

template<typename T >
void qi::ProxyProperty< T >::setup ( AnyObject  object,
const std::string &  propertyName 
)

Definition at line 65 of file proxyproperty.hpp.

template<typename T >
void qi::ProxyProperty< T >::triggerOverride ( const GenericFunctionParameters &  params,
MetaCallType  ,
GenericObject *  object,
const std::string &  propertyName 
)

Definition at line 109 of file proxyproperty.hpp.


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