1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>TnyPasswordGetter</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.71.0">
7
<link rel="start" href="index.html" title="Reference Manual of the tinymail framework">
8
<link rel="up" href="libtinymail.html" title="libtinymail - main abstraction library">
9
<link rel="prev" href="TnyFolderStoreChange.html" title="TnyFolderStoreChange">
10
<link rel="next" href="libtinymail-tny-enums.html" title="Enumerations for tinymail">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="preface" href="pr01.html" title="Introduction">
14
<link rel="reference" href="rn01.html" title="Object Index">
15
<link rel="reference" href="rn02.html" title="API Reference">
16
<link rel="chapter" href="libtinymail.html" title="libtinymail - main abstraction library">
17
<link rel="chapter" href="libtinymailui.html" title="libtinymailui - ui abstraction library">
18
<link rel="chapter" href="libtinymailui-gtk.html" title="libtinymailui-gtk - an optional ui implementation library">
19
<link rel="chapter" href="libtinymail-gnomevfs.html" title="libtinymail-gnomevfs - an optional implementation library">
20
<link rel="chapter" href="libtinymailui-mozembed.html" title="libtinymailui-mozembed - an optional ui implementation library">
21
<link rel="chapter" href="libtinymail-gnome-desktop.html" title="libtinymail-gnome-desktop - implementations for a gnome desktop">
22
<link rel="chapter" href="libtinymail-camel.html" title="libtinymail-camel - implementation of the main library">
23
<link rel="index" href="ix01.html" title="Index">
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
<td><a accesskey="p" href="TnyFolderStoreChange.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
29
<td><a accesskey="u" href="libtinymail.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
31
<th width="100%" align="center">Reference Manual of the tinymail framework</th>
32
<td><a accesskey="n" href="libtinymail-tny-enums.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2631174" class="shortcut">Top</a>
36
<a href="#id2631336" class="shortcut">Description</a>
38
<a href="#id2631288" class="shortcut">Object Hierarchy</a>
40
<a href="#id2631313" class="shortcut">Known Implementations</a></nobr></td></tr>
42
<div class="refentry" lang="en">
43
<a name="libtinymail-tny-password-getter"></a><div class="titlepage"></div>
44
<div class="refnamediv"><table width="100%"><tr>
47
<a name="id2631174"></a><span class="refentrytitle">TnyPasswordGetter</span>
49
<p>TnyPasswordGetter — A type for asking the user for a password</p>
51
<td valign="top" align="right"></td>
53
<div class="refsynopsisdiv">
55
<a name="TnyPasswordGetter"></a><pre class="synopsis">
59
<a href="libtinymail-tny-password-getter.html#TnyPasswordGetter-struct">TnyPasswordGetter</a>;
60
<a href="libtinymail-tny-password-getter.html#TnyPasswordGetterIface">TnyPasswordGetterIface</a>;
61
const gchar* <a href="libtinymail-tny-password-getter.html#tny-password-getter-get-password">tny_password_getter_get_password</a> (<a href="libtinymail-tny-password-getter.html#TnyPasswordGetter">TnyPasswordGetter</a> *self,
65
void <a href="libtinymail-tny-password-getter.html#tny-password-getter-forget-password">tny_password_getter_forget_password</a> (<a href="libtinymail-tny-password-getter.html#TnyPasswordGetter">TnyPasswordGetter</a> *self,
70
<div class="refsect1" lang="en">
71
<a name="id2631288"></a><h2>Object Hierarchy</h2>
72
<pre class="synopsis">
75
+----TnyPasswordGetter
78
<div class="refsect1" lang="en">
79
<a name="id2631313"></a><h2>Known Implementations</h2>
81
TnyPasswordGetter is implemented by
82
<a href="TnyGtkPasswordDialog.html" title="TnyGtkPasswordDialog">TnyGtkPasswordDialog</a>.</p>
84
<div class="refsect1" lang="en">
85
<a name="id2631336"></a><h2>Description</h2>
87
A type for asking the user for a password
90
<div class="refsect1" lang="en">
91
<a name="id2631351"></a><h2>Details</h2>
92
<div class="refsect2" lang="en">
93
<a name="id2631362"></a><h3>
94
<a name="TnyPasswordGetter-struct"></a>TnyPasswordGetter</h3>
95
<a class="indexterm" name="id2631375"></a><pre class="programlisting">typedef struct _TnyPasswordGetter TnyPasswordGetter;</pre>
101
<div class="refsect2" lang="en">
102
<a name="id2631391"></a><h3>
103
<a name="TnyPasswordGetterIface"></a>TnyPasswordGetterIface</h3>
104
<a class="indexterm" name="id2631404"></a><pre class="programlisting">typedef struct {
105
GTypeInterface parent;
107
const gchar* (*get_password_func) (TnyPasswordGetter *self, const gchar *aid, const gchar *prompt, gboolean *cancel);
108
void (*forget_password_func) (TnyPasswordGetter *self, const gchar *aid);
109
} TnyPasswordGetterIface;
116
<div class="refsect2" lang="en">
117
<a name="id2631423"></a><h3>
118
<a name="tny-password-getter-get-password"></a>tny_password_getter_get_password ()</h3>
119
<a class="indexterm" name="id2631437"></a><pre class="programlisting">const gchar* tny_password_getter_get_password (<a href="libtinymail-tny-password-getter.html#TnyPasswordGetter">TnyPasswordGetter</a> *self,
122
gboolean *cancel);</pre>
124
Get the password of <em class="parameter"><code>self</code></em> identified by <em class="parameter"><code>aid</code></em>. If you set the by reference
125
boolean <em class="parameter"><code>cancel</code></em> to TRUE, the caller (who requested the password) will see
126
this as a negative answer (For example when the user didn't know the password,
127
and therefore pressed a cancel button).
130
The <em class="parameter"><code>aid</code></em> string can be used for so called password stores. It will contain
131
a unique string. Possible values of this string are "acap.server.com" or the
132
result of a tny_account_get_id.</p>
136
<div class="variablelist"><table border="0">
137
<col align="left" valign="top">
140
<td><span class="term"><em class="parameter"><code>self</code></em> :</span></td>
141
<td> a <a href="libtinymail-tny-password-getter.html#TnyPasswordGetter"><span class="type">TnyPasswordGetter</span></a> object
145
<td><span class="term"><em class="parameter"><code>aid</code></em> :</span></td>
146
<td> a unique string identifying the requested password
150
<td><span class="term"><em class="parameter"><code>prompt</code></em> :</span></td>
151
<td> A human-readable password question, possibly containing an untranslated error
152
message directly from the server. This should be ignored by most implementations,
153
so NULL is an acceptable value.
157
<td><span class="term"><em class="parameter"><code>cancel</code></em> :</span></td>
158
<td> whether or not the user cancelled
162
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
170
<div class="refsect2" lang="en">
171
<a name="id2631610"></a><h3>
172
<a name="tny-password-getter-forget-password"></a>tny_password_getter_forget_password ()</h3>
173
<a class="indexterm" name="id2631624"></a><pre class="programlisting">void tny_password_getter_forget_password (<a href="libtinymail-tny-password-getter.html#TnyPasswordGetter">TnyPasswordGetter</a> *self,
174
const gchar *aid);</pre>
176
Forget the password in <em class="parameter"><code>self</code></em> identified by <em class="parameter"><code>aid</code></em>.</p>
180
<div class="variablelist"><table border="0">
181
<col align="left" valign="top">
184
<td><span class="term"><em class="parameter"><code>self</code></em> :</span></td>
185
<td> a <a href="libtinymail-tny-password-getter.html#TnyPasswordGetter"><span class="type">TnyPasswordGetter</span></a> object
189
<td><span class="term"><em class="parameter"><code>aid</code></em> :</span></td>
190
<td> a unique string identifying the requested password
197
<div class="refsect1" lang="en">
198
<a name="id2631718"></a><h2>See Also</h2>
200
<a href="TnyGtkPasswordDialog.html" title="TnyGtkPasswordDialog"><span class="type">TnyGtkPasswordDialog</span></a>