47
47
struct <a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP-struct" title="struct ESourceOpenPGP">ESourceOpenPGP</a>;
48
48
#define <a class="link" href="ESourceOpenPGP.html#E-SOURCE-EXTENSION-OPENPGP:CAPS" title="E_SOURCE_EXTENSION_OPENPGP">E_SOURCE_EXTENSION_OPENPGP</a>
49
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-always-trust" title="e_source_openpgp_get_always_trust ()">e_source_openpgp_get_always_trust</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-always-trust" title="e_source_openpgp_get_always_trust ()">e_source_openpgp_get_always_trust</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
50
50
<span class="returnvalue">void</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-set-always-trust" title="e_source_openpgp_set_always_trust ()">e_source_openpgp_set_always_trust</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
51
<em class="parameter"><code><span class="type">gboolean</span> always_trust</code></em>);
52
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-encrypt-to-self" title="e_source_openpgp_get_encrypt_to_self ()">e_source_openpgp_get_encrypt_to_self</a>
51
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_trust</code></em>);
52
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-encrypt-to-self" title="e_source_openpgp_get_encrypt_to_self ()">e_source_openpgp_get_encrypt_to_self</a>
53
53
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
54
54
<span class="returnvalue">void</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-set-encrypt-to-self" title="e_source_openpgp_set_encrypt_to_self ()">e_source_openpgp_set_encrypt_to_self</a>
55
55
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
56
<em class="parameter"><code><span class="type">gboolean</span> encrypt_to_self</code></em>);
57
const <span class="returnvalue">gchar</span> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-key-id" title="e_source_openpgp_get_key_id ()">e_source_openpgp_get_key_id</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
58
<span class="returnvalue">gchar</span> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-dup-key-id" title="e_source_openpgp_dup_key_id ()">e_source_openpgp_dup_key_id</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> encrypt_to_self</code></em>);
57
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-key-id" title="e_source_openpgp_get_key_id ()">e_source_openpgp_get_key_id</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
58
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-dup-key-id" title="e_source_openpgp_dup_key_id ()">e_source_openpgp_dup_key_id</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
59
59
<span class="returnvalue">void</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-set-key-id" title="e_source_openpgp_set_key_id ()">e_source_openpgp_set_key_id</a> (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
60
<em class="parameter"><code>const <span class="type">gchar</span> *key_id</code></em>);
61
const <span class="returnvalue">gchar</span> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-signing-algorithm" title="e_source_openpgp_get_signing_algorithm ()">e_source_openpgp_get_signing_algorithm</a>
60
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key_id</code></em>);
61
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-signing-algorithm" title="e_source_openpgp_get_signing_algorithm ()">e_source_openpgp_get_signing_algorithm</a>
62
62
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
63
<span class="returnvalue">gchar</span> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-dup-signing-algorithm" title="e_source_openpgp_dup_signing_algorithm ()">e_source_openpgp_dup_signing_algorithm</a>
63
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-dup-signing-algorithm" title="e_source_openpgp_dup_signing_algorithm ()">e_source_openpgp_dup_signing_algorithm</a>
64
64
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
65
65
<span class="returnvalue">void</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-set-signing-algorithm" title="e_source_openpgp_set_signing_algorithm ()">e_source_openpgp_set_signing_algorithm</a>
66
66
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
67
<em class="parameter"><code>const <span class="type">gchar</span> *signing_algorithm</code></em>);
68
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-sign-by-default" title="e_source_openpgp_get_sign_by_default ()">e_source_openpgp_get_sign_by_default</a>
67
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *signing_algorithm</code></em>);
68
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-sign-by-default" title="e_source_openpgp_get_sign_by_default ()">e_source_openpgp_get_sign_by_default</a>
69
69
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);
70
70
<span class="returnvalue">void</span> <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-set-sign-by-default" title="e_source_openpgp_set_sign_by_default ()">e_source_openpgp_set_sign_by_default</a>
71
71
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
72
<em class="parameter"><code><span class="type">gboolean</span> sign_by_default</code></em>);
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> sign_by_default</code></em>);
75
75
<div class="refsect1">
76
76
<a name="ESourceOpenPGP.object-hierarchy"></a><h2>Object Hierarchy</h2>
77
77
<pre class="synopsis">
78
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
79
79
+----<a class="link" href="ESourceExtension.html" title="ESourceExtension">ESourceExtension</a>
80
80
+----ESourceOpenPGP
83
83
<div class="refsect1">
84
84
<a name="ESourceOpenPGP.properties"></a><h2>Properties</h2>
85
85
<pre class="synopsis">
86
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--always-trust" title='The "always-trust" property'>always-trust</a>" <span class="type">gboolean</span> : Read / Write / Construct
87
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--encrypt-to-self" title='The "encrypt-to-self" property'>encrypt-to-self</a>" <span class="type">gboolean</span> : Read / Write / Construct
88
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--key-id" title='The "key-id" property'>key-id</a>" <span class="type">gchar</span>* : Read / Write / Construct
89
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--sign-by-default" title='The "sign-by-default" property'>sign-by-default</a>" <span class="type">gboolean</span> : Read / Write / Construct
90
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--signing-algorithm" title='The "signing-algorithm" property'>signing-algorithm</a>" <span class="type">gchar</span>* : Read / Write / Construct
86
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--always-trust" title='The "always-trust" property'>always-trust</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
87
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--encrypt-to-self" title='The "encrypt-to-self" property'>encrypt-to-self</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
88
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--key-id" title='The "key-id" property'>key-id</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct
89
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--sign-by-default" title='The "sign-by-default" property'>sign-by-default</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
90
"<a class="link" href="ESourceOpenPGP.html#ESourceOpenPGP--signing-algorithm" title='The "signing-algorithm" property'>signing-algorithm</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct
93
93
<div class="refsect1">
113
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><libedataserver/e-source-openpgp.h></span>
115
<span class="usertype">ESourceOpenPGP</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">extension</span><span class="symbol">;</span>
117
<span class="normal">extension </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="ESource.html#e-source-get-extension">e_source_get_extension</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">source</span><span class="symbol">,</span><span class="normal"> <a href="ESourceOpenPGP.html#E-SOURCE-EXTENSION-OPENPGP:CAPS">E_SOURCE_EXTENSION_OPENPGP</a></span><span class="symbol">);</span></pre></td>
113
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc ppc">#include <libedataserver/libedataserver.h></span>
115
ESourceOpenPGP <span class="gtkdoc opt">*</span>extension<span class="gtkdoc opt">;</span>
117
extension <span class="gtkdoc opt">=</span> <span class="function"><a href="ESource.html#e-source-get-extension">e_source_get_extension</a></span> <span class="gtkdoc opt">(</span>source<span class="gtkdoc opt">,</span> E_SOURCE_EXTENSION_OPENPGP<span class="gtkdoc opt">);</span></pre></td>
270
270
<div class="refsect2">
271
271
<a name="e-source-openpgp-dup-key-id"></a><h3>e_source_openpgp_dup_key_id ()</h3>
272
<pre class="programlisting"><span class="returnvalue">gchar</span> * e_source_openpgp_dup_key_id (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);</pre>
272
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * e_source_openpgp_dup_key_id (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);</pre>
274
274
Thread-safe variation of <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-key-id" title="e_source_openpgp_get_key_id ()"><code class="function">e_source_openpgp_get_key_id()</code></a>.
275
275
Use this function when accessing <em class="parameter"><code>extension</code></em> from multiple threads.
278
The returned string should be freed with <code class="function">g_free()</code> when no longer needed.
278
The returned string should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when no longer needed.
280
280
<div class="variablelist"><table border="0">
281
281
<col align="left" valign="top">
298
298
<div class="refsect2">
299
299
<a name="e-source-openpgp-set-key-id"></a><h3>e_source_openpgp_set_key_id ()</h3>
300
300
<pre class="programlisting"><span class="returnvalue">void</span> e_source_openpgp_set_key_id (<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>,
301
<em class="parameter"><code>const <span class="type">gchar</span> *key_id</code></em>);</pre>
301
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key_id</code></em>);</pre>
303
303
Sets the OpenPGP key ID used to sign and encrypt messages.
306
306
The internal copy of <em class="parameter"><code>key_id</code></em> is automatically stripped of leading and
307
trailing whitespace. If the resulting string is empty, <code class="literal">NULL</code> is set
307
trailing whitespace. If the resulting string is empty, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is set
310
310
<div class="variablelist"><table border="0">
352
352
<div class="refsect2">
353
353
<a name="e-source-openpgp-dup-signing-algorithm"></a><h3>e_source_openpgp_dup_signing_algorithm ()</h3>
354
<pre class="programlisting"><span class="returnvalue">gchar</span> * e_source_openpgp_dup_signing_algorithm
354
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * e_source_openpgp_dup_signing_algorithm
355
355
(<em class="parameter"><code><a class="link" href="ESourceOpenPGP.html" title="ESourceOpenPGP"><span class="type">ESourceOpenPGP</span></a> *extension</code></em>);</pre>
357
357
Thread-safe variation of <a class="link" href="ESourceOpenPGP.html#e-source-openpgp-get-signing-algorithm" title="e_source_openpgp_get_signing_algorithm ()"><code class="function">e_source_openpgp_get_signing_algorithm()</code></a>.
358
358
Use this function when accessing <em class="parameter"><code>extension</code></em> from multiple threads.
361
The returned string should be freed with <code class="function">g_free()</code> when no longer needed.
361
The returned string should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when no longer needed.
363
363
<div class="variablelist"><table border="0">
364
364
<col align="left" valign="top">
464
464
<a name="ESourceOpenPGP.property-details"></a><h2>Property Details</h2>
465
465
<div class="refsect2">
466
466
<a name="ESourceOpenPGP--always-trust"></a><h3>The <code class="literal">"always-trust"</code> property</h3>
467
<pre class="programlisting"> "always-trust" <span class="type">gboolean</span> : Read / Write / Construct</pre>
467
<pre class="programlisting"> "always-trust" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct</pre>
468
468
<p>Always trust keys in my keyring.</p>
469
469
<p>Default value: FALSE</p>
472
472
<div class="refsect2">
473
473
<a name="ESourceOpenPGP--encrypt-to-self"></a><h3>The <code class="literal">"encrypt-to-self"</code> property</h3>
474
<pre class="programlisting"> "encrypt-to-self" <span class="type">gboolean</span> : Read / Write / Construct</pre>
474
<pre class="programlisting"> "encrypt-to-self" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct</pre>
475
475
<p>Always encrypt to myself.</p>
476
476
<p>Default value: TRUE</p>
479
479
<div class="refsect2">
480
480
<a name="ESourceOpenPGP--key-id"></a><h3>The <code class="literal">"key-id"</code> property</h3>
481
<pre class="programlisting"> "key-id" <span class="type">gchar</span>* : Read / Write / Construct</pre>
481
<pre class="programlisting"> "key-id" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct</pre>
482
482
<p>PGP/GPG Key ID.</p>
483
483
<p>Default value: NULL</p>
486
486
<div class="refsect2">
487
487
<a name="ESourceOpenPGP--sign-by-default"></a><h3>The <code class="literal">"sign-by-default"</code> property</h3>
488
<pre class="programlisting"> "sign-by-default" <span class="type">gboolean</span> : Read / Write / Construct</pre>
488
<pre class="programlisting"> "sign-by-default" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct</pre>
489
489
<p>Sign outgoing messages by default.</p>
490
490
<p>Default value: FALSE</p>
493
493
<div class="refsect2">
494
494
<a name="ESourceOpenPGP--signing-algorithm"></a><h3>The <code class="literal">"signing-algorithm"</code> property</h3>
495
<pre class="programlisting"> "signing-algorithm" <span class="type">gchar</span>* : Read / Write / Construct</pre>
495
<pre class="programlisting"> "signing-algorithm" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct</pre>
496
496
<p>Hash algorithm used to sign messages.</p>
497
497
<p>Default value: NULL</p>