Home | History | Annotate | Download | only in glib

Lines Matching refs:Proxy

67   friend class Proxy;
81 // \brief Proxy manages the ref-count for a ::DBusGProxy*.
83 // Proxy has reference semantics and represents a connection to on object on
84 // the bus. A proxy object is constructed with a connection to a bus, a name
88 class BRILLO_EXPORT Proxy {
92 Proxy();
96 Proxy(const BusConnection& connection,
102 // Equivalent to Proxy(connection, name, path, interface, false).
103 Proxy(const BusConnection& connection,
108 // Creates a peer proxy using dbus_g_proxy_new_for_peer.
109 Proxy(const BusConnection& connection,
113 Proxy(const Proxy& x);
115 ~Proxy();
117 Proxy& operator=(Proxy x) {
123 DCHECK(object_) << "referencing an empty proxy";
131 DCHECK(object_) << "referencing an empty proxy";
150 friend void swap(Proxy& x, Proxy& y);
155 inline void swap(Proxy& x, Proxy& y) {
182 MonitorConnection(const Proxy& proxy,
186 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {}
191 const Proxy& proxy() const { return proxy_; }
195 Proxy proxy_;
204 MonitorConnection(const Proxy& proxy,
208 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {}
213 const Proxy& proxy() const { return proxy_; }
217 Proxy proxy_;
226 MonitorConnection(const Proxy& proxy,
230 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {}
235 const Proxy& proxy() const { return proxy_; }
239 Proxy proxy_;
248 MonitorConnection(const Proxy& proxy,
252 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {}
262 const Proxy& proxy() const { return proxy_; }
266 Proxy proxy_;
273 MonitorConnection<void(A1)>* Monitor(const Proxy& proxy,
279 ConnectionType* result = new ConnectionType(proxy, name, monitor, object);
282 proxy.gproxy(), name, glib::type_to_gtypeid<A1>(), G_TYPE_INVALID);
284 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr);
289 MonitorConnection<void(A1, A2)>* Monitor(const Proxy& proxy,
295 ConnectionType* result = new ConnectionType(proxy, name, monitor, object);
297 ::dbus_g_proxy_add_signal(proxy.gproxy(),
303 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr);
308 MonitorConnection<void(A1, A2, A3)>* Monitor(const Proxy& proxy,
314 ConnectionType* result = new ConnectionType(proxy, name, monitor, object);
316 ::dbus_g_proxy_add_signal(proxy.gproxy(),
323 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr);
329 const Proxy& proxy,
335 ConnectionType* result = new ConnectionType(proxy, name, monitor, object);
337 ::dbus_g_proxy_add_signal(proxy.gproxy(),
345 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr);
353 ::dbus_g_proxy_disconnect_signal(connection->proxy().gproxy(),
360 // \brief call_PtrArray() invokes a method on a proxy returning a
364 // way to make method calls to a proxy. It will likely be replaced with
365 // something like Call(proxy, method, arg1, arg2, ..., ResultType*) in the
368 BRILLO_EXPORT bool CallPtrArray(const Proxy& proxy,
373 // proxy.
375 // Given a proxy to an object supporting the org.freedesktop.DBus.Properties
382 // Proxy proxy(GetSystemBusConnection(),
388 // if (RetrieveProperty(proxy,
395 inline bool RetrieveProperty(const Proxy& proxy,
402 if (!::dbus_g_proxy_call(proxy.gproxy(), "Get", &Resetter(&error).lvalue(),
418 BRILLO_EXPORT bool RetrieveProperties(const Proxy& proxy,
440 // Used when there is no definite named signal sender (that Proxy