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
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>TelepathyQt4: Tp::KeyFile Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1"> </td>
<td class="postheader" valign="center">
<a href="index.html">
<font color="#004faf">Home</font></a> ·
<a href="classes.html">
<font color="#004faf">All Classes</font></a> ·
<a href="namespaces.html">
<font color="#004faf">All Namespaces</font></a> ·
<a href="modules.html">
<font color="#004faf">Modules</font></a> ·
<a href="functions.html">
<font color="#004faf">Functions</font></a> ·
<a href="files.html">
<font color="#004faf">Files</font></a>
</td>
</tr>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navpath"><a class="el" href="namespaceTp.html">Tp</a>::<a class="el" href="classTp_1_1KeyFile.html">KeyFile</a>
</div>
<div class="contents">
<h1>Tp::KeyFile Class Reference</h1><!-- doxytag: class="Tp::KeyFile" -->
<p>The <a class="el" href="classTp_1_1KeyFile.html" title="The KeyFile class provides an easy way to read key-pair files such as INI style files...">KeyFile</a> class provides an easy way to read key-pair files such as INI style files and .desktop files.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="key-file_8h_source.html">TelepathyQt4/KeyFile</a>></code></p>
<p><a href="classTp_1_1KeyFile-members.html">List of all members.</a></p>
<h2>Public Types</h2>
<ul>
<li>enum <a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8f">Status</a> { <br/>
<a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa65616e2a126d4901099ce7364342f521">None</a>,
<a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa3554fb31bc4636cf8d6b7d681bddfcf5">NoError</a>,
<a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa888ed65813f7b7534c4f56eff22f69e0">NotFoundError</a>,
<a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fad063347ce208b8b1436fa71d58a97506">AccessError</a>,
<br/>
<a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa2b3410c6ed6b98bbe858cdf011796891">FormatError</a>
<br/>
}
</ul>
<h2>Public Member Functions</h2>
<ul>
<li><a class="el" href="classTp_1_1KeyFile.html#a1fd9a31166095d239f51e3538847fab3">KeyFile</a> ()
<li><a class="el" href="classTp_1_1KeyFile.html#a0d66da4e201713fd5126f7eb875fd78e">KeyFile</a> (const QString &fileName)
<li><a class="el" href="classTp_1_1KeyFile.html#a9517bf1ae7c292eb66ee6e71d45bc3c1">~KeyFile</a> ()
<li>void <a class="el" href="classTp_1_1KeyFile.html#a8ddba762e3b4189edb0166311bb9c9ed">setFileName</a> (const QString &fileName)
<li>QString <a class="el" href="classTp_1_1KeyFile.html#a3094f721f9087ab88c1a3eb4cad581a8">fileName</a> () const
<li><a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8f">Status</a> <a class="el" href="classTp_1_1KeyFile.html#a9f412d570def49cf6145f5bf0a2e073c">status</a> () const
<li>void <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup</a> (const QString &group)
<li>QString <a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group</a> () const
<li>QStringList <a class="el" href="classTp_1_1KeyFile.html#ab3c881469618ecb7e750040cae6b192d">allGroups</a> () const
<li>QStringList <a class="el" href="classTp_1_1KeyFile.html#a5fa8f1abc48b8c1ba6423791ada20b26">allKeys</a> () const
<li>QStringList <a class="el" href="classTp_1_1KeyFile.html#aa62e3b6ee835fd03ee3e94703a240ae2">keys</a> () const
<li>bool <a class="el" href="classTp_1_1KeyFile.html#a1617726e2943a9d576920847f46c0ab4">contains</a> (const QString &key) const
<li>QString <a class="el" href="classTp_1_1KeyFile.html#ad8b15d4b511f04919fe6e600e8dc0d36">rawValue</a> (const QString &key) const
<li>QString <a class="el" href="classTp_1_1KeyFile.html#a7d9bec603609e9673b759e4ebf4b14d9">value</a> (const QString &key) const
<li>QStringList <a class="el" href="classTp_1_1KeyFile.html#a896237a56349b5f62703b40aca194cb8">valueAsStringList</a> (const QString &key) const
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="classTp_1_1KeyFile.html" title="The KeyFile class provides an easy way to read key-pair files such as INI style files...">KeyFile</a> class provides an easy way to read key-pair files such as INI style files and .desktop files. </p>
<p>It follows the rules regarding string escaping as defined in <a href="http://standards.freedesktop.org/desktop-entry-spec/latest/index.html">http://standards.freedesktop.org/desktop-entry-spec/latest/index.html</a> </p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8f"></a><!-- doxytag: member="Tp::KeyFile::Status" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8f">Tp::KeyFile::Status</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8fa65616e2a126d4901099ce7364342f521"></a><!-- doxytag: member="None" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8fa65616e2a126d4901099ce7364342f521" args="" -->None</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8fa3554fb31bc4636cf8d6b7d681bddfcf5"></a><!-- doxytag: member="NoError" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8fa3554fb31bc4636cf8d6b7d681bddfcf5" args="" -->NoError</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8fa888ed65813f7b7534c4f56eff22f69e0"></a><!-- doxytag: member="NotFoundError" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8fa888ed65813f7b7534c4f56eff22f69e0" args="" -->NotFoundError</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8fad063347ce208b8b1436fa71d58a97506"></a><!-- doxytag: member="AccessError" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8fad063347ce208b8b1436fa71d58a97506" args="" -->AccessError</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a26af4098cde4bc80ed3fc3d9e9f6ad8fa2b3410c6ed6b98bbe858cdf011796891"></a><!-- doxytag: member="FormatError" ref="a26af4098cde4bc80ed3fc3d9e9f6ad8fa2b3410c6ed6b98bbe858cdf011796891" args="" -->FormatError</em> </td><td>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a1fd9a31166095d239f51e3538847fab3"></a><!-- doxytag: member="Tp::KeyFile::KeyFile" ref="a1fd9a31166095d239f51e3538847fab3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Tp::KeyFile::KeyFile </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a <a class="el" href="classTp_1_1KeyFile.html" title="The KeyFile class provides an easy way to read key-pair files such as INI style files...">KeyFile</a> object used to read (key-pair) compliant files.</p>
<p>The status will be <a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa65616e2a126d4901099ce7364342f521">KeyFile::None</a> </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a8ddba762e3b4189edb0166311bb9c9ed">setFileName()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a0d66da4e201713fd5126f7eb875fd78e"></a><!-- doxytag: member="Tp::KeyFile::KeyFile" ref="a0d66da4e201713fd5126f7eb875fd78e" args="(const QString &fileName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Tp::KeyFile::KeyFile </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>fileName</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a <a class="el" href="classTp_1_1KeyFile.html" title="The KeyFile class provides an easy way to read key-pair files such as INI style files...">KeyFile</a> object used to read (key-pair) compliant files.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>fileName</em> </td><td>Name of the file to be read. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9517bf1ae7c292eb66ee6e71d45bc3c1"></a><!-- doxytag: member="Tp::KeyFile::~KeyFile" ref="a9517bf1ae7c292eb66ee6e71d45bc3c1" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Tp::KeyFile::~KeyFile </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Class destructor. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8ddba762e3b4189edb0166311bb9c9ed"></a><!-- doxytag: member="Tp::KeyFile::setFileName" ref="a8ddba762e3b4189edb0166311bb9c9ed" args="(const QString &fileName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::KeyFile::setFileName </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>fileName</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the name of the file to be read.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>fileName</em> </td><td>Name of the file to be read. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3094f721f9087ab88c1a3eb4cad581a8"></a><!-- doxytag: member="Tp::KeyFile::fileName" ref="a3094f721f9087ab88c1a3eb4cad581a8" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Tp::KeyFile::fileName </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the name of the file associated with this object.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Name of the file associated with this object. </dd></dl>
</div>
</div>
<a class="anchor" id="a9f412d570def49cf6145f5bf0a2e073c"></a><!-- doxytag: member="Tp::KeyFile::status" ref="a9f412d570def49cf6145f5bf0a2e073c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8f">KeyFile::Status</a> Tp::KeyFile::status </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a status code indicating the first error that was met by <a class="el" href="classTp_1_1KeyFile.html#a1fd9a31166095d239f51e3538847fab3">KeyFile</a>, or <a class="el" href="classTp_1_1KeyFile.html#a26af4098cde4bc80ed3fc3d9e9f6ad8fa3554fb31bc4636cf8d6b7d681bddfcf5">KeyFile::NoError</a> if no error occurred.</p>
<p>Make sure to use this method if you set the filename to be read using <a class="el" href="classTp_1_1KeyFile.html#a8ddba762e3b4189edb0166311bb9c9ed">setFileName()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Status code. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a8ddba762e3b4189edb0166311bb9c9ed">setFileName()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="adbc676ae3a5d4487e1f36803e9bc2351"></a><!-- doxytag: member="Tp::KeyFile::setGroup" ref="adbc676ae3a5d4487e1f36803e9bc2351" args="(const QString &group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::KeyFile::setGroup </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the current group to be used while reading keys.</p>
<p>Query functions such as <a class="el" href="classTp_1_1KeyFile.html#aa62e3b6ee835fd03ee3e94703a240ae2">keys()</a>, <a class="el" href="classTp_1_1KeyFile.html#a1617726e2943a9d576920847f46c0ab4">contains()</a> and <a class="el" href="classTp_1_1KeyFile.html#a7d9bec603609e9673b759e4ebf4b14d9">value()</a> are based on this group.</p>
<p>By default a empty group is used as the group for global keys and is used as the default group if none is set.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Name of the group to be used. </td></tr>
</table>
</dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a6723c6fa926f35924d7dd554d15f778c"></a><!-- doxytag: member="Tp::KeyFile::group" ref="a6723c6fa926f35924d7dd554d15f778c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Tp::KeyFile::group </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the current group.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Name of the current group. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ab3c881469618ecb7e750040cae6b192d"></a><!-- doxytag: member="Tp::KeyFile::allGroups" ref="ab3c881469618ecb7e750040cae6b192d" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QStringList Tp::KeyFile::allGroups </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return all groups in the desktop file.</p>
<p>Global keys will be added to a empty group.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of all groups in the desktop file. </dd></dl>
</div>
</div>
<a class="anchor" id="a5fa8f1abc48b8c1ba6423791ada20b26"></a><!-- doxytag: member="Tp::KeyFile::allKeys" ref="a5fa8f1abc48b8c1ba6423791ada20b26" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QStringList Tp::KeyFile::allKeys </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return all keys described in the desktop file.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of all keys in the desktop file. </dd></dl>
</div>
</div>
<a class="anchor" id="aa62e3b6ee835fd03ee3e94703a240ae2"></a><!-- doxytag: member="Tp::KeyFile::keys" ref="aa62e3b6ee835fd03ee3e94703a240ae2" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QStringList Tp::KeyFile::keys </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a list of keys in the current group.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of all keys in the current group. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a>, <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a1617726e2943a9d576920847f46c0ab4"></a><!-- doxytag: member="Tp::KeyFile::contains" ref="a1617726e2943a9d576920847f46c0ab4" args="(const QString &key) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::KeyFile::contains </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>key</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if the current group contains a key named <em>key</em>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if <em>key</em> exists, false otherwise. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a>, <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ad8b15d4b511f04919fe6e600e8dc0d36"></a><!-- doxytag: member="Tp::KeyFile::rawValue" ref="ad8b15d4b511f04919fe6e600e8dc0d36" args="(const QString &key) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Tp::KeyFile::rawValue </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>key</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the raw value for the key in the current group named <em>key</em>.</p>
<p>The raw value is the value as is in the key file.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Value of <em>key</em>, empty string if not found. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a>, <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a7d9bec603609e9673b759e4ebf4b14d9"></a><!-- doxytag: member="Tp::KeyFile::value" ref="a7d9bec603609e9673b759e4ebf4b14d9" args="(const QString &key) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Tp::KeyFile::value </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>key</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the value for the key in the current group named <em>key</em>.</p>
<p>Escape sequences in the value are interpreted as defined in: <a href="http://standards.freedesktop.org/desktop-entry-spec/latest/">http://standards.freedesktop.org/desktop-entry-spec/latest/</a></p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Value of <em>key</em>, empty string if not found or an error occurred. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a>, <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a896237a56349b5f62703b40aca194cb8"></a><!-- doxytag: member="Tp::KeyFile::valueAsStringList" ref="a896237a56349b5f62703b40aca194cb8" args="(const QString &key) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QStringList Tp::KeyFile::valueAsStringList </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>key</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the value for the key in the current group named <em>key</em> as a list.</p>
<p>Return a list containing all strings on this key separated by ';'. Escape sequences in the value are interpreted as defined in: <a href="http://standards.freedesktop.org/desktop-entry-spec/latest/">http://standards.freedesktop.org/desktop-entry-spec/latest/</a></p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Value of <em>key</em> as a list, empty string list if not found or an error occurred. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1KeyFile.html#a6723c6fa926f35924d7dd554d15f778c">group()</a>, <a class="el" href="classTp_1_1KeyFile.html#adbc676ae3a5d4487e1f36803e9bc2351">setGroup()</a> </dd></dl>
</div>
</div>
</div>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation</td>
<td width="30%" align="right"><div align="right">Telepathy-Qt4 0.3.6</div></td>
</tr></table></div></address>
</body>
</html>
|