![]() |
![]() |
![]() |
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.
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 any other 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 this from using either tny_combined_account_get_transport_account or tny_combined_account_get_store_account.
ta : |
A TnyTransportAccount instance |
sa : |
a TnyStoreAccount instance |
Returns : | A new account instance that decorates both ta and sa
|
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 instance |
Returns : | the transport account being decorated |
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 instance |
Returns : | the store account being decorated |