<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.developer.nokia.com/Community/Wiki/skins/common/feed.css?1917"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;feed=atom&amp;action=history</id>
		<title>在QML中用NFC 初始化蓝牙连接聊天程序 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;action=history"/>
		<updated>2013-05-22T15:33:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=175366&amp;oldid=prev</id>
		<title>Hamishwillee: Text replace - &quot;&lt;code cpp&gt;&quot; to &quot;&lt;code cpp-qt&gt;&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=175366&amp;oldid=prev"/>
				<updated>2012-10-11T01:20:37Z</updated>
		
		<summary type="html">&lt;p&gt;Text replace - &amp;quot;&amp;lt;code cpp&amp;gt;&amp;quot; to &amp;quot;&amp;lt;code cpp-qt&amp;gt;&amp;quot;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 01:20, 11 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; {{Icode|QDeclarativeItem}} 类提供了在QML中可视物体的大多数基本功能。因此我们的类继承自{{Icode|QDeclarativeItem}}。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; {{Icode|QDeclarativeItem}} 类提供了在QML中可视物体的大多数基本功能。因此我们的类继承自{{Icode|QDeclarativeItem}}。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;code cpp&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;code cpp&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-qt&lt;/ins&gt;&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;class ConnectionNotifier : public QDeclarativeItem&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;class ConnectionNotifier : public QDeclarativeItem&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==QML 代码==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==QML 代码==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;在这个应用中我们创建若干长方形元素，和其他物品例如图， TextEdit 作为长方形的一部分。对话窗口用带model的list box实现。一收到的消息就添加到model中。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;在这个应用中我们创建若干长方形元素，和其他物品例如图， TextEdit 作为长方形的一部分。对话窗口用带model的list box实现。一收到的消息就添加到model中。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;code cpp&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;code cpp&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-qt&lt;/ins&gt;&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ConnectionNotifier&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ConnectionNotifier&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hamishwillee</name></author>	</entry>

	<entry>
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120544&amp;oldid=prev</id>
		<title>Flycarl: Flycarl - /* 参考链接 */</title>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120544&amp;oldid=prev"/>
				<updated>2011-12-01T03:56:36Z</updated>
		
		<summary type="html">&lt;p&gt;Flycarl - &lt;span class=&quot;autocomment&quot;&gt;- 参考链接&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:56, 1 December 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[Qt 开发]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[Qt 开发]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[Qt Quick (Chinese)]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[Qt Quick (Chinese)]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Q &lt;/del&gt;Mobility 开发]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Qt &lt;/ins&gt;Mobility 开发]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff:version:1.11a:oldid:120543:newid:120544 --&gt;
&lt;/table&gt;</summary>
		<author><name>Flycarl</name></author>	</entry>

	<entry>
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120543&amp;oldid=prev</id>
		<title>Flycarl: Flycarl -</title>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120543&amp;oldid=prev"/>
				<updated>2011-12-01T03:53:48Z</updated>
		
		<summary type="html">&lt;p&gt;Flycarl -&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:53, 1 December 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Draft&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Qt Mobility]][[Category:Qt Quick]][[Category:Symbian]][[Category:Lang-Chinese]][[Category:Code Examples]][[Category:Near Field Communication (NFC)&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Abstract|这篇文章演示如何使用QML找到支持NFC的设备，并通过NFC建立蓝牙连接。}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Abstract|这篇文章演示如何使用QML找到支持NFC的设备，并通过NFC建立蓝牙连接。}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Qt Mobility]][[Category:Qt Quick]][[Category:Symbian]][[Category:Lang-Chinese]][[Category:Code Examples]][[Category:Near Field Communication (NFC)]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 介绍==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 介绍==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;本文翻译自[[NFC initiated Bluetooth chat application in QML]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;本文翻译自[[NFC initiated Bluetooth chat application in QML]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==参考链接==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==参考链接==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*[[Qt 开发]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*[[Qt Quick (Chinese)]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*[[Q Mobility 开发]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Flycarl</name></author>	</entry>

	<entry>
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120542&amp;oldid=prev</id>
		<title>Flycarl: Flycarl - /* 介绍 */</title>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120542&amp;oldid=prev"/>
				<updated>2011-12-01T03:45:44Z</updated>
		
		<summary type="html">&lt;p&gt;Flycarl - &lt;span class=&quot;autocomment&quot;&gt;- 介绍&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:45, 1 December 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Qt Mobility]][[Category:Qt Quick]][[Category:Symbian]][[Category:Lang-Chinese]][[Category:Code Examples]][[Category:Near Field Communication (NFC)]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 介绍==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 介绍==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;本文翻译自[[NFC initiated Bluetooth chat application in QML]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;这个应用通过NFC初始化一个蓝牙连接，然后通过这个蓝牙连接发送文本聊天信息。运行应用在前台的两台手机相碰时，应用建立两台手机之间的蓝牙连接。一旦建立了蓝牙连接，我们就可以使用socket来传送数据（通常的做法）。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;这个应用通过NFC初始化一个蓝牙连接，然后通过这个蓝牙连接发送文本聊天信息。运行应用在前台的两台手机相碰时，应用建立两台手机之间的蓝牙连接。一旦建立了蓝牙连接，我们就可以使用socket来传送数据（通常的做法）。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Flycarl</name></author>	</entry>

	<entry>
		<id>http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120541&amp;oldid=prev</id>
		<title>Flycarl: Flycarl -</title>
		<link rel="alternate" type="text/html" href="http://www.developer.nokia.com/Community/Wiki/index.php?title=%E5%9C%A8QML%E4%B8%AD%E7%94%A8NFC_%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E8%81%8A%E5%A4%A9%E7%A8%8B%E5%BA%8F&amp;diff=120541&amp;oldid=prev"/>
				<updated>2011-12-01T03:44:13Z</updated>
		
		<summary type="html">&lt;p&gt;Flycarl -&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Draft]]&lt;br /&gt;
{{Abstract|这篇文章演示如何使用QML找到支持NFC的设备，并通过NFC建立蓝牙连接。}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{ArticleMetaData&lt;br /&gt;
|sourcecode=[[Media:NFCBtChat.zip]]&lt;br /&gt;
|installfile= &amp;lt;!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --&amp;gt;&lt;br /&gt;
|devices=Nokia C7&lt;br /&gt;
|sdk= &amp;lt;!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --&amp;gt;&lt;br /&gt;
|platform= &amp;lt;!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later --&amp;gt;&lt;br /&gt;
|devicecompatability= &amp;lt;!-- Compatible devices e.g.: All* (must have internal GPS) --&amp;gt;&lt;br /&gt;
|dependencies= &amp;lt;!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --&amp;gt; &lt;br /&gt;
|signing=&amp;lt;!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --&amp;gt;&lt;br /&gt;
|capabilities=&amp;lt;!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --&amp;gt;&lt;br /&gt;
|keywords= &amp;lt;!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase --&amp;gt;&lt;br /&gt;
|id= &amp;lt;!-- Article Id (Knowledge base articles only) --&amp;gt;&lt;br /&gt;
|language=&amp;lt;!-- Language category code for non-English topics - e.g. Lang-Chinese --&amp;gt;&lt;br /&gt;
|review-by=&amp;lt;!-- After re-review: [[User:username]] --&amp;gt;&lt;br /&gt;
|review-timestamp=&amp;lt;!-- After re-review: YYYYMMDD --&amp;gt;&lt;br /&gt;
|update-by=&amp;lt;!-- After significant update: [[User:username]]--&amp;gt;&lt;br /&gt;
|update-timestamp=&amp;lt;!-- After significant update: YYYYMMDD --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|creationdate= 20111015&lt;br /&gt;
|author= [[User:mahbub_s60]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== 介绍==&lt;br /&gt;
&lt;br /&gt;
这个应用通过NFC初始化一个蓝牙连接，然后通过这个蓝牙连接发送文本聊天信息。运行应用在前台的两台手机相碰时，应用建立两台手机之间的蓝牙连接。一旦建立了蓝牙连接，我们就可以使用socket来传送数据（通常的做法）。&lt;br /&gt;
&lt;br /&gt;
== 如何把数据传递到QML中 ==&lt;br /&gt;
 {{Icode|QDeclarativeItem}} 类提供了在QML中可视物体的大多数基本功能。因此我们的类继承自{{Icode|QDeclarativeItem}}。&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;code cpp&amp;gt; &lt;br /&gt;
class ConnectionNotifier : public QDeclarativeItem&lt;br /&gt;
{&lt;br /&gt;
    Q_OBJECT&lt;br /&gt;
    Q_PROPERTY( QString msg READ msg WRITE setMsg )&lt;br /&gt;
public:&lt;br /&gt;
    // Allow call directly C++ method from QML&lt;br /&gt;
    Q_INVOKABLE void QuitApplication();&lt;br /&gt;
    Q_INVOKABLE void SendMessage(const QString &amp;amp;aData);&lt;br /&gt;
public Q_SLOTS:&lt;br /&gt;
    void showMessage(const QString &amp;amp; aMsg, const QString &amp;amp; aDevice);&lt;br /&gt;
    void newDeviceFound();&lt;br /&gt;
Q_SIGNALS:&lt;br /&gt;
    void notConnected();&lt;br /&gt;
    void messageReceived(const QString &amp;amp; message);&lt;br /&gt;
private:&lt;br /&gt;
    QString mMsg;&lt;br /&gt;
    ConnectionEngine * mEngine;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
==QML 代码==&lt;br /&gt;
在这个应用中我们创建若干长方形元素，和其他物品例如图， TextEdit 作为长方形的一部分。对话窗口用带model的list box实现。一收到的消息就添加到model中。&lt;br /&gt;
&amp;lt;code cpp&amp;gt; &lt;br /&gt;
ConnectionNotifier&lt;br /&gt;
{&lt;br /&gt;
    id: myBtConnotifier&lt;br /&gt;
    onNotConnected:&lt;br /&gt;
    {&lt;br /&gt;
        textEdit.text = &amp;quot;Not connected&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    onMessageReceived:&lt;br /&gt;
    {&lt;br /&gt;
        nfcbtchat.append({&amp;quot;myself&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;other&amp;quot;: &amp;quot;Other:&amp;quot;+ myBtConnotifier.msg})&lt;br /&gt;
    }&lt;br /&gt;
    onServiceDiscoveredMsg:&lt;br /&gt;
    {&lt;br /&gt;
        textEdit.text = &amp;quot;Service Found, Connecting...&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    onNewConnection:&lt;br /&gt;
    {&lt;br /&gt;
        textEdit.text = &amp;quot;Device connected...&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    onNewDeviceFoundMsg:&lt;br /&gt;
    {&lt;br /&gt;
        textEdit.text = &amp;quot;Device found, looking service...&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    onConnectionClosed:&lt;br /&gt;
    {&lt;br /&gt;
        textEdit.text = &amp;quot;Connection Closed&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
==如何使用这个例子==&lt;br /&gt;
工程中有一个自签名的sis文件（debug版），可直接安装这个sis文件。应用下方有3个图标，第一个发送消息，第二个清除消息，第三个推出程序。我们将sis文件安装到C7上， 打开蓝牙功能， 然后轻触两台手机，等待，hello world 文本会变成connected字样。连接成功后我们可以开始打字对话。下面是C7上的截屏。&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: nfclandscape.jpg|460x340px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: nfcportrait.jpg|340x460px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
==示例代码==&lt;br /&gt;
下面的代码用来在两台Belle系统的C7手机上传送消息。由于Qt Mobility的一些性能因素，建立连接的时间比普通蓝牙连接长很多。&lt;br /&gt;
&lt;br /&gt;
下载示例: [[Image:NFCBtChat.zip]]&lt;br /&gt;
&lt;br /&gt;
==参考链接==&lt;/div&gt;</summary>
		<author><name>Flycarl</name></author>	</entry>

	</feed>