Commit Graph

4 Commits

Author SHA1 Message Date
e8b4f7de7f EClientCache cleanups. 2013-02-27 11:45:47 -05:00
2c195f2266 Add e_client_cache_is_backend_dead().
Returns TRUE if an EClient instance for the given source and extension
name was recently discarded after having emitted a "backend-died" signal,
and a replacement EClient instance has not yet been created.
2013-02-20 16:35:58 -05:00
1abd497f66 EClientCache: Add a "client-notify" signal.
Rebroadcasts a GObject::notify signal emitted by a cached EClient.
2013-02-20 16:35:58 -05:00
cefa5edf7f Add EClientCache.
New class to help reduce code duplication and centralize some EClient
handling policies.

Benefits:

- EClient instances can be shared across the entire application.

- Centralized rebroadcasting of "backend-died" and "backend-error"
  signals emitted from cached EClient instances.

- Automatic cache invalidation when backends crash.  The EClient
  is discarded, and a new instance is created on the next request.
2013-02-16 18:57:08 -05:00