📄 importinterface.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/qtopiadesktop/doc/importexport.doc:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ImportInterface 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>ImportInterface Class Reference</h1><p>The ImportInterface class provides a data import interface for Qtopia.<a href="#details">More...</a><p><tt>#include <<a href="importexport-h.html">interfaces/importexport.h</a>></tt><p><a href="importinterface-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn>virtual bool <a href="#data"><b>data</b></a> ( CenterInterface * center, const QString & dataSet, QValueList<MergeML::Record> & result ) = 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="#importSettings"><b>importSettings</b></a> ( QWidget * parent ) = 0</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The ImportInterface class provides a data import interface for Qtopia.<p> When Qtopia Desktop starts up it automatically scans for plugins andregisters any plugins that support the ImportInterface. QtopiaDesktop is able to import data in formats supported by theImportInterfaces it finds into the Qtopia device.<p> Writing an input interface plugin is achieved by subclassing thisbase class, reimplementing the pure virtual functions <a href="#data">data</a>(),<a href="#externalApplicationName">externalApplicationName</a>(), <a href="#palmtopApplicationName">palmtopApplicationName</a>(), <a href="#dataSets">dataSets</a>() and<a href="#importSettings">importSettings</a>() and exporting the class with the <tt>Q_EXPORT_PLUGIN</tt>macro. See the Plugins documentation for details.<p> <p>See also <a href="qtopiadesktop.html">Qtopia Desktop Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn>bool <a name="data"></a>ImportInterface::data ( <a href="centerinterface.html">CenterInterface</a> * center, const QString & dataSet, QValueList<MergeML::Record> & result )<tt> [pure virtual]</tt></h3> <p> This function is called by Qtopia Desktop. It is passed an interfaceto Qtopia Desktop, <em>center</em>, and the name of the format of the datato be imported in <em>dataSet</em>. The <em>result</em> value list should bepopulated with records that are in <em>dataSet</em> format. Qtopia Desktopis expected to import the <em>result</em>.<p> Returns TRUE if the data is successfully imported; otherwise returnsFALSE.<p> <h3 class=fn>QStringList <a name="dataSets"></a>ImportInterface::dataSets () const<tt> [pure virtual]</tt></h3> <p> Returns a list of the formats that this import interface canhandle.<p> Qtopia Desktop can import data in the "addressbook", "datebook","todolist" and "categories" formats.<h3 class=fn>QString <a name="externalApplicationName"></a>ImportInterface::externalApplicationName () const<tt> [pure virtual]</tt></h3> <p> Returns the name of the application that generated the data. Thename may be displayed to the user.<h3 class=fn><a href="settingswidget.html">SettingsWidget</a> * <a name="importSettings"></a>ImportInterface::importSettings ( QWidget * parent )<tt> [pure virtual]</tt></h3> <p> Returns a widget that the user can use to set any options that canaffect the import 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="palmtopApplicationName"></a>ImportInterface::palmtopApplicationName () const<tt> [pure virtual]</tt></h3> <p> Returns the name of the Qtopia application that the data should beimported into. For example, todo data would be directed at Qtopia'stodo application.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 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 © 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 + -