⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exportinterface.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/qtopiadesktop/doc/importexport.doc:69 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ExportInterface Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font>   <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top">  <table border="0" cellpadding="0" cellspacing="0" width="137">  <tr>  <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td>  <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td>  </tr>  </table></td></tr></table><h1 align=center>ExportInterface Class Reference</h1><p>The ExportInterface class provides a data export interface for Qtopia.<a href="#details">More...</a><p><tt>#include &lt;<a href="importexport-h.html">interfaces/importexport.h</a>&gt;</tt><p><a href="exportinterface-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn>virtual bool <a href="#exportData"><b>exportData</b></a> ( CenterInterface&nbsp;*&nbsp;center, const&nbsp;QValueList&lt;MergeML::Record&gt;&nbsp;&amp;&nbsp;data, const&nbsp;QString&nbsp;&amp;&nbsp;dataSet ) = 0</div></li><li><div class=fn>virtual QString <a href="#externalApplicationName"><b>externalApplicationName</b></a> () const = 0</div></li><li><div class=fn>virtual QString <a href="#palmtopApplicationName"><b>palmtopApplicationName</b></a> () const = 0</div></li><li><div class=fn>virtual QStringList <a href="#dataSets"><b>dataSets</b></a> () const = 0</div></li><li><div class=fn>virtual SettingsWidget * <a href="#exportSettings"><b>exportSettings</b></a> ( QWidget&nbsp;*&nbsp;parent ) = 0</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2> The ExportInterface class provides a data export interface for Qtopia.<p> When Qtopia Desktop starts up it automatically scans for plugins andregisters any plugins that support the ExportInterface. QtopiaDesktop is able to export data from the Qtopia device in the formatssupported by the ExportInterfaces it finds.<p> Writing an input interface plugin is achieved by subclassing thisbase class, reimplementing the pure virtual functions <a href="#exportData">exportData</a>(),<a href="#externalApplicationName">externalApplicationName</a>(), <a href="#palmtopApplicationName">palmtopApplicationName</a>(), <a href="#dataSets">dataSets</a>() and<a href="#exportSettings">exportSettings</a>() and exporting the class with the <tt>Q_EXPORT_PLUGIN</tt>macro. See the <a href="pluginintro.html">Plugins  documentation</a> for details.<p> <p> <p>See also <a href="qtopiadesktop.html">Qtopia Desktop Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn>QStringList <a name="dataSets"></a>ExportInterface::dataSets () const<tt> [pure virtual]</tt></h3> <p> Returns a list of the data formats that this export interface canhandle.<p> Qtopia Desktop can export data in the "addressbook", "datebook","todolist" and "categories" formats.<h3 class=fn>bool <a name="exportData"></a>ExportInterface::exportData ( <a href="centerinterface.html">CenterInterface</a>&nbsp;*&nbsp;center, const&nbsp;QValueList&lt;MergeML::Record&gt;&nbsp;&amp;&nbsp;data, const&nbsp;QString&nbsp;&amp;&nbsp;dataSet )<tt> [pure virtual]</tt></h3> <p> This function is called by Qtopia Desktop when the user requests theexport of Qtopia data. It is passed an interface to Qtopia Desktop,<em>center</em>. The name of the export format is passed in <em>dataSet</em>,and the data to be exported is passed in the <em>data</em> value list. Thefunction should export the data in the <em>dataSet</em> format.<p> Returns TRUE if the data is successfully exported; otherwise returnsFALSE.<h3 class=fn><a href="settingswidget.html">SettingsWidget</a>&nbsp;* <a name="exportSettings"></a>ExportInterface::exportSettings ( QWidget&nbsp;*&nbsp;parent )<tt> [pure virtual]</tt></h3> <p> Returns a widget that the user can use to set any options that canaffect the export process. The returned widget will appear in theimport/export tab of the Qtopia Desktop settings dialog, which isalso its <em>parent</em> widget.<p> May return 0 if there are no user-settable options.<h3 class=fn>QString <a name="externalApplicationName"></a>ExportInterface::externalApplicationName () const<tt> [pure virtual]</tt></h3> <p> Returns the name of the application that imports data in theexported format. This is usually the name of the externalapplication that exports data in the format this ExportInterfacewrites. The name may be displayed to the user.<p> <h3 class=fn>QString <a name="palmtopApplicationName"></a>ExportInterface::palmtopApplicationName () const<tt> [pure virtual]</tt></h3> <p> Returns the name of the Qtopia application that the data should beexported from.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright &copy; 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright &copy; 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -