8
8
<link rel="up" href="ch04.html" title="libexchange private API reference">
9
9
<link rel="prev" href="evolution-exchange-E2kResult-(private).html" title="E2kResult (private)">
10
10
<link rel="next" href="ch05.html" title="libxntlm API reference">
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="evolution-exchange-test-utils.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="evolution-exchange-test-utils.html#test-main" title="test_main ()">test_main</a> (<em class="parameter"><code><span class="type">gint</span> argc</code></em>,
41
<em class="parameter"><code><span class="type">gchar</span> **argv</code></em>);
40
<pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="evolution-exchange-test-utils.html#test-main" title="test_main ()">test_main</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> argc</code></em>,
41
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **argv</code></em>);
42
42
<span class="returnvalue">void</span> <a class="link" href="evolution-exchange-test-utils.html#test-quit" title="test_quit ()">test_quit</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
43
43
<span class="returnvalue">void</span> <a class="link" href="evolution-exchange-test-utils.html#test-abort-if-http-error" title="test_abort_if_http_error ()">test_abort_if_http_error</a> (<em class="parameter"><code><a class="link" href="evolution-exchange-e2k-http-utils.html#E2kHTTPStatus" title="E2kHTTPStatus"><span class="type">E2kHTTPStatus</span></a> status</code></em>);
45
<span class="returnvalue">gchar</span> * <a class="link" href="evolution-exchange-test-utils.html#test-ask-password" title="test_ask_password ()">test_ask_password</a> (<em class="parameter"><code>const <span class="type">gchar</span> *prompt</code></em>);
46
const <span class="returnvalue">gchar</span> * <a class="link" href="evolution-exchange-test-utils.html#test-get-password" title="test_get_password ()">test_get_password</a> (<em class="parameter"><code>const <span class="type">gchar</span> *user</code></em>,
47
<em class="parameter"><code>const <span class="type">gchar</span> *host</code></em>);
48
<a class="link" href="E2kContext.html" title="E2kContext"><span class="returnvalue">E2kContext</span></a> * <a class="link" href="evolution-exchange-test-utils.html#test-get-context" title="test_get_context ()">test_get_context</a> (<em class="parameter"><code>const <span class="type">gchar</span> *uri</code></em>);
49
<a class="link" href="E2kGlobalCatalog.html" title="E2kGlobalCatalog"><span class="returnvalue">E2kGlobalCatalog</span></a> * <a class="link" href="evolution-exchange-test-utils.html#test-get-gc" title="test_get_gc ()">test_get_gc</a> (<em class="parameter"><code>const <span class="type">gchar</span> *server</code></em>);
45
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="evolution-exchange-test-utils.html#test-ask-password" title="test_ask_password ()">test_ask_password</a> (<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> *prompt</code></em>);
46
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="evolution-exchange-test-utils.html#test-get-password" title="test_get_password ()">test_get_password</a> (<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> *user</code></em>,
47
<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> *host</code></em>);
48
<a class="link" href="E2kContext.html" title="E2kContext"><span class="returnvalue">E2kContext</span></a> * <a class="link" href="evolution-exchange-test-utils.html#test-get-context" title="test_get_context ()">test_get_context</a> (<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> *uri</code></em>);
49
<a class="link" href="E2kGlobalCatalog.html" title="E2kGlobalCatalog"><span class="returnvalue">E2kGlobalCatalog</span></a> * <a class="link" href="evolution-exchange-test-utils.html#test-get-gc" title="test_get_gc ()">test_get_gc</a> (<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> *server</code></em>);
52
52
<div class="refsect1">
58
58
<a name="evolution-exchange-test-utils.details"></a><h2>Details</h2>
59
59
<div class="refsect2">
60
60
<a name="test-main"></a><h3>test_main ()</h3>
61
<pre class="programlisting"><span class="returnvalue">void</span> test_main (<em class="parameter"><code><span class="type">gint</span> argc</code></em>,
62
<em class="parameter"><code><span class="type">gchar</span> **argv</code></em>);</pre>
61
<pre class="programlisting"><span class="returnvalue">void</span> test_main (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> argc</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **argv</code></em>);</pre>
64
64
test-utils.o includes a <code class="function">main()</code> function that calls various
65
65
initialization routines, starts the main loop, and then calls
108
108
<div class="refsect2">
109
109
<a name="test-ask-password"></a><h3>test_ask_password ()</h3>
110
<pre class="programlisting"><span class="returnvalue">gchar</span> * test_ask_password (<em class="parameter"><code>const <span class="type">gchar</span> *prompt</code></em>);</pre>
110
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * test_ask_password (<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> *prompt</code></em>);</pre>
112
112
Prints <em class="parameter"><code>prompt</code></em> followed by ": " and waits for the user to type
113
113
a password (with echoing disabled).
123
123
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
124
<td>the password (or <a href="/home/chen/opt34/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if stdin is not a tty).</td>
124
<td>the password (or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if stdin is not a tty).</td>
130
130
<div class="refsect2">
131
131
<a name="test-get-password"></a><h3>test_get_password ()</h3>
132
<pre class="programlisting">const <span class="returnvalue">gchar</span> * test_get_password (<em class="parameter"><code>const <span class="type">gchar</span> *user</code></em>,
133
<em class="parameter"><code>const <span class="type">gchar</span> *host</code></em>);</pre>
132
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * test_get_password (<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> *user</code></em>,
133
<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> *host</code></em>);</pre>
135
135
Tries to get a password for <em class="parameter"><code>user</code></em> on <em class="parameter"><code>host</code></em>, by looking it up in
136
136
the Evolution password database or by prompting the user.
150
150
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
151
<td>the password, or <a href="/home/chen/opt34/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if it could not be determined.</td>
151
<td>the password, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it could not be determined.</td>
157
157
<div class="refsect2">
158
158
<a name="test-get-context"></a><h3>test_get_context ()</h3>
159
<pre class="programlisting"><a class="link" href="E2kContext.html" title="E2kContext"><span class="returnvalue">E2kContext</span></a> * test_get_context (<em class="parameter"><code>const <span class="type">gchar</span> *uri</code></em>);</pre>
159
<pre class="programlisting"><a class="link" href="E2kContext.html" title="E2kContext"><span class="returnvalue">E2kContext</span></a> * test_get_context (<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> *uri</code></em>);</pre>
161
161
Creates an <a class="link" href="E2kContext.html" title="E2kContext"><code class="literal">E2kContext</code></a> based on <em class="parameter"><code>uri</code></em>. If <em class="parameter"><code>uri</code></em> does not contain a
162
162
username, the user's local username will be used. If it does not
181
181
<div class="refsect2">
182
182
<a name="test-get-gc"></a><h3>test_get_gc ()</h3>
183
<pre class="programlisting"><a class="link" href="E2kGlobalCatalog.html" title="E2kGlobalCatalog"><span class="returnvalue">E2kGlobalCatalog</span></a> * test_get_gc (<em class="parameter"><code>const <span class="type">gchar</span> *server</code></em>);</pre>
183
<pre class="programlisting"><a class="link" href="E2kGlobalCatalog.html" title="E2kGlobalCatalog"><span class="returnvalue">E2kGlobalCatalog</span></a> * test_get_gc (<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> *server</code></em>);</pre>
185
185
Creates an <a class="link" href="E2kGlobalCatalog.html" title="E2kGlobalCatalog"><code class="literal">E2kGlobalCatalog</code></a> for the server <em class="parameter"><code>server</code></em>.
186
186
<a class="link" href="evolution-exchange-test-utils.html#test-get-password" title="test_get_password ()"><code class="function">test_get_password()</code></a> will be called to get a password.