X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-platform-factory.h;h=6932503343304460a4665ec6d5944b308c5b3a12;hp=946fc88ca3968b186f866766c4d148b9327d9715;hb=675c12de1bbd388200f571960ed4741e3073227a;hpb=b691e563dd858d472dc25de76704c5410e60d352 diff --git a/src/modest-tny-platform-factory.h b/src/modest-tny-platform-factory.h index 946fc88..6932503 100644 --- a/src/modest-tny-platform-factory.h +++ b/src/modest-tny-platform-factory.h @@ -33,10 +33,7 @@ #define __MODEST_TNY_PLATFORM_FACTORY_H__ #include - #include -#include "modest-account-mgr.h" -#include "modest-conf.h" G_BEGIN_DECLS @@ -59,15 +56,27 @@ struct _ModestTnyPlatformFactoryClass { GObjectClass parent_class; }; -/* member functions */ + +/** + * modest_tny_platform_factory_get_type: + * + * get the GType for #ModestTnyPlatformFactory + * + * Returns: the GType for #ModestTnyPlatformFactory + */ GType modest_tny_platform_factory_get_type (void) G_GNUC_CONST; +/** + * modest_tny_platform_factory_get_instance: + * + * Gets a new instance of the platform factory if it is the first call + * to the function, or the current one otherwise. This object is + * supposed to be a singleton + * + * Returns: the instance of a #ModestTnyPlatformFactory + **/ TnyPlatformFactory* modest_tny_platform_factory_get_instance (void); -ModestAccountMgr* modest_tny_platform_factory_get_modest_account_mgr_instance (TnyPlatformFactory *fact); -ModestConf* modest_tny_platform_factory_get_modest_conf_instance (TnyPlatformFactory *fact); - - G_END_DECLS #endif /* __MODEST_TNY_PLATFORM_FACTORY_H__ */