Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 98d6b53e11e983e268c3e19f14e091a0 > files > 3607

kdepim-devel-doc-3.5.9-9mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>kpilot/lib: PilotSerialDatabase Class Reference (kpilot/lib)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



<style type="text/css">
<!--
hr { display: none; }
#content h2 { margin-left: 0px; }
table.mdTable { background-color: #f8f8f8; border: .2em solid #d7d7d7; }
td.mdRow { padding: 8px 20px; }
td.md { font-weight: bold; }
td.mdname1 { font-weight: bold; color: #602020; }
td.mdname { font-weight: bold; color: #602020;  }

-->
</style>

</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>
  <img id="nav_header_logo_right" alt="" align="right" src="../../../pimlogo.png" border="0" />

  <div id="nav_header_title" align="left">KDE PIM API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_left" style="text-align: left;">
/ <a href="../../../">API Reference</a>
 / <a href="../../html/index.html">kpilot</a> / <a href=".">lib</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <h2><a name="content"></a>kpilot/lib</h2>


<!-- Generated by Doxygen 1.5.5 -->
<div class="contents">
<h1>PilotSerialDatabase Class Reference</h1><!-- doxytag: class="PilotSerialDatabase" --><!-- doxytag: inherits="PilotDatabase" --><code>#include &lt;<a class="el" href="pilotSerialDatabase_8h-source.html">pilotSerialDatabase.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for PilotSerialDatabase:</div>
<div class="dynsection">

<p><center><img src="classPilotSerialDatabase.png" usemap="#PilotSerialDatabase_map" border="0" alt=""></center>
<map name="PilotSerialDatabase_map">
<area href="classPilotDatabase.html" alt="PilotDatabase" shape="rect" coords="0,0,122,24">
</map>
</div>

<p>
<a href="classPilotSerialDatabase-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classPilotSerialDatabase.html" title="PilotSerialDatabase represents databases stored on the handheld and accessed through...">PilotSerialDatabase</a> represents databases stored on the handheld and accessed through the SLP / DLP protocol. 
<p>Definition at line <a class="el" href="pilotSerialDatabase_8h-source.html#l00048">48</a> of file <a class="el" href="pilotSerialDatabase_8h-source.html">pilotSerialDatabase.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#e8d3d51adde43ea47e471738dffd4285">readAppBlock</a> (unsigned char *buffer, int maxLen)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#adec0b2aafed061054dd226b16d3a737">writeAppBlock</a> (unsigned char *buffer, int len)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#9cb91d6d21e1720d64f82dcc8fe97302">recordCount</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QValueList&lt; recordid_t &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#2815facb01b40d92f86e5008283f83ab">idList</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPilotRecord.html">PilotRecord</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#e7074bfdf1874f8d1994534232174d98">readRecordById</a> (recordid_t id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPilotRecord.html">PilotRecord</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#bd3a9658387f8e1dab4cd0f4031eaa99">readRecordByIndex</a> (int index)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPilotRecord.html">PilotRecord</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#df8b459a9bf60f69e7b6c0aaaa7dd2d3">readNextRecInCategory</a> (int category)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPilotRecord.html">PilotRecord</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#5d63ffc287a43e834eaf64419673b80f">readNextModifiedRec</a> (int *ind=NULL)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual recordid_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#900630953e2a83d0869b4932f4658e53">writeRecord</a> (<a class="el" href="classPilotRecord.html">PilotRecord</a> *newRecordb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#4b6f498e6b21e1086c17238cd50bacc9">deleteRecord</a> (recordid_t id, bool all=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#b91b4e8bff4d80c2ec2018dfac4c969e">resetSyncFlags</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#47a606f47cf0781dfb58aa095351dcd3">resetDBIndex</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#dec9667de0f9d0935cc1d95dbb2cd51c">cleanup</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#ce43d59e5f0e30257940b76d27bc6b64">dbPathName</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#8f6dd0cadfd106fa86ee65e5c6bada68">deleteDatabase</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#82b4591a0aa2ade0bb528c14dc5159bc">createDatabase</a> (long creator=0, long type=0, int cardno=0, int flags=0, int version=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f017c36aad290ffd5056a714f8aeadb"></a><!-- doxytag: member="PilotSerialDatabase::getDBName" ref="5f017c36aad290ffd5056a714f8aeadb" args="()" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>getDBName</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="60c73cb231068c19a6a1c20077363d70"></a><!-- doxytag: member="PilotSerialDatabase::dbType" ref="60c73cb231068c19a6a1c20077363d70" args="() const " -->
virtual <a class="el" href="classPilotDatabase.html#f5ccab01d90d0becc7116093be174647">DBType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>dbType</b> () const </td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9e8a43b1a1dc66dd498a534027c05779"></a><!-- doxytag: member="PilotSerialDatabase::PilotSerialDatabase" ref="9e8a43b1a1dc66dd498a534027c05779" args="(KPilotDeviceLink *l, const QString &amp;dbName)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>PilotSerialDatabase</b> (<a class="el" href="classKPilotDeviceLink.html">KPilotDeviceLink</a> *l, const QString &amp;dbName)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b4d8a7322a5bc406915a79d908b8582"></a><!-- doxytag: member="PilotSerialDatabase::PilotSerialDatabase" ref="8b4d8a7322a5bc406915a79d908b8582" args="(KPilotDeviceLink *l, const DBInfo *info)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>PilotSerialDatabase</b> (<a class="el" href="classKPilotDeviceLink.html">KPilotDeviceLink</a> *l, const DBInfo *info)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d1208b7def1bec4fba8652c3a85cba27"></a><!-- doxytag: member="PilotSerialDatabase::openDatabase" ref="d1208b7def1bec4fba8652c3a85cba27" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>openDatabase</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f5b1f091efd38ec5b80019b7046d95ad"></a><!-- doxytag: member="PilotSerialDatabase::closeDatabase" ref="f5b1f091efd38ec5b80019b7046d95ad" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>closeDatabase</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#0116ecfdb35054f7532e636a3d340cd0">getDBHandle</a> () const </td></tr>

<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c7d26fbdcef9a0472348a27a2292040c"></a><!-- doxytag: member="PilotSerialDatabase::KPilotDeviceLink" ref="c7d26fbdcef9a0472348a27a2292040c" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPilotSerialDatabase.html#c7d26fbdcef9a0472348a27a2292040c">KPilotDeviceLink</a></td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e8d3d51adde43ea47e471738dffd4285"></a><!-- doxytag: member="PilotSerialDatabase::readAppBlock" ref="e8d3d51adde43ea47e471738dffd4285" args="(unsigned char *buffer, int maxLen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::readAppBlock           </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>maxLen</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reads the application block info, returns size. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#8c8ba52882f589437a7b3f7d016bdc1b">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00097">97</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="adec0b2aafed061054dd226b16d3a737"></a><!-- doxytag: member="PilotSerialDatabase::writeAppBlock" ref="adec0b2aafed061054dd226b16d3a737" args="(unsigned char *buffer, int len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::writeAppBlock           </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>len</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Writes the application block info. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#1404eedc672242ed7e9760abf40419b2">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00116">116</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="9cb91d6d21e1720d64f82dcc8fe97302"></a><!-- doxytag: member="PilotSerialDatabase::recordCount" ref="9cb91d6d21e1720d64f82dcc8fe97302" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int PilotSerialDatabase::recordCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
returns the number of records in the database, 0 if not open 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#cdca85cac6283e67eb638c0482d0264d">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00128">128</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="2815facb01b40d92f86e5008283f83ab"></a><!-- doxytag: member="PilotSerialDatabase::idList" ref="2815facb01b40d92f86e5008283f83ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QValueList&lt; recordid_t &gt; PilotSerialDatabase::idList           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a QValueList of all record ids in the database. 
<p>

<p>Reimplemented from <a class="el" href="classPilotDatabase.html#14470b7fcd6e6ecc6b1349709f122533">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00144">144</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="e7074bfdf1874f8d1994534232174d98"></a><!-- doxytag: member="PilotSerialDatabase::readRecordById" ref="e7074bfdf1874f8d1994534232174d98" args="(recordid_t id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPilotRecord.html">PilotRecord</a> * PilotSerialDatabase::readRecordById           </td>
          <td>(</td>
          <td class="paramtype">recordid_t&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reads a record from database by id, returns record length. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#4de980c912281991628b51f10c3afa52">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00171">171</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="bd3a9658387f8e1dab4cd0f4031eaa99"></a><!-- doxytag: member="PilotSerialDatabase::readRecordByIndex" ref="bd3a9658387f8e1dab4cd0f4031eaa99" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPilotRecord.html">PilotRecord</a> * PilotSerialDatabase::readRecordByIndex           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reads a record from database, returns the record length. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#eaadc91b9377769c34527474812ed49f">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00196">196</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="df8b459a9bf60f69e7b6c0aaaa7dd2d3"></a><!-- doxytag: member="PilotSerialDatabase::readNextRecInCategory" ref="df8b459a9bf60f69e7b6c0aaaa7dd2d3" args="(int category)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPilotRecord.html">PilotRecord</a> * PilotSerialDatabase::readNextRecInCategory           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>category</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reads the next record from database in category 'category'. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#fceb792665a47405cab20a4a834e7078">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00222">222</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="5d63ffc287a43e834eaf64419673b80f"></a><!-- doxytag: member="PilotSerialDatabase::readNextModifiedRec" ref="5d63ffc287a43e834eaf64419673b80f" args="(int *ind=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPilotRecord.html">PilotRecord</a> * PilotSerialDatabase::readNextModifiedRec           </td>
          <td>(</td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>ind</em> = <code>NULL</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reads the next record from database that has the dirty flag set. 
<p>
ind (if a valid pointer is given) will receive the index of the returned record. 
<p>Implements <a class="el" href="classPilotDatabase.html#f964f36b35ba4d13917408e4813d599a">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00241">241</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="900630953e2a83d0869b4932f4658e53"></a><!-- doxytag: member="PilotSerialDatabase::writeRecord" ref="900630953e2a83d0869b4932f4658e53" args="(PilotRecord *newRecordb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">recordid_t PilotSerialDatabase::writeRecord           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPilotRecord.html">PilotRecord</a> *&nbsp;</td>
          <td class="paramname"> <em>newRecordb</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Writes a new record to database (if 'id' == 0, one will be assigned to newRecord). 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#974c3b97cfb107386929c108a67def14">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00262">262</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="4b6f498e6b21e1086c17238cd50bacc9"></a><!-- doxytag: member="PilotSerialDatabase::deleteRecord" ref="4b6f498e6b21e1086c17238cd50bacc9" args="(recordid_t id, bool all=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::deleteRecord           </td>
          <td>(</td>
          <td class="paramtype">recordid_t&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>all</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Deletes a record with the given recordid_t from the database, or all records, if all is set to true. 
<p>
The recordid_t will be ignored in this case. Return value is negative on error, 0 otherwise. 
<p>Implements <a class="el" href="classPilotDatabase.html#e7e2e329de660b00b202af22e7e6f992">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00294">294</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="b91b4e8bff4d80c2ec2018dfac4c969e"></a><!-- doxytag: member="PilotSerialDatabase::resetSyncFlags" ref="b91b4e8bff4d80c2ec2018dfac4c969e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::resetSyncFlags           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resets all records in the database to not dirty. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#9543bcac4220b5356bcd238435b3c68a">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00307">307</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="47a606f47cf0781dfb58aa095351dcd3"></a><!-- doxytag: member="PilotSerialDatabase::resetDBIndex" ref="47a606f47cf0781dfb58aa095351dcd3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::resetDBIndex           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resets next record index to beginning. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#033b9c7d48e633bab3281351820cf293">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00319">319</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="dec9667de0f9d0935cc1d95dbb2cd51c"></a><!-- doxytag: member="PilotSerialDatabase::cleanup" ref="dec9667de0f9d0935cc1d95dbb2cd51c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::cleanup           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Purges all Archived/Deleted records from Palm <a class="el" href="namespacePilot.html" title="The Pilot namespace holds constants that are global for the handheld data structures...">Pilot</a> database. 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#cb57840cbb710cb4788296b0a938e0cf">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00331">331</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="ce43d59e5f0e30257940b76d27bc6b64"></a><!-- doxytag: member="PilotSerialDatabase::dbPathName" ref="ce43d59e5f0e30257940b76d27bc6b64" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString PilotSerialDatabase::dbPathName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns some sensible human-readable identifier for the database. 
<p>
Serial databases get <a class="el" href="namespacePilot.html" title="The Pilot namespace holds constants that are global for the handheld data structures...">Pilot</a>:, local databases return the full path. 
<p>Implements <a class="el" href="classPilotDatabase.html#e4f502da20c819cc7527ab1ad1f3b2ab">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00089">89</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="8f6dd0cadfd106fa86ee65e5c6bada68"></a><!-- doxytag: member="PilotSerialDatabase::deleteDatabase" ref="8f6dd0cadfd106fa86ee65e5c6bada68" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::deleteDatabase           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Deletes the database (by name, as given in the constructor and stored in the fDBName field). 
<p>

<p>Implements <a class="el" href="classPilotDatabase.html#7ca916f83f35fddaca5a2317e7a09d28">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00417">417</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="82b4591a0aa2ade0bb528c14dc5159bc"></a><!-- doxytag: member="PilotSerialDatabase::createDatabase" ref="82b4591a0aa2ade0bb528c14dc5159bc" args="(long creator=0, long type=0, int cardno=0, int flags=0, int version=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool PilotSerialDatabase::createDatabase           </td>
          <td>(</td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>creator</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>type</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>cardno</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>version</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates the database with the given creator, type and flags on the given card (default is RAM). 
<p>
If the database already exists, this function does nothing. 
<p>Implements <a class="el" href="classPilotDatabase.html#d1698d12ca266a8306e5bc34df5e560c">PilotDatabase</a>.</p>

<p>Definition at line <a class="el" href="pilotSerialDatabase_8cc-source.html#l00382">382</a> of file <a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="0116ecfdb35054f7532e636a3d340cd0"></a><!-- doxytag: member="PilotSerialDatabase::getDBHandle" ref="0116ecfdb35054f7532e636a3d340cd0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PilotSerialDatabase::getDBHandle           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the file handle used to communicate with the handheld. 
<p>
This is an internal value to be passed to DLP functions. 
<p>Definition at line <a class="el" href="pilotSerialDatabase_8h-source.html#l00124">124</a> of file <a class="el" href="pilotSerialDatabase_8h-source.html">pilotSerialDatabase.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="pilotSerialDatabase_8h-source.html">pilotSerialDatabase.h</a><li><a class="el" href="pilotSerialDatabase_8cc-source.html">pilotSerialDatabase.cc</a></ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kpilot/lib</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classActionQueue.html">actionqueue</option>,  <option value="classCleanupAction.html">cleanupaction</option>,  <option value="classConduitAction.html">conduitaction</option>,  <option value="classConduitConfigBase.html">conduitconfigbase</option>,  <option value="classConduitFactory.html">conduitfactory</option>,  <option value="classConduitProxy.html">conduitproxy</option>,  <option value="classCUDCounter.html">cudcounter</option>,  <option value="classDatabaseInterpreter.html">databaseinterpreter</option>,  <option value="classDeviceCommThread.html">devicecommthread</option>,  <option value="classIDMapper.html">idmapper</option>,  <option value="classKPilotDeviceLink.html">kpilotdevicelink</option>,  <option value="classKPilotLink.html">kpilotlink</option>,  <option value="classKPilotLocalLink.html">kpilotlocallink</option>,  <option value="classNullMapper.html">nullmapper</option>,  <option value="classPhoneSlot.html">phoneslot</option>,  <option value="classPilotAddress.html">pilotaddress</option>,  <option value="classPilotAppInfo.html">pilotappinfo</option>,  <option value="classPilotAppInfoBase.html">pilotappinfobase</option>,  <option value="classPilotDatabase.html">pilotdatabase</option>,  <option value="classPilotDateEntry.html">pilotdateentry</option>,  <option value="classPilotLocalDatabase.html">pilotlocaldatabase</option>,  <option value="classPilotRecord.html">pilotrecord</option>,  <option value="classPilotRecordBase.html">pilotrecordbase</option>,  <option value="classPilotSerialDatabase.html">pilotserialdatabase</option>,  <option value="classPilotTodoEntry.html">pilottodoentry</option>,  <option value="classRecordConduitBase.html">recordconduitbase</option>,  <option value="classSorryAction.html">sorryaction</option>,  <option value="classSyncAction_1_1SyncMode.html">syncaction::syncmode</option>,  <option value="classTestLink.html">testlink</option>,  <option value="classWelcomeAction.html">welcomeaction</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../../akregator/html/index.html">akregator</a></li><li>&nbsp;&nbsp;<a href="../../../akregator/src/html/index.html">src</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../akregator/src/librss/html/index.html">librss</a></li><li><a href="../../../certmanager/html/index.html">certmanager</a></li><li>&nbsp;&nbsp;<a href="../../../certmanager/lib/html/index.html">lib</a></li><li><a href="../../../kaddressbook/html/index.html">kaddressbook</a></li><li><a href="../../../kalarm/html/index.html">kalarm</a></li><li>&nbsp;&nbsp;<a href="../../../kalarm/lib/html/index.html">lib</a></li><li><a href="../../../kandy/html/index.html">kandy</a></li><li><a href="../../../karm/html/index.html">karm</a></li><li><a href="../../../kdgantt/html/index.html">kdgantt</a></li><li><a href="../../../kgantt/html/index.html">kgantt</a></li><li><a href="../../../kioslaves/html/index.html">kioslaves</a></li><li>&nbsp;&nbsp;<a href="../../../kioslaves/imap4/html/index.html">imap4</a></li><li>&nbsp;&nbsp;<a href="../../../kioslaves/mbox/html/index.html">mbox</a></li><li><a href="../../../kitchensync/html/index.html">kitchensync</a></li><li><a href="../../../kmail/html/index.html">kmail</a></li><li><a href="../../../knotes/html/index.html">knotes</a></li><li><a href="../../../konsolekalendar/html/index.html">konsolekalendar</a></li><li><a href="../../../kontact/html/index.html">kontact</a></li><li><a href="../../../korganizer/html/index.html">korganizer</a></li><li><a href="../../../kpilot/html/index.html">kpilot</a></li><li>&nbsp;&nbsp;<a href="../../../kpilot/kpilot/html/index.html">kpilot</a></li><li>&nbsp;&nbsp;<a href="../../../kpilot/lib/html/index.html">lib</a></li><li><a href="../../../libemailfunctions/html/index.html">libemailfunctions</a></li><li><a href="../../../libkcal/html/index.html">libkcal</a></li><li><a href="../../../libkdepim/html/index.html">libkdepim</a></li><li><a href="../../../libkholidays/html/index.html">libkholidays</a></li><li><a href="../../../libkmime/html/index.html">libkmime</a></li><li><a href="../../../libkpgp/html/index.html">libkpgp</a></li><li><a href="../../../libkpimidentities/html/index.html">libkpimidentities</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>