![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyCombinedAccountTnyCombinedAccount — A account type that can combine a store and a transport account |
TnyCombinedAccount; TnyAccount* tny_combined_account_new (TnyTransportAccount *ta, TnyStoreAccount *sa); TnyTransportAccount* tny_combined_account_get_transport_account (TnyCombinedAccount *self); TnyStoreAccount* tny_combined_account_get_store_account (TnyCombinedAccount *self);
TnyCombinedAccount implements TnyFolderStore, TnyAccount, TnyStoreAccount and TnyTransportAccount.
typedef struct _TnyCombinedAccount TnyCombinedAccount;
A combined account
free-function: g_object_unref
TnyAccount* tny_combined_account_new (TnyTransportAccount *ta, TnyStoreAccount *sa);
Create a decorator for ta
, in case the tny_transport_account_send is used,
and for sa
in case a method of either TnyFolderStore, TnyAccount or
TnyStoreAccount is used.
Note though that you must not use instances created by this constructor for either setting or getting members of the TnyAccount type. You must get the actual instances to read these properties.
ta : |
A TnyTransportAccount |
sa : |
a TnyStoreAccount |
Returns : | (caller-owns): A new account instance that decorates both ta and sa
|
Since 1.0 complexity: high audience: application-developer
TnyTransportAccount* tny_combined_account_get_transport_account (TnyCombinedAccount *self);
Get the transport account that is being decorated by self
. You must unreference
the returned value if not needed anymore.
self : |
a TnyCombinedAccount |
Returns : | (caller-owns): the transport account in self
|
Since 1.0 complexity: low audience: application-developer
TnyStoreAccount* tny_combined_account_get_store_account (TnyCombinedAccount *self);
Get the store account that is being decorated by self
. You must unreference
the returned value if not needed anymore.
self : |
a TnyCombinedAccount |
Returns : | (caller-owns): the store account in self
|
Since 1.0 complexity: low audience: application-developer