~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to docs/devel/reference/html/libtinymail-tny-password-getter.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
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">
 
24
</head>
 
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">
 
27
<tr valign="middle">
 
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>
 
33
</tr>
 
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2631174" class="shortcut">Top</a>
 
35
                  &#160;|&#160;
 
36
                  <a href="#id2631336" class="shortcut">Description</a>
 
37
                  &#160;|&#160;
 
38
                  <a href="#id2631288" class="shortcut">Object Hierarchy</a>
 
39
                  &#160;|&#160;
 
40
                  <a href="#id2631313" class="shortcut">Known Implementations</a></nobr></td></tr>
 
41
</table>
 
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>
 
45
<td valign="top">
 
46
<h2>
 
47
<a name="id2631174"></a><span class="refentrytitle">TnyPasswordGetter</span>
 
48
</h2>
 
49
<p>TnyPasswordGetter &#8212; A type for asking the user for a password</p>
 
50
</td>
 
51
<td valign="top" align="right"></td>
 
52
</tr></table></div>
 
53
<div class="refsynopsisdiv">
 
54
<h2>Synopsis</h2>
 
55
<a name="TnyPasswordGetter"></a><pre class="synopsis">
 
56
 
 
57
 
 
58
 
 
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,
 
62
                                                         const gchar *aid,
 
63
                                                         const gchar *prompt,
 
64
                                                         gboolean *cancel);
 
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,
 
66
                                                         const gchar *aid);
 
67
 
 
68
</pre>
 
69
</div>
 
70
<div class="refsect1" lang="en">
 
71
<a name="id2631288"></a><h2>Object Hierarchy</h2>
 
72
<pre class="synopsis">
 
73
 
 
74
  GInterface
 
75
   +----TnyPasswordGetter
 
76
</pre>
 
77
</div>
 
78
<div class="refsect1" lang="en">
 
79
<a name="id2631313"></a><h2>Known Implementations</h2>
 
80
<p>
 
81
TnyPasswordGetter is implemented by
 
82
 <a href="TnyGtkPasswordDialog.html" title="TnyGtkPasswordDialog">TnyGtkPasswordDialog</a>.</p>
 
83
</div>
 
84
<div class="refsect1" lang="en">
 
85
<a name="id2631336"></a><h2>Description</h2>
 
86
<p>
 
87
A type for asking the user for a password
 
88
</p>
 
89
</div>
 
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>
 
96
<p>
 
97
 
 
98
</p>
 
99
</div>
 
100
<hr>
 
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;
 
106
 
 
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;
 
110
</pre>
 
111
<p>
 
112
 
 
113
</p>
 
114
</div>
 
115
<hr>
 
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,
 
120
                                                         const gchar *aid,
 
121
                                                         const gchar *prompt,
 
122
                                                         gboolean *cancel);</pre>
 
123
<p>
 
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).
 
128
</p>
 
129
<p>
 
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>
 
133
<p>
 
134
 
 
135
</p>
 
136
<div class="variablelist"><table border="0">
 
137
<col align="left" valign="top">
 
138
<tbody>
 
139
<tr>
 
140
<td><span class="term"><em class="parameter"><code>self</code></em>&#160;:</span></td>
 
141
<td> a <a href="libtinymail-tny-password-getter.html#TnyPasswordGetter"><span class="type">TnyPasswordGetter</span></a> object
 
142
</td>
 
143
</tr>
 
144
<tr>
 
145
<td><span class="term"><em class="parameter"><code>aid</code></em>&#160;:</span></td>
 
146
<td> a unique string identifying the requested password
 
147
</td>
 
148
</tr>
 
149
<tr>
 
150
<td><span class="term"><em class="parameter"><code>prompt</code></em>&#160;:</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.
 
154
</td>
 
155
</tr>
 
156
<tr>
 
157
<td><span class="term"><em class="parameter"><code>cancel</code></em>&#160;:</span></td>
 
158
<td> whether or not the user cancelled
 
159
</td>
 
160
</tr>
 
161
<tr>
 
162
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
163
<td> the password
 
164
</td>
 
165
</tr>
 
166
</tbody>
 
167
</table></div>
 
168
</div>
 
169
<hr>
 
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>
 
175
<p>
 
176
Forget the password in <em class="parameter"><code>self</code></em> identified by <em class="parameter"><code>aid</code></em>.</p>
 
177
<p>
 
178
 
 
179
</p>
 
180
<div class="variablelist"><table border="0">
 
181
<col align="left" valign="top">
 
182
<tbody>
 
183
<tr>
 
184
<td><span class="term"><em class="parameter"><code>self</code></em>&#160;:</span></td>
 
185
<td> a <a href="libtinymail-tny-password-getter.html#TnyPasswordGetter"><span class="type">TnyPasswordGetter</span></a> object
 
186
</td>
 
187
</tr>
 
188
<tr>
 
189
<td><span class="term"><em class="parameter"><code>aid</code></em>&#160;:</span></td>
 
190
<td> a unique string identifying the requested password
 
191
</td>
 
192
</tr>
 
193
</tbody>
 
194
</table></div>
 
195
</div>
 
196
</div>
 
197
<div class="refsect1" lang="en">
 
198
<a name="id2631718"></a><h2>See Also</h2>
 
199
<p>
 
200
<a href="TnyGtkPasswordDialog.html" title="TnyGtkPasswordDialog"><span class="type">TnyGtkPasswordDialog</span></a>
 
201
</p>
 
202
</div>
 
203
</div>
 
204
</body>
 
205
</html>