Ubuntu TV Media Scanner
A centralized index for removable media content.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
mediascanner::dbus::ReadOnlyPropertyImplementation< T > Class Template Reference

#include <mediascanner/dbusutils.h>

+ Inheritance diagram for mediascanner::dbus::ReadOnlyPropertyImplementation< T >:

Public Types

typedef PropertyImplementation
< T,
G_DBUS_PROPERTY_INFO_FLAGS_READABLE > 
inherited
 
- Public Types inherited from mediascanner::dbus::PropertyImplementation< T, G_DBUS_PROPERTY_INFO_FLAGS_READABLE >
typedef Property< T, Flags > property_type
 
- Public Types inherited from mediascanner::dbus::Property< T, Flags >
typedef T value_type
 
typedef Type< T > dbus_type
 
- Public Types inherited from mediascanner::dbus::Member< GDBusPropertyInfo >
typedef GDBusPropertyInfo dbus_info_type
 Type of the GDBus introspection structure for this members. More...
 
typedef SkeletonTrait
< dbus_info_type >::type 
skeleton_type
 

Public Member Functions

 ReadOnlyPropertyImplementation (const std::string &name)
 
bool SetValue (const std::string &, const std::string &, GVariant *, GError **error) const
 Updates the value of this D-Bus property. More...
 
- Public Member Functions inherited from mediascanner::dbus::PropertyImplementation< T, G_DBUS_PROPERTY_INFO_FLAGS_READABLE >
 PropertyImplementation (const std::string &name)
 
bool readable () const
 
bool writable () const
 
- Public Member Functions inherited from mediascanner::dbus::Property< T, Flags >
Wrapper< dbus_info_typeinfo () const
 
- Public Member Functions inherited from mediascanner::dbus::Member< GDBusPropertyInfo >
virtual ~Member ()
 
const std::string & name () const
 
const skeleton_type * skeleton () const
 

Additional Inherited Members

- Static Public Member Functions inherited from mediascanner::dbus::Property< T, Flags >
static bool readable ()
 Predicate if this property can be read. More...
 
static bool writable ()
 Predicate if this property can be written. More...
 
- Protected Member Functions inherited from mediascanner::dbus::Property< T, Flags >
 Property (const std::string &name, PropertySkeleton *skeleton)
 
- Protected Member Functions inherited from mediascanner::dbus::PropertySkeleton
virtual ~PropertySkeleton ()
 
virtual GVariantGetValue (const std::string &sender, const std::string &target, GError **error) const =0
 Retrieves the value of this D-Bus property. More...
 

Member Typedef Documentation

template<typename T >
typedef PropertyImplementation<T, G_DBUS_PROPERTY_INFO_FLAGS_READABLE> mediascanner::dbus::ReadOnlyPropertyImplementation< T >::inherited

Constructor & Destructor Documentation

template<typename T >
mediascanner::dbus::ReadOnlyPropertyImplementation< T >::ReadOnlyPropertyImplementation ( const std::string &  name)
inlineexplicit

Member Function Documentation

template<typename T >
bool mediascanner::dbus::ReadOnlyPropertyImplementation< T >::SetValue ( const std::string &  sender,
const std::string &  target,
GVariant value,
GError **  error 
) const
inlinevirtual

Updates the value of this D-Bus property.

Parameters
[in]senderThe sender of this D-Bus request.
[in]targetThe target of this D-Bus request.
[in]valueThe new value for this property.
[out]errorLocation for storing a possible error.
Returns
true on success

Implements mediascanner::dbus::PropertySkeleton.