Lines Matching full:proxy
68 friend class Proxy; variable
82 // \brief Proxy manages the ref-count for a ::DBusGProxy*.
84 // Proxy has reference semantics and represents a connection to on object on
85 // the bus. A proxy object is constructed with a connection to a bus, a name
89 class BRILLO_EXPORT Proxy {
93 Proxy();
97 Proxy(const BusConnection& connection,
103 // Equivalent to Proxy(connection, name, path, interface, false).
104 Proxy(const BusConnection& connection,
109 // Creates a peer proxy using dbus_g_proxy_new_for_peer.
110 Proxy(const BusConnection& connection,
114 Proxy(const Proxy& x);
116 ~Proxy();
118 Proxy& operator=(Proxy x) {
124 DCHECK(object_) << "referencing an empty proxy"; in path()
132 DCHECK(object_) << "referencing an empty proxy"; in gproxy()
151 friend void swap(Proxy& x, Proxy& y);
156 inline void swap(Proxy& x, Proxy& y) { in swap()
183 MonitorConnection(const Proxy& proxy, in MonitorConnection() argument
187 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {} in MonitorConnection()
192 const Proxy& proxy() const { return proxy_; } in proxy() function
196 Proxy proxy_;
205 MonitorConnection(const Proxy& proxy, in MonitorConnection() argument
209 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {} in MonitorConnection()
214 const Proxy& proxy() const { return proxy_; } in proxy() function
218 Proxy proxy_;
227 MonitorConnection(const Proxy& proxy, in MonitorConnection() argument
231 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {} in MonitorConnection()
236 const Proxy& proxy() const { return proxy_; } in proxy() function
240 Proxy proxy_;
249 MonitorConnection(const Proxy& proxy, in MonitorConnection() argument
253 : proxy_(proxy), name_(name), monitor_(monitor), object_(object) {} in MonitorConnection()
263 const Proxy& proxy() const { return proxy_; } in proxy() function
267 Proxy proxy_;
274 MonitorConnection<void(A1)>* Monitor(const Proxy& proxy, in Monitor() argument
280 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
283 proxy.gproxy(), name, glib::type_to_gtypeid<A1>(), G_TYPE_INVALID); in Monitor()
285 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
290 MonitorConnection<void(A1, A2)>* Monitor(const Proxy& proxy, in Monitor() argument
296 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
298 ::dbus_g_proxy_add_signal(proxy.gproxy(), in Monitor()
304 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
309 MonitorConnection<void(A1, A2, A3)>* Monitor(const Proxy& proxy, in Monitor() argument
315 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
317 ::dbus_g_proxy_add_signal(proxy.gproxy(), in Monitor()
324 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
330 const Proxy& proxy, in Monitor() argument
336 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
338 ::dbus_g_proxy_add_signal(proxy.gproxy(), in Monitor()
346 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
354 ::dbus_g_proxy_disconnect_signal(connection->proxy().gproxy(), in Disconnect()
361 // \brief call_PtrArray() invokes a method on a proxy returning a
365 // way to make method calls to a proxy. It will likely be replaced with
366 // something like Call(proxy, method, arg1, arg2, ..., ResultType*) in the
369 BRILLO_EXPORT bool CallPtrArray(const Proxy& proxy,
374 // proxy.
376 // Given a proxy to an object supporting the org.freedesktop.DBus.Properties
383 // Proxy proxy(GetSystemBusConnection(),
389 // if (RetrieveProperty(proxy,
396 inline bool RetrieveProperty(const Proxy& proxy, in RetrieveProperty() argument
403 if (!::dbus_g_proxy_call(proxy.gproxy(), "Get", &Resetter(&error).lvalue(), in RetrieveProperty()
419 BRILLO_EXPORT bool RetrieveProperties(const Proxy& proxy,
441 // Used when there is no definite named signal sender (that Proxy