![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyPlatformFactory; TnyPlatformFactoryIface; TnyAccountStore* tny_platform_factory_new_account_store (TnyPlatformFactory *self); TnyDevice* tny_platform_factory_new_device (TnyPlatformFactory *self); TnyMsgView* tny_platform_factory_new_msg_view (TnyPlatformFactory *self); TnyMsg* tny_platform_factory_new_msg (TnyPlatformFactory *self); TnyMimePart* tny_platform_factory_new_mime_part (TnyPlatformFactory *self); TnyPasswordGetter* tny_platform_factory_new_password_getter (TnyPlatformFactory *self);
typedef struct _TnyPlatformFactory TnyPlatformFactory;
A factory that creates some instances
free-function: g_object_unref
typedef struct { GTypeInterface parent; TnyAccountStore* (*new_account_store) (TnyPlatformFactory *self); TnyDevice* (*new_device) (TnyPlatformFactory *self); TnyMsgView* (*new_msg_view) (TnyPlatformFactory *self); TnyMsg* (*new_msg) (TnyPlatformFactory *self); TnyMimePart* (*new_mime_part) (TnyPlatformFactory *self); TnyPasswordGetter* (*new_password_getter) (TnyPlatformFactory *self); } TnyPlatformFactoryIface;
TnyAccountStore* tny_platform_factory_new_account_store (TnyPlatformFactory *self);
Create a new TnyAccountStore instance. The returned instance must be unreferenced after use.
When implementing a platform-specific library, return a new TnyAccountStore instance. It's allowed to reuse one instance, just make sure that you add a reference.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyAccountStore instance |
Since 1.0 audience: application-developer, type-implementer
TnyDevice* tny_platform_factory_new_device (TnyPlatformFactory *self);
Create a new TnyDevice instance. The returned instance must be unreferenced after use.
When implementing a platform-specific library, return a new TnyDevice instance. It's allowed to reuse one instance, just make sure that you add a reference.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyDevice instance |
Since 1.0 audience: application-developer, type-implementer
TnyMsgView* tny_platform_factory_new_msg_view (TnyPlatformFactory *self);
Create a new TnyMsgView instance. The returned instance must be unreferenced after use.
When implementing a platform-specific library, return a new TnyMsgView instance. It's allowed to reuse one instance, just make sure that you add a reference.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyMsgView instance |
Since 1.0 audience: application-developer, type-implementer
TnyMsg* tny_platform_factory_new_msg (TnyPlatformFactory *self);
Create a new TnyMsg instance. The returned instance must be unreferenced after use.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyMsg instance |
Since 1.0 audience: application-developer, type-implementer
TnyMimePart* tny_platform_factory_new_mime_part (TnyPlatformFactory *self);
Create a new TnyMimePart instance. The returned instance must be unreferenced after use.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyMimePart instance |
Since 1.0 audience: application-developer, type-implementer
TnyPasswordGetter* tny_platform_factory_new_password_getter (TnyPlatformFactory *self);
Create a new TnyPasswordGetter instance. The returned instance must be unreferenced after use.
|
a TnyPlatformFactory |
Returns : |
(caller-owns): a TnyPasswordGetter instance |
Since 1.0 audience: application-developer, type-implementer