Sophie

Sophie

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

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" />
<!-- qcontactmanagerenginefactory.cpp -->
  <title>Qt Mobility 1.2: QContactManagerEngineFactory 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="qtcontacts.html">QtContacts</a></li>
<li>QContactManagerEngineFactory</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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QContactManagerEngineFactory Class Reference</h1>
<!-- $$$QContactManagerEngineFactory-brief -->
<p>The QContactManagerEngineFactory class provides the interface for plugins that implement <a href="qcontactmanagerengine.html">QContactManagerEngine</a> functionality. <a href="#details">More...</a></p>
<!-- @@@QContactManagerEngineFactory -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QContactManagerEngineFactory&gt;</span></pre><p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qcontactmanagerenginefactory-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="qcontactmanagerenginefactory.html#dtor.QContactManagerEngineFactory">~QContactManagerEngineFactory</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QContactManagerEngine * </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanagerenginefactory.html#engine">engine</a></b> ( const QMap&lt;QString, QString&gt; &amp; <i>parameters</i>, QContactManager::Error * <i>error</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanagerenginefactory.html#managerName">managerName</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QList&lt;int&gt; </td><td class="memItemRight bottomAlign"><b><a href="qcontactmanagerenginefactory.html#supportedImplementationVersions">supportedImplementationVersions</a></b> () const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QContactManagerEngineFactory-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QContactManagerEngineFactory class provides the interface for plugins that implement <a href="qcontactmanagerengine.html">QContactManagerEngine</a> functionality.</p>
<p>This class provides a simple interface for the creation of manager engine instances. Each factory has a specific id associated with it, which forms the <tt>managerName</tt> parameter when creating <a href="qcontactmanager.html">QContactManager</a> objects.</p>
<p>More information on writing a contacts engine plugin is available in the <a href="contactsengines.html">Qt Contacts Manager Engines</a> documentation.</p>
</div>
<p><b>See also </b><a href="qcontactmanager.html">QContactManager</a> and <a href="qcontactmanagerengine.html">QContactManagerEngine</a>.</p>
<!-- @@@QContactManagerEngineFactory -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QContactManagerEngineFactory[overload1]$$$~QContactManagerEngineFactory -->
<h3 class="fn"><a name="dtor.QContactManagerEngineFactory"></a>QContactManagerEngineFactory::<span class="name">~QContactManagerEngineFactory</span> ()<tt> [virtual]</tt></h3>
<p>A default, empty destructor.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@~QContactManagerEngineFactory -->
<!-- $$$engine[overload1]$$$engineconstQMap<QString,QString>&QContactManager::Error* -->
<h3 class="fn"><a name="engine"></a><span class="type"><a href="qcontactmanagerengine.html">QContactManagerEngine</a></span> * QContactManagerEngineFactory::<span class="name">engine</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span>&gt; &amp; <i>parameters</i>, <span class="type"><a href="qcontactmanager.html#Error-enum">QContactManager::Error</a></span> * <i>error</i> )<tt> [pure virtual]</tt></h3>
<p>This function is called by the <a href="qcontactmanager.html">QContactManager</a> implementation to create an instance of the engine provided by this factory.</p>
<p>The <i>parameters</i> supplied can be ignored or interpreted as desired.</p>
<p>If a supplied parameter results in an unfulfillable request, or some other error occurs, this function may return a null pointer, and the client developer will get an invalid <a href="qcontactmanager.html">QContactManager</a> in return. Any error should be stored in the supplied <i>error</i> reference.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@engine -->
<!-- $$$managerName[overload1]$$$managerName -->
<h3 class="fn"><a name="managerName"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QContactManagerEngineFactory::<span class="name">managerName</span> () const<tt> [pure virtual]</tt></h3>
<p>This function should return a unique string that identifies the engines provided by this factory.</p>
<p>Typically this would be of the form &quot;com.nokia.qt.contacts.engines.memory&quot;, with the appropriate domain and engine name substituted.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@managerName -->
<!-- $$$supportedImplementationVersions[overload1]$$$supportedImplementationVersions -->
<h3 class="fn"><a name="supportedImplementationVersions"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type">int</span>&gt; QContactManagerEngineFactory::<span class="name">supportedImplementationVersions</span> () const<tt> [virtual]</tt></h3>
<p>This function should return a list of versions of the engine which this factory can instantiate.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@supportedImplementationVersions -->
</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>