66
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
67
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
68
68
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-format-enable" title="gcr_parser_format_enable ()">gcr_parser_format_enable</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);
69
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);
70
70
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-format-disable" title="gcr_parser_format_disable ()">gcr_parser_format_disable</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);
71
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);
72
72
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GcrParser.html#gcr-parser-format-supported" title="gcr_parser_format_supported ()">gcr_parser_format_supported</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);
73
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);
74
74
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-add-password" title="gcr_parser_add_password ()">gcr_parser_add_password</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
75
75
<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> *password</code></em>);
76
76
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="GcrParser.html#gcr-parser-get-parsed-label" title="gcr_parser_get_parsed_label ()">gcr_parser_get_parsed_label</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
77
77
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="GcrParser.html#gcr-parser-get-parsed-description" title="gcr_parser_get_parsed_description ()">gcr_parser_get_parsed_description</a>
78
78
(<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
79
<a href="http://library.gnome.org/devel/gck/unstable/gck-GckAttributes.html#GckAttributes"><span class="returnvalue">GckAttributes</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-attributes" title="gcr_parser_get_parsed_attributes ()">gcr_parser_get_parsed_attributes</a>
79
<a href="../gck/gck-GckAttributes.html#GckAttributes"><span class="returnvalue">GckAttributes</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-attributes" title="gcr_parser_get_parsed_attributes ()">gcr_parser_get_parsed_attributes</a>
80
80
(<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
81
81
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="returnvalue">gconstpointer</span></a> <a class="link" href="GcrParser.html#gcr-parser-get-parsed-block" title="gcr_parser_get_parsed_block ()">gcr_parser_get_parsed_block</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
82
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *n_block</code></em>);
83
<a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> <a class="link" href="GcrParser.html#gcr-parser-get-parsed-format" title="gcr_parser_get_parsed_format ()">gcr_parser_get_parsed_format</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
85
86
<div class="refsect1">
92
93
<div class="refsect1">
93
94
<a name="GcrParser.properties"></a><h2>Properties</h2>
94
95
<pre class="synopsis">
95
"<a class="link" href="GcrParser.html#GcrParser--parsed-attributes" title='The "parsed-attributes" property'>parsed-attributes</a>" <a href="http://library.gnome.org/devel/gck/unstable/gck-GckAttributes.html#GckAttributes"><span class="type">GckAttributes</span></a>* : Read
96
"<a class="link" href="GcrParser.html#GcrParser--parsed-attributes" title='The "parsed-attributes" property'>parsed-attributes</a>" <a href="../gck/gck-GckAttributes.html#GckAttributes"><span class="type">GckAttributes</span></a>* : Read
96
97
"<a class="link" href="GcrParser.html#GcrParser--parsed-description" title='The "parsed-description" property'>parsed-description</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
97
98
"<a class="link" href="GcrParser.html#GcrParser--parsed-label" title='The "parsed-label" property'>parsed-label</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
193
194
GCR_FORMAT_DER_PKCS12 = 500,
196
GCR_FORMAT_OPENSSH_PUBLIC = 600,
198
GCR_FORMAT_OPENPGP_PACKET = 700,
199
GCR_FORMAT_OPENPGP_ARMOR,
195
201
GCR_FORMAT_PEM = 1000,
196
202
GCR_FORMAT_PEM_PRIVATE_KEY_RSA,
197
203
GCR_FORMAT_PEM_PRIVATE_KEY_DSA,
269
<td><p><a name="GCR-FORMAT-OPENSSH-PUBLIC:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENSSH_PUBLIC</code></span></p></td>
270
<td>OpenSSH v1 or v2 public key
274
<td><p><a name="GCR-FORMAT-OPENPGP-PACKET:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENPGP_PACKET</code></span></p></td>
275
<td>OpenPGP key packet(s)
279
<td><p><a name="GCR-FORMAT-OPENPGP-ARMOR:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENPGP_ARMOR</code></span></p></td>
280
<td>OpenPGP public or private key armor encoded data
262
284
<td><p><a name="GCR-FORMAT-PEM:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM</code></span></p></td>
263
285
<td>An OpenSSL style PEM file with unspecified contents
516
543
<div class="refsect2">
517
544
<a name="gcr-parser-format-enable"></a><h3>gcr_parser_format_enable ()</h3>
518
545
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_format_enable (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
519
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);</pre>
546
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
521
548
Enable parsing of the given format. Use -1 to enable all the formats.
538
565
<div class="refsect2">
539
566
<a name="gcr-parser-format-disable"></a><h3>gcr_parser_format_disable ()</h3>
540
567
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_format_disable (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
541
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);</pre>
568
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
543
570
Disable parsing of the given format. Use -1 to disable all the formats.
560
587
<div class="refsect2">
561
588
<a name="gcr-parser-format-supported"></a><h3>gcr_parser_format_supported ()</h3>
562
589
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gcr_parser_format_supported (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
563
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> format_id</code></em>);</pre>
590
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
565
592
Check whether the given format is supported by the parser.
656
683
<div class="refsect2">
657
684
<a name="gcr-parser-get-parsed-attributes"></a><h3>gcr_parser_get_parsed_attributes ()</h3>
658
<pre class="programlisting"><a href="http://library.gnome.org/devel/gck/unstable/gck-GckAttributes.html#GckAttributes"><span class="returnvalue">GckAttributes</span></a> * gcr_parser_get_parsed_attributes
685
<pre class="programlisting"><a href="../gck/gck-GckAttributes.html#GckAttributes"><span class="returnvalue">GckAttributes</span></a> * gcr_parser_get_parsed_attributes
659
686
(<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
661
688
Get the attributes which make up the currently parsed item. This is generally
735
<div class="refsect2">
736
<a name="gcr-parser-get-parsed-format"></a><h3>gcr_parser_get_parsed_format ()</h3>
737
<pre class="programlisting"><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> gcr_parser_get_parsed_format (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
739
Get the format of the raw data block that represents this parsed object.
740
This corresponds with the data returned from <a class="link" href="GcrParser.html#gcr-parser-get-parsed-block" title="gcr_parser_get_parsed_block ()"><code class="function">gcr_parser_get_parsed_block()</code></a>.
743
This is only valid during the GcrParser::parsed signal.
745
<div class="variablelist"><table border="0">
746
<col align="left" valign="top">
749
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
753
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
754
<td>The data format of the currently parsed item.</td>
708
760
<div class="refsect1">
709
761
<a name="GcrParser.property-details"></a><h2>Property Details</h2>
710
762
<div class="refsect2">
711
763
<a name="GcrParser--parsed-attributes"></a><h3>The <code class="literal">"parsed-attributes"</code> property</h3>
712
<pre class="programlisting"> "parsed-attributes" <a href="http://library.gnome.org/devel/gck/unstable/gck-GckAttributes.html#GckAttributes"><span class="type">GckAttributes</span></a>* : Read</pre>
764
<pre class="programlisting"> "parsed-attributes" <a href="../gck/gck-GckAttributes.html#GckAttributes"><span class="type">GckAttributes</span></a>* : Read</pre>
714
766
Get the attributes that make up the currently parsed item. This is
715
767
generally only valid during a <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.