| Top |
| struct | GoaProviderFactory |
| struct | GoaProviderFactoryClass |
| #define | GOA_PROVIDER_FACTORY_EXTENSION_POINT_NAME |
GoaProviderFactory implementations are used to dynamically create GoaProvider instances.
GoaProvider * goa_provider_factory_get_provider (GoaProviderFactory *factory,const gchar *provider_name);
Create a dynamic GoaProvider for the subclass-specific provider_name
.
factory |
||
provider_name |
A provider type identifier (ie. IM protocol names in GoaTelepathyFactory) |
A GoaProvider (that must be freed
with g_object_unref()) or NULL if not found.
[transfer full]
void goa_provider_factory_get_providers (GoaProviderFactory *factory,GAsyncReadyCallback callback,gpointer user_data);
Get asynchronously a list of GoaProvider instances handled by factory
.
When the result is ready, callback
will be called in the the goa_provider_factory_get_providers_finish() to get the result
of the operation.
This is a virtual method that must be implemented by subclasses.
gboolean goa_provider_factory_get_providers_finish (GoaProviderFactory *factory,GList **out_providers,GAsyncResult *result,GError **error);
Finishes an operation started with goa_provider_factory_get_providers()
This is a virtual method that subclasses may implement. The default implementation is suitable for
GSimpleAsyncResult an implementation of goa_provider_factory_get_providers() using GSimpleAsyncResult.
factory |
||
out_providers |
Return location for a list of GoaProvider instances handled by |
[out] |
result |
A GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
struct GoaProviderFactory;
The GoaProviderFactory structure contains only private data and should only be accessed using the provided API.
struct GoaProviderFactoryClass {
GObjectClass parent_class;
/* Mandatory to implement. */
GoaProvider *(*get_provider) (GoaProviderFactory *factory,
const gchar *provider_name);
/* The async method is mandatory to implement, but _finish has a default
* implementation suitable for a GSimpleAsyncResult. */
void (*get_providers) (GoaProviderFactory *factory,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*get_providers_finish) (GoaProviderFactory *factory,
GList **out_providers,
GAsyncResult *result,
GError **error);
};
Class structure for GoaProviderFactory.
GObjectClass |
The parent class. |
|
Virtual function for |
||
Virtual function for |
||
Virtual function for |
#define GOA_PROVIDER_FACTORY_EXTENSION_POINT_NAME "goa-backend-provider-factory"
Extension point for GoaProviderFactory implementations.