Top | ![]() |
![]() |
![]() |
![]() |
ESourceSecurityESourceSecurity — ESource extension for security settings |
const |
e_source_security_get_method () |
|
e_source_security_dup_method () |
|
e_source_security_set_method () |
|
e_source_security_get_secure () |
|
e_source_security_set_secure () |
The ESourceSecurity extension tracks settings for establishing a secure connection with a remote server.
Access the extension as follows:
#include <libedataserver/libedataserver.h> ESourceSecurity *extension; extension = e_source_get_extension (source, E_SOURCE_EXTENSION_SECURITY);
constgchar * e_source_security_get_method (ESourceSecurity *extension
);
Returns the method used to establish a secure network connection to a
remote account. There are no pre-defined method names; backends are
free to set this however they wish. If a secure connection is not
desired, the convention is to set
Since: 3.6
gchar * e_source_security_dup_method (ESourceSecurity *extension
);
Thread-safe variation of e_source_security_get_method()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
Since: 3.6
void e_source_security_set_method (ESourceSecurity *extension
,const
);gchar *method
Sets the method used to establish a secure network connection to a
remote account. There are no pre-defined method names; backends are
free to set this however they wish. If a secure connection is not
desired, the convention is to set method
is NULL
Since: 3.6
gboolean e_source_security_get_secure (ESourceSecurity *extension
);
This is a convenience function which returns whether a secure network
connection is desired, regardless of the method used. This relies on
the convention of setting
Since: 3.6
void e_source_security_set_secure (ESourceSecurity *extension
,);
gboolean secure
This function provides a simpler way to set secure
is FALSE
secure
is
TRUE
Since: 3.6
#define E_SOURCE_EXTENSION_SECURITY "Security"
Pass this extension name to e_source_get_extension()
to access
ESourceSecurity. This is also used as a group name in key files.
Since: 3.6
struct ESourceSecurity { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6