|
| | Server (Server && src) noexcept |
| Server & | operator= (Server && src) noexcept |
| | ~Server () noexcept override |
| GDBusServer * | gobj () |
| | Provides access to the underlying C GObject.
|
| const GDBusServer * | gobj () const |
| | Provides access to the underlying C GObject.
|
| GDBusServer * | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
| void | start () |
| | Starts server.
|
| void | stop () |
| | Stops server.
|
| bool | is_active () const |
| | Gets whether server is active.
|
| std::string | get_guid () const |
| | Gets the GUID for server.
|
| ServerFlags | get_flags () const |
| | Gets the flags for server.
|
| std::string | get_client_address () const |
| | Gets a D-Bus address string that can be used by clients to connect to server.
|
| Glib::PropertyProxy_ReadOnly< bool > | property_active () const |
| | Whether the server is currently active.
|
| Glib::PropertyProxy_ReadOnly< std::string > | property_address () const |
| | The D-Bus address to listen on.
|
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< AuthObserver > > | property_authentication_observer () const |
| | A DBusAuthObserver object to assist in the authentication process or nullptr.
|
| Glib::PropertyProxy_ReadOnly< std::string > | property_client_address () const |
| | The D-Bus address that clients can use.
|
| Glib::PropertyProxy_ReadOnly< ServerFlags > | property_flags () const |
| | Flags from the DBusServerFlags enumeration.
|
| Glib::PropertyProxy_ReadOnly< std::string > | property_guid () const |
| | The guid of the server.
|
| Glib::SignalProxy< bool, const Glib::RefPtr< Connection > & > | signal_new_connection () |
| | Object (const Object &)=delete |
| Object & | operator= (const Object &)=delete |
| | Object (Object && src) noexcept |
| Object & | operator= (Object && src) noexcept |
| void * | get_data (const QueryQuark & key) |
| void | set_data (const Quark & key, void * data) |
| void | set_data (const Quark & key, void * data, DestroyNotify notify) |
| void | remove_data (const QueryQuark & quark) |
| void * | steal_data (const QueryQuark & quark) |
| | ObjectBase (const ObjectBase &)=delete |
| ObjectBase & | operator= (const ObjectBase &)=delete |
| void | set_property_value (const Glib::ustring & property_name, const Glib::ValueBase & value) |
| | You probably want to use a specific property_*() accessor method instead.
|
| void | get_property_value (const Glib::ustring & property_name, Glib::ValueBase & value) const |
| | You probably want to use a specific property_*() accessor method instead.
|
| template<class PropertyType> |
| void | set_property (const Glib::ustring & property_name, const PropertyType & value) |
| | You probably want to use a specific property_*() accessor method instead.
|
| template<class PropertyType> |
| void | get_property (const Glib::ustring & property_name, PropertyType & value) const |
| | You probably want to use a specific property_*() accessor method instead.
|
| void | connect_property_changed (const Glib::ustring & property_name, const sigc::slot< void > & slot) |
| | You can use the signal_changed() signal of the property proxy instead.
|
| void | connect_property_changed (const Glib::ustring & property_name, sigc::slot< void > && slot) |
| | You can use the signal_changed() signal of the property proxy instead.
|
| sigc::connection | connect_property_changed_with_return (const Glib::ustring & property_name, const sigc::slot< void > & slot) |
| | You can use the signal_changed() signal of the property proxy instead.
|
| sigc::connection | connect_property_changed_with_return (const Glib::ustring & property_name, sigc::slot< void > && slot) |
| | You can use the signal_changed() signal of the property proxy instead.
|
| void | freeze_notify () |
| | Increases the freeze count on object.
|
| void | thaw_notify () |
| | Reverts the effect of a previous call to freeze_notify().
|
| virtual void | reference () const |
| | Increment the reference count for this object.
|
| virtual void | unreference () const |
| | Decrement the reference count for this object.
|
| GObject * | gobj () |
| | Provides access to the underlying C GObject.
|
| const GObject * | gobj () const |
| | Provides access to the underlying C GObject.
|
| GObject * | gobj_copy () const |
| | Give a ref-ed copy to someone. Use for direct struct access.
|
| | trackable () noexcept |
| | trackable (const trackable &src) noexcept |
| | trackable (trackable &&src) |
| | ~trackable () |
| void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
| void | notify_callbacks () |
| trackable & | operator= (const trackable &src) |
| trackable & | operator= (trackable &&src) |
| void | remove_destroy_notify_callback (void *data) const |
| | Initable (Initable && src) noexcept |
| Initable & | operator= (Initable && src) noexcept |
| | ~Initable () noexcept override |
| GInitable * | gobj () |
| | Provides access to the underlying C GObject.
|
| const GInitable * | gobj () const |
| | Provides access to the underlying C GObject.
|
| | Interface () |
| | A Default constructor.
|
| | Interface (Interface && src) noexcept |
| Interface & | operator= (Interface && src) noexcept |
| | Interface (const Glib::Interface_Class & interface_class) |
| | Called by constructors of derived classes.
|
| | Interface (GObject * castitem) |
| | Called by constructors of derived classes.
|
| | ~Interface () noexcept override |
| | Interface (const Interface &)=delete |
| Interface & | operator= (const Interface &)=delete |
| GObject * | gobj () |
| const GObject * | gobj () const |
|
| static GType | get_type () |
| | Get the GType for this class, for use with the underlying GObject type system.
|
| static Glib::RefPtr< Server > | create_sync (const std::string & address, const std::string & guid, const Glib::RefPtr< AuthObserver > & observer, const Glib::RefPtr< Cancellable > & cancellable, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE) |
| | Creates a new D-Bus server that listens on the first address in address that works.
|
| static Glib::RefPtr< Server > | create_sync (const std::string & address, const std::string & guid, const Glib::RefPtr< Cancellable > & cancellable, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE) |
| | Creates a new D-Bus server that listens on the first address in address that works.
|
| static Glib::RefPtr< Server > | create_sync (const std::string & address, const std::string & guid, const Glib::RefPtr< AuthObserver > & observer, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE) |
| | Non-cancellable version of create_sync().
|
| static Glib::RefPtr< Server > | create_sync (const std::string & address, const std::string & guid, ServerFlags flags=Gio::DBus::SERVER_FLAGS_NONE) |
| | Non-cancellable version of create_sync().
|
| static void | add_interface (GType gtype_implementer) |
| static GType | get_type () |
| | Get the GType for this class, for use with the underlying GObject type system.
|
|
| | Server (const std::string & address, const std::string & guid, const Glib::RefPtr< AuthObserver > & observer, const Glib::RefPtr< Cancellable > & cancellable, ServerFlags flags) |
| | Server (const std::string & address, const std::string & guid, const Glib::RefPtr< Cancellable > & cancellable, ServerFlags flags) |
| | Server (const std::string & address, const std::string & guid, const Glib::RefPtr< AuthObserver > & observer, ServerFlags flags) |
| | Server (const std::string & address, const std::string & guid, ServerFlags flags) |
| | Object () |
| | Object (const Glib::ConstructParams & construct_params) |
| | Object (GObject * castitem) |
| | ~Object () noexcept override |
| | ObjectBase () |
| | This default constructor is called implicitly from the constructor of user-derived classes, even if, for instance, Gtk::Button calls a different ObjectBase constructor.
|
| | ObjectBase (const char * custom_type_name) |
| | A derived constructor always overrides this choice.
|
| | ObjectBase (const std::type_info & custom_type_info) |
| | This constructor is a special feature to allow creation of derived types on the fly, without having to use g_object_new() manually.
|
| | ObjectBase (ObjectBase && src) noexcept |
| ObjectBase & | operator= (ObjectBase && src) noexcept |
| virtual | ~ObjectBase () noexcept=0 |
| void | initialize (GObject * castitem) |
| void | initialize_move (GObject * castitem, Glib::ObjectBase * previous_wrapper) |
| | Initable () |
| | You should derive from this class to use it.
|
| void | init (const Glib::RefPtr< Cancellable > & cancellable) |
| | Initializes the object implementing the interface.
|
| void | init () |
| | A init() convenience overload.
|
| virtual bool | init_vfunc (const Glib::RefPtr< Cancellable > & cancellable, GError ** error) |
This is a helper for listening to and accepting D-Bus connections.
Since Server derives from Initiable, its constructors can throw an exception if construction fails.
This can be used to create a new D-Bus server, allowing two peers to use the D-Bus protocol for their own specialized communication. A server instance provided in this way will not perform message routing or implement the org.freedesktop.DBus interface.
To just export an object on a well-known name on a message bus, such as the session or system bus, you should instead use Gio::DBus::own_name().
- Since glibmm 2.28