aboutsummaryrefslogtreecommitdiff
path: root/libcontextsubscriber/doc/html/class_info_xml_backend.html
blob: 72e50df474c14a905965d7d0e87bf818a72ce62c (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libcontextsubscriber: InfoXmlBackend Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>InfoXmlBackend Class Reference</h1><!-- doxytag: class="InfoXmlBackend" --><!-- doxytag: inherits="InfoBackend" -->
<p>Implements the <a class="el" href="class_info_backend.html" title="An abstract (pure virtual) singleton class that represents the actual registry backend...">InfoBackend</a> for reading data from a directory with xml files.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="infoxmlbackend_8h_source.html">infoxmlbackend.h</a>&gt;</code></p>

<p><a href="class_info_xml_backend-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a85f5bb72b4841d7012ff63bd7627f2d0">InfoXmlBackend</a> (QObject *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a83ac8d65786de855c402b426222ab72b">name</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns 'xml'.  <a href="#a83ac8d65786de855c402b426222ab72b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a74d2b52119a26ca60203ecf86721e38c">listKeys</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the list of all the keys in the registry.  <a href="#a74d2b52119a26ca60203ecf86721e38c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a3b0753cd69c99c2fe188e7fd912a072a">docForKey</a> (QString key) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the documentation for the given <em>key</em> name.  <a href="#a3b0753cd69c99c2fe188e7fd912a072a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a34f0f40564466e150f433aced83af71a">keyDeclared</a> (QString key) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the given key exists.  <a href="#a34f0f40564466e150f433aced83af71a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const QList<br class="typebreak"/>
&lt; <a class="el" href="struct_context_provider_info.html">ContextProviderInfo</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#af72852cc9ec862658d2be1d59be536c0">providersForKey</a> (QString key) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a list of providers for the given key.  <a href="#af72852cc9ec862658d2be1d59be536c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_context_type_info.html">ContextTypeInfo</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#ae2ffd838ca91a653ea2f18cfa35c8799">typeInfoForKey</a> (QString key) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the type information for the given <em>key</em>.  <a href="#ae2ffd838ca91a653ea2f18cfa35c8799"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#aeba0f378c01b6740c53ea977c10947b0">registryPath</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the full path to the registry directory.  <a href="#aeba0f378c01b6740c53ea977c10947b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#ae919a19ac7fc38f60048b900d49c41d5">coreDeclPath</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the full path to the core property declaration file.  <a href="#ae919a19ac7fc38f60048b900d49c41d5"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#aedf432bc14783ab4e9f2858a088e0643">onDirectoryChanged</a> (const QString &amp;path)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the registry directory changed (ie.  <a href="#aedf432bc14783ab4e9f2858a088e0643"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#ab2155f5c965bc1249987f6ae942d004b">onFileChanged</a> (const QString &amp;path)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when one of the parsed XML files changed.  <a href="#ab2155f5c965bc1249987f6ae942d004b"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a1407eccac5cb06f88fc6014d4ee25f48">regenerateKeyDataList</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clears all the stored data about the registry and parses it all over again.  <a href="#a1407eccac5cb06f88fc6014d4ee25f48"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#ab5d85a566993462042838c786700f7f8">readKeyDataFromXml</a> (const QString &amp;path)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses a given <em>path</em> file and adds it's contents to the hash.  <a href="#ab5d85a566993462042838c786700f7f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a59c6595edec886fd70a451102196ea5c">parseKey</a> (const <a class="el" href="class_assoc_tree.html">AssocTree</a> &amp;keyTree, const <a class="el" href="class_assoc_tree.html">AssocTree</a> &amp;providerTree)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the given QVariant tree which is supposed to be a key tree.  <a href="#a59c6595edec886fd70a451102196ea5c"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QFileSystemWatcher&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a6ed00727580f66f06f33ecdb2a7581e7">watcher</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A watched object obsering the database file. Delivers synced notifications.  <a href="#a6ed00727580f66f06f33ecdb2a7581e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHash&lt; QString, <a class="el" href="struct_info_key_data.html">InfoKeyData</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a60f512bdb81310502e5d80c2b738d513">keyDataHash</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This hash contains the full state of registry in memory.  <a href="#a60f512bdb81310502e5d80c2b738d513"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHash&lt; QString, QList<br class="typebreak"/>
&lt; <a class="el" href="struct_context_provider_info.html">ContextProviderInfo</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#a6bc7baa201268651c5203c8ddf9f1eef">keyProvidersHash</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This hash contains providers for keys.  <a href="#a6bc7baa201268651c5203c8ddf9f1eef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_info_xml_backend.html#ac61fad8518de174500caaaa278bf1672">countOfFilesInLastParse</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The number of xml files we parsed in last registry update.  <a href="#ac61fad8518de174500caaaa278bf1672"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Implements the <a class="el" href="class_info_backend.html" title="An abstract (pure virtual) singleton class that represents the actual registry backend...">InfoBackend</a> for reading data from a directory with xml files. </p>
<p>This class is not exported in the public API. It keeps all the data cached in the memory. It's assumed that this backend is not going to be used live in production systems and does not need to be ultra-fast (instead, implementation simplicity and corectness are preffered). For fast backend see the <a class="el" href="class_info_cdb_backend.html" title="Implements the InfoBackend for reading data from a cdb database.">InfoCdbBackend</a>. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a85f5bb72b4841d7012ff63bd7627f2d0"></a><!-- doxytag: member="InfoXmlBackend::InfoXmlBackend" ref="a85f5bb72b4841d7012ff63bd7627f2d0" args="(QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">InfoXmlBackend::InfoXmlBackend </td>
          <td>(</td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae919a19ac7fc38f60048b900d49c41d5"></a><!-- doxytag: member="InfoXmlBackend::coreDeclPath" ref="ae919a19ac7fc38f60048b900d49c41d5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString InfoXmlBackend::coreDeclPath </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the full path to the core property declaration file. </p>
<p>Takes the <code>CONTEXT_CORE_DECLARATIONS</code> env variable into account. </p>

</div>
</div>
<a class="anchor" id="a3b0753cd69c99c2fe188e7fd912a072a"></a><!-- doxytag: member="InfoXmlBackend::docForKey" ref="a3b0753cd69c99c2fe188e7fd912a072a" args="(QString key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString InfoXmlBackend::docForKey </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>key</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the documentation for the given <em>key</em> name. </p>

<p>Implements <a class="el" href="class_info_backend.html#af90947cb65d219d1f703683a471f649d">InfoBackend</a>.</p>

</div>
</div>
<a class="anchor" id="a34f0f40564466e150f433aced83af71a"></a><!-- doxytag: member="InfoXmlBackend::keyDeclared" ref="a34f0f40564466e150f433aced83af71a" args="(QString key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool InfoXmlBackend::keyDeclared </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>key</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the given key exists. </p>

<p>Implements <a class="el" href="class_info_backend.html#a4ff58350a0f16796b0704353f554d303">InfoBackend</a>.</p>

</div>
</div>
<a class="anchor" id="a74d2b52119a26ca60203ecf86721e38c"></a><!-- doxytag: member="InfoXmlBackend::listKeys" ref="a74d2b52119a26ca60203ecf86721e38c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList InfoXmlBackend::listKeys </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the list of all the keys in the registry. </p>

<p>Implements <a class="el" href="class_info_backend.html#ab982301f28a9655255683ad66c8f0c95">InfoBackend</a>.</p>

</div>
</div>
<a class="anchor" id="a83ac8d65786de855c402b426222ab72b"></a><!-- doxytag: member="InfoXmlBackend::name" ref="a83ac8d65786de855c402b426222ab72b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString InfoXmlBackend::name </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns 'xml'. </p>

<p>Implements <a class="el" href="class_info_backend.html#afa40871167e96ccc256e33b79a628ed3">InfoBackend</a>.</p>

</div>
</div>
<a class="anchor" id="aedf432bc14783ab4e9f2858a088e0643"></a><!-- doxytag: member="InfoXmlBackend::onDirectoryChanged" ref="aedf432bc14783ab4e9f2858a088e0643" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InfoXmlBackend::onDirectoryChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called when the registry directory changed (ie. </p>
<p>file removed or added). Triggers a whole registry rebuild + signal emissions. It detects a situation when a added/removed file was not a parsed(xml) file. </p>

</div>
</div>
<a class="anchor" id="ab2155f5c965bc1249987f6ae942d004b"></a><!-- doxytag: member="InfoXmlBackend::onFileChanged" ref="ab2155f5c965bc1249987f6ae942d004b" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InfoXmlBackend::onFileChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called when one of the parsed XML files changed. </p>
<p>This triggers a whole registry rebuild + signal emissions. </p>

</div>
</div>
<a class="anchor" id="a59c6595edec886fd70a451102196ea5c"></a><!-- doxytag: member="InfoXmlBackend::parseKey" ref="a59c6595edec886fd70a451102196ea5c" args="(const AssocTree &amp;keyTree, const AssocTree &amp;providerTree)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InfoXmlBackend::parseKey </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_assoc_tree.html">AssocTree</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>keyTree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_assoc_tree.html">AssocTree</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>providerTree</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse the given QVariant tree which is supposed to be a key tree. </p>

</div>
</div>
<a class="anchor" id="af72852cc9ec862658d2be1d59be536c0"></a><!-- doxytag: member="InfoXmlBackend::providersForKey" ref="af72852cc9ec862658d2be1d59be536c0" args="(QString key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QList&lt; <a class="el" href="struct_context_provider_info.html">ContextProviderInfo</a> &gt; InfoXmlBackend::providersForKey </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>key</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a list of providers for the given key. </p>

<p>Implements <a class="el" href="class_info_backend.html#a29733f7d3ba8bf62a932eae5b851d2f8">InfoBackend</a>.</p>

</div>
</div>
<a class="anchor" id="ab5d85a566993462042838c786700f7f8"></a><!-- doxytag: member="InfoXmlBackend::readKeyDataFromXml" ref="ab5d85a566993462042838c786700f7f8" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InfoXmlBackend::readKeyDataFromXml </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses a given <em>path</em> file and adds it's contents to the hash. </p>
<p>Also adds the file to the watcher (starts observing it). </p>

</div>
</div>
<a class="anchor" id="a1407eccac5cb06f88fc6014d4ee25f48"></a><!-- doxytag: member="InfoXmlBackend::regenerateKeyDataList" ref="a1407eccac5cb06f88fc6014d4ee25f48" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InfoXmlBackend::regenerateKeyDataList </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears all the stored data about the registry and parses it all over again. </p>

</div>
</div>
<a class="anchor" id="aeba0f378c01b6740c53ea977c10947b0"></a><!-- doxytag: member="InfoXmlBackend::registryPath" ref="aeba0f378c01b6740c53ea977c10947b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString InfoXmlBackend::registryPath </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the full path to the registry directory. </p>
<p>Takes the <code>CONTEXT_PROVIDERS</code> env variable into account. </p>

</div>
</div>
<a class="anchor" id="ae2ffd838ca91a653ea2f18cfa35c8799"></a><!-- doxytag: member="InfoXmlBackend::typeInfoForKey" ref="ae2ffd838ca91a653ea2f18cfa35c8799" args="(QString key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_type_info.html">ContextTypeInfo</a> InfoXmlBackend::typeInfoForKey </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>key</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the type information for the given <em>key</em>. </p>

<p>Implements <a class="el" href="class_info_backend.html#a96772d269c583b286607aad334efba94">InfoBackend</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ac61fad8518de174500caaaa278bf1672"></a><!-- doxytag: member="InfoXmlBackend::countOfFilesInLastParse" ref="ac61fad8518de174500caaaa278bf1672" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_info_xml_backend.html#ac61fad8518de174500caaaa278bf1672">InfoXmlBackend::countOfFilesInLastParse</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The number of xml files we parsed in last registry update. </p>

</div>
</div>
<a class="anchor" id="a60f512bdb81310502e5d80c2b738d513"></a><!-- doxytag: member="InfoXmlBackend::keyDataHash" ref="a60f512bdb81310502e5d80c2b738d513" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHash&lt;QString, <a class="el" href="struct_info_key_data.html">InfoKeyData</a>&gt; <a class="el" href="class_info_xml_backend.html#a60f512bdb81310502e5d80c2b738d513">InfoXmlBackend::keyDataHash</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This hash contains the full state of registry in memory. </p>

</div>
</div>
<a class="anchor" id="a6bc7baa201268651c5203c8ddf9f1eef"></a><!-- doxytag: member="InfoXmlBackend::keyProvidersHash" ref="a6bc7baa201268651c5203c8ddf9f1eef" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHash&lt;QString, QList&lt;<a class="el" href="struct_context_provider_info.html">ContextProviderInfo</a>&gt; &gt; <a class="el" href="class_info_xml_backend.html#a6bc7baa201268651c5203c8ddf9f1eef">InfoXmlBackend::keyProvidersHash</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This hash contains providers for keys. </p>

</div>
</div>
<a class="anchor" id="a6ed00727580f66f06f33ecdb2a7581e7"></a><!-- doxytag: member="InfoXmlBackend::watcher" ref="a6ed00727580f66f06f33ecdb2a7581e7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QFileSystemWatcher <a class="el" href="class_info_xml_backend.html#a6ed00727580f66f06f33ecdb2a7581e7">InfoXmlBackend::watcher</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A watched object obsering the database file. Delivers synced notifications. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="infoxmlbackend_8h_source.html">infoxmlbackend.h</a></li>
<li><a class="el" href="infoxmlbackend_8cpp.html">infoxmlbackend.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Wed Nov 18 12:52:34 2009 for libcontextsubscriber by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>