/usr/share/gtk-doc/html/libtracker-miner/libtracker-miner-TrackerMinerWeb.html is in libtracker-miner-doc 0.16.2-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tracker Miner Library Reference Manual: TrackerMinerWeb</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Tracker Miner Library Reference Manual">
<link rel="up" href="ch02.html" title="Base abstract miner classes">
<link rel="prev" href="TrackerMiner.html" title="TrackerMiner">
<link rel="next" href="ch03.html" title="Miner classes for file system">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#libtracker-miner-TrackerMinerWeb.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#libtracker-miner-TrackerMinerWeb.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="TrackerMiner.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libtracker-miner-TrackerMinerWeb"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libtracker-miner-TrackerMinerWeb.top_of_page"></a>TrackerMinerWeb</span></h2>
<p>TrackerMinerWeb — Abstract base class for miners using web services</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libtracker-miner-TrackerMinerWeb.html#tracker-miner-web-associate" title="tracker_miner_web_associate ()">tracker_miner_web_associate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libtracker-miner-TrackerMinerWeb.html#tracker-miner-web-authenticate" title="tracker_miner_web_authenticate ()">tracker_miner_web_authenticate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libtracker-miner-TrackerMinerWeb.html#tracker-miner-web-dissociate" title="tracker_miner_web_dissociate ()">tracker_miner_web_dissociate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
</td>
<td class="function_name">
<a class="link" href="libtracker-miner-TrackerMinerWeb.html#tracker-miner-web-error-quark" title="tracker_miner_web_error_quark ()">tracker_miner_web_error_quark</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
</td>
<td class="function_name">
<a class="link" href="libtracker-miner-TrackerMinerWeb.html#tracker-miner-web-get-association-data" title="tracker_miner_web_get_association_data ()">tracker_miner_web_get_association_data</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TRACKER-MINER-WEB-DBUS-INTERFACE:CAPS" title="TRACKER_MINER_WEB_DBUS_INTERFACE">TRACKER_MINER_WEB_DBUS_INTERFACE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TRACKER-MINER-WEB-ERROR:CAPS" title="TRACKER_MINER_WEB_ERROR">TRACKER_MINER_WEB_ERROR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TRACKER-MINER-WEB-ERROR-DOMAIN:CAPS" title="TRACKER_MINER_WEB_ERROR_DOMAIN">TRACKER_MINER_WEB_ERROR_DOMAIN</a></td>
</tr>
<tr>
<td class="typedef_keyword">typedef</td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb">TrackerMinerWeb</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWebClass" title="TrackerMinerWebClass">TrackerMinerWebClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWebError" title="enum TrackerMinerWebError">TrackerMinerWebError</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libtracker-miner/tracker-miner.h>
</pre>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.description"></a><h2>Description</h2>
<p><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a> is an abstract base class for miners retrieving data
from web services. It's a very thin layer above <a class="link" href="TrackerMiner.html" title="TrackerMiner"><span class="type">TrackerMiner</span></a>, only
adding virtual methods needed to handle association with the remote
service.</p>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="tracker-miner-web-associate"></a><h3>tracker_miner_web_associate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tracker_miner_web_associate (<em class="parameter"><code><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a> *miner</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *association_data</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Asks <em class="parameter"><code>miner</code></em>
to associate with a remote service using
<em class="parameter"><code>association_data</code></em>
. To know what data to put into <em class="parameter"><code>association_data</code></em>
,
see <code class="classname">TrackerMinerWebClass</code> for more
information.</p>
<p>On failure <em class="parameter"><code>error</code></em>
will be set.</p>
<div class="refsect3">
<a name="id-1.3.3.3.8.2.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>miner</p></td>
<td class="parameter_description"><p>a <a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>association_data</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a> with the data to use for
associating with a remote service.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p> return location for errors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out callee-allocates</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.8</p>
</div>
<hr>
<div class="refsect2">
<a name="tracker-miner-web-authenticate"></a><h3>tracker_miner_web_authenticate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tracker_miner_web_authenticate (<em class="parameter"><code><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a> *miner</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Asks <em class="parameter"><code>miner</code></em>
to authenticate with a remote service. On failure
<em class="parameter"><code>error</code></em>
will be set.</p>
<div class="refsect3">
<a name="id-1.3.3.3.8.3.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>miner</p></td>
<td class="parameter_description"><p>a <a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p> return location for errors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out callee-allocates</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.8</p>
</div>
<hr>
<div class="refsect2">
<a name="tracker-miner-web-dissociate"></a><h3>tracker_miner_web_dissociate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tracker_miner_web_dissociate (<em class="parameter"><code><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a> *miner</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Asks <em class="parameter"><code>miner</code></em>
to dissociate from a remote service. At this point, the
miner should stop storing any credentials or sensitive information
which could be used to authenticate with the remote service.</p>
<p>On failure <em class="parameter"><code>error</code></em>
will be set.</p>
<div class="refsect3">
<a name="id-1.3.3.3.8.4.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>miner</p></td>
<td class="parameter_description"><p>a <a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p> return location for errors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out callee-allocates</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.8</p>
</div>
<hr>
<div class="refsect2">
<a name="tracker-miner-web-error-quark"></a><h3>tracker_miner_web_error_quark ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>
tracker_miner_web_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="refsect3">
<a name="id-1.3.3.3.8.5.4"></a><h4>Returns</h4>
<p> the <a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> used to identify miner web errors in GError
structures.</p>
<p></p>
</div>
<p class="since">Since 0.8</p>
</div>
<hr>
<div class="refsect2">
<a name="tracker-miner-web-get-association-data"></a><h3>tracker_miner_web_get_association_data ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
tracker_miner_web_get_association_data
(<em class="parameter"><code><a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a> *miner</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Asks <em class="parameter"><code>miner</code></em>
to retrieve association_data for. The data returned in
the <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a> depends on the <em class="parameter"><code>miner</code></em>
implementation and the type
of authentication. See <code class="classname">TrackerMinerWebClass</code>
for more information.</p>
<div class="refsect3">
<a name="id-1.3.3.3.8.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>miner</p></td>
<td class="parameter_description"><p>a <a class="link" href="libtracker-miner-TrackerMinerWeb.html#TrackerMinerWeb" title="TrackerMinerWeb"><span class="type">TrackerMinerWeb</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p> return location for errors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out callee-allocates</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.3.3.3.8.6.6"></a><h4>Returns</h4>
<p> a <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a> with the data. On failure <em class="parameter"><code>error</code></em>
will be set
and <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> will be returned. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since 0.8</p>
</div>
</div>
<div class="refsect1">
<a name="libtracker-miner-TrackerMinerWeb.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TRACKER-MINER-WEB-DBUS-INTERFACE:CAPS"></a><h3>TRACKER_MINER_WEB_DBUS_INTERFACE</h3>
<pre class="programlisting">#define TRACKER_MINER_WEB_DBUS_INTERFACE "org.freedesktop.Tracker1.MinerWeb"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="TRACKER-MINER-WEB-ERROR:CAPS"></a><h3>TRACKER_MINER_WEB_ERROR</h3>
<pre class="programlisting">#define TRACKER_MINER_WEB_ERROR tracker_miner_web_error_quark ()
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="TRACKER-MINER-WEB-ERROR-DOMAIN:CAPS"></a><h3>TRACKER_MINER_WEB_ERROR_DOMAIN</h3>
<pre class="programlisting">#define TRACKER_MINER_WEB_ERROR_DOMAIN "TrackerMinerWeb"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="TrackerMinerWeb"></a><h3>TrackerMinerWeb</h3>
<pre class="programlisting">typedef struct TrackerMinerWeb TrackerMinerWeb;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="TrackerMinerWebClass"></a><h3>TrackerMinerWebClass</h3>
<pre class="programlisting">typedef struct {
TrackerMinerClass parent_class;
/* vmethods */
void (* authenticate) (TrackerMinerWeb *miner,
GError **error);
GHashTable* (* get_association_data) (TrackerMinerWeb *miner,
GError **error);
void (* associate) (TrackerMinerWeb *miner,
const GHashTable *association_data,
GError **error);
void (* dissociate) (TrackerMinerWeb *miner,
GError **error);
} TrackerMinerWebClass;
</pre>
<p>For the <em class="parameter"><code>authenticate</code></em>
function, a username/password can be used and
this should return an empty <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a>. If the authentication is
based on a token, the following keys <span class="emphasis"><em>must</em></span> be
returned in the <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a>:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
<span class="emphasis"><em>url</em></span>: the url to point the user to.
</p></li></ul></div>
<p>Additionally, the miner <span class="emphasis"><em>may</em></span> define the
following keys:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
<span class="emphasis"><em>post_message</em></span>: a message to display after
the user completes the association process.
</p></li>
<li class="listitem"><p>
<span class="emphasis"><em>post_url</em></span>: a url to point the user to
after they have completed the association.
</p></li>
</ul></div>
<div class="note"><p>
If both <span class="emphasis"><em>post_message</em></span> and
<span class="emphasis"><em>post_url</em></span> are defined, the message will be
displayed before the url is opened.
</p></div>
<p>For the <em class="parameter"><code>associate</code></em>
function, in the case of a username/password
based authentication, the following keys must be defined:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
<span class="emphasis"><em>username</em></span>: the username.
</p></li>
<li class="listitem"><p>
<span class="emphasis"><em>password</em></span>: the password.
</p></li>
</ul></div>
<p>In the case of a token based authentication, the <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><code class="literal">GHashTable</code></a> can be
ignored since it will be empty.</p>
<p>For the <em class="parameter"><code>dissociate</code></em>
function, miners <span class="emphasis"><em>must</em></span>
forget any user credentials stored.</p>
<div class="refsect3">
<a name="id-1.3.3.3.9.6.13"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><a class="link" href="TrackerMiner.html#TrackerMinerClass" title="TrackerMinerClass"><span class="type">TrackerMinerClass</span></a> <em class="structfield"><code><a name="TrackerMinerWebClass.parent-class"></a>parent_class</code></em>;</p></td>
<td class="struct_member_description"><p>parent object class</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TrackerMinerWebClass.authenticate"></a>authenticate</code></em> ()</p></td>
<td class="struct_member_description"><p>called when a miner must authenticate against a
remote service</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TrackerMinerWebClass.get-association-data"></a>get_association_data</code></em> ()</p></td>
<td class="struct_member_description"><p>called when one requests the miner's
associated data</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TrackerMinerWebClass.associate"></a>associate</code></em> ()</p></td>
<td class="struct_member_description"><p>called when the miner is asked to associate a remote
service</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="TrackerMinerWebClass.dissociate"></a>dissociate</code></em> ()</p></td>
<td class="struct_member_description"><p>called when the miner is asked to revoke an
association with a remote service</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.8.</p>
</div>
<hr>
<div class="refsect2">
<a name="TrackerMinerWebError"></a><h3>enum TrackerMinerWebError</h3>
<p>The following errors are possible during any of the performed
actions with a remote service.</p>
<div class="refsect3">
<a name="id-1.3.3.3.9.7.4"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-WRONG-CREDENTIALS:CAPS"></a>TRACKER_MINER_WEB_ERROR_WRONG_CREDENTIALS</p></td>
<td class="enum_member_description">
<p>The credentials were
refused by the remote service</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-TOKEN-EXPIRED:CAPS"></a>TRACKER_MINER_WEB_ERROR_TOKEN_EXPIRED</p></td>
<td class="enum_member_description">
<p>The remote service
token has expired</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-NO-CREDENTIALS:CAPS"></a>TRACKER_MINER_WEB_ERROR_NO_CREDENTIALS</p></td>
<td class="enum_member_description">
<p>There are currenty no
credentials stored for this service</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-KEYRING:CAPS"></a>TRACKER_MINER_WEB_ERROR_KEYRING</p></td>
<td class="enum_member_description">
<p>The credential storage failed to
retrieve the relevant information. See <code class="classname">TrackerPasswordProvider</code></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-SERVICE:CAPS"></a>TRACKER_MINER_WEB_ERROR_SERVICE</p></td>
<td class="enum_member_description">
<p>Could not contact the remote service</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TRACKER-MINER-WEB-ERROR-TRACKER:CAPS"></a>TRACKER_MINER_WEB_ERROR_TRACKER</p></td>
<td class="enum_member_description">
<p>Could not contact the Tracker service</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.8</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.20</div>
</body>
</html>
|