Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1767

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qversitcontacthandler.cpp -->
  <title>Qt Mobility 1.2: QVersitContactHandlerFactory Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtversit.html">QtVersit</a></li>
<li>QVersitContactHandlerFactory</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QVersitContactHandlerFactory Class Reference</h1>
<!-- $$$QVersitContactHandlerFactory-brief -->
<p>The QVersitContactHandlerFactory class provides the interface for Versit plugins. <a href="#details">More...</a></p>
<!-- @@@QVersitContactHandlerFactory -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QVersitContactHandlerFactory&gt;</span></pre><ul>
<li><a href="qversitcontacthandlerfactory-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#dtor.QVersitContactHandlerFactory">~QVersitContactHandlerFactory</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVersitContactHandler * </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#createHandler">createHandler</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#index">index</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#name">name</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSet&lt;QString&gt; </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#profiles">profiles</a></b> () const</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#ProfileBackup-var">ProfileBackup</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QLatin1Constant </td><td class="memItemRight bottomAlign"><b><a href="qversitcontacthandlerfactory.html#ProfileSync-var">ProfileSync</a></b></td></tr>
</table>
<a name="details"></a>
<!-- $$$QVersitContactHandlerFactory-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QVersitContactHandlerFactory class provides the interface for Versit plugins.</p>
<p>This class provides a simple interface for the creation of <a href="qversitcontacthandler.html">QVersitContactHandler</a> instances. Implement this interface to write a Versit plugin. For more details, see <a href="versitplugins.html">Versit Plugins</a>.</p>
</div>
<!-- @@@QVersitContactHandlerFactory -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QVersitContactHandlerFactory[overload1]$$$~QVersitContactHandlerFactory -->
<h3 class="fn"><a name="dtor.QVersitContactHandlerFactory"></a>QVersitContactHandlerFactory::<span class="name">~QVersitContactHandlerFactory</span> ()<tt> [virtual]</tt></h3>
<p>This frees any memory used by the <a href="qversitcontacthandlerfactory.html">QVersitContactHandlerFactory</a>.</p>
<!-- @@@~QVersitContactHandlerFactory -->
<!-- $$$createHandler[overload1]$$$createHandler -->
<h3 class="fn"><a name="createHandler"></a><span class="type"><a href="qversitcontacthandler.html">QVersitContactHandler</a></span> * QVersitContactHandlerFactory::<span class="name">createHandler</span> () const<tt> [pure virtual]</tt></h3>
<p>This function is called by the Versit importer or exporter class to create an instance of the handler provided by this factory.</p>
<!-- @@@createHandler -->
<!-- $$$index[overload1]$$$index -->
<h3 class="fn"><a name="index"></a><span class="type">int</span> QVersitContactHandlerFactory::<span class="name">index</span> () const<tt> [virtual]</tt></h3>
<p>This function should return an index that helps with determining the order in which to run the plugins. Plugins are run in the following order:</p>
<ul>
<li>Positively-indexed, ascending</li>
<li>Zero-indexed</li>
<li>Negatively-indexed, ascending</li>
</ul>
<p>For example, plugins with an index of 1 are run first and plugins of index -1 are run last. If more than one plugin share an index, the order of execution between them is undefined.</p>
<p>By default, this returns 0, which is recommended for plugins with no special ordering requirements.</p>
<!-- @@@index -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn"><a name="name"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QVersitContactHandlerFactory::<span class="name">name</span> () const<tt> [pure virtual]</tt></h3>
<p>This function should return a unique string that identifies the handlers provided by this factory. Typically, this will be of the form &quot;com.nokia.qt.mobility.versit.samplehandler&quot; with the appropriate domain and handler name substituted.</p>
<!-- @@@name -->
<!-- $$$profiles[overload1]$$$profiles -->
<h3 class="fn"><a name="profiles"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qset.html">QSet</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; QVersitContactHandlerFactory::<span class="name">profiles</span> () const<tt> [virtual]</tt></h3>
<p>This function can be overridden to allow a plugin to report which profiles it is to be active under. If this (as in the default case) returns the empty set, it indicates that the plugin should be loaded under all profiles. If it returns a non-empty set, it will only be loaded for those profiles that are specified by the importer/exporter class.</p>
<!-- @@@profiles -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$ProfileBackup -->
<h3 class="fn"><a name="ProfileBackup-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QVersitContactHandlerFactory::<span class="name">ProfileBackup</span></h3>
<p>The constant string signifying a plugin that will backup a <a href="qcontact.html">QContact</a> to vCard, so that exporting, then importing a contact will not lose any data.</p>
<p><b>See also </b><a href="qversitcontacthandlerfactory.html#profiles">profiles</a>(), <a href="qversitcontactimporter.html#QVersitContactImporter">QVersitContactImporter::QVersitContactImporter</a>(), and <a href="qversitcontactexporter.html#QVersitContactExporter">QVersitContactExporter::QVersitContactExporter</a>().</p>
<!-- @@@ProfileBackup -->
<!-- $$$ProfileSync -->
<h3 class="fn"><a name="ProfileSync-var"></a>const <span class="type"><a href="qlatin1constant.html">QLatin1Constant</a></span> QVersitContactHandlerFactory::<span class="name">ProfileSync</span></h3>
<p>The constant string signifying a plugin that is relevant to import and export in a synchronization context.</p>
<p><b>See also </b><a href="qversitcontacthandlerfactory.html#profiles">profiles</a>(), <a href="qversitcontactimporter.html#QVersitContactImporter">QVersitContactImporter::QVersitContactImporter</a>(), and <a href="qversitcontactexporter.html#QVersitContactExporter">QVersitContactExporter::QVersitContactExporter</a>().</p>
<!-- @@@ProfileSync -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>