×
Namespaces

Variants
Actions
(Difference between revisions)

在Meego上发送短信

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Automated change of category from Lang-CN to Unlikely Category)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
Line 1: Line 1:
[[Category:MeeGo]][[Category:Qt]][[Category:Qt Mobility]]
+
{{ArticleMetaData
 +
|sourcecode=[[Media:MeegoSMS.zip]]
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities=<!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|id= <!-- Article Id (Knowledge base articles only) -->
 +
|language=Lang-Chinese
 +
|translated-by= <!-- [[User: XXXXX]] -->
 +
|translated-from-title=<!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by=<!-- After re-review: [[User:username]] -->
 +
|review-timestamp=<!-- After re-review: YYYYMMDD -->
 +
|update-by=<!-- After significant update: [[User:username]]-->
 +
|update-timestamp=<!-- After significant update: YYYYMMDD -->
 +
|creationdate=20110616
 +
|author=[[User:Zhouhl]]
 +
}}[[Category:MeeGo]][[Category:Qt]][[Category:Qt Mobility]]
 
== 综述 ==
 
== 综述 ==
 
在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。
 
在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。

Revision as of 06:42, 10 November 2011

Article Metadata

代码示例
文章
zhouhl 在 16 Jun 2011 创建
最后由 hamishwillee 在 10 Nov 2011 编辑

综述

在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。

在Meego上就是需要一个appName.aegis的文件,appName 指的是应用程序的名字。 文件具体内容如下:

<aegis>   
<request>
<credential name="Cellular" />
<credential name="TrackerReadAccess" />
<for path="/opt/sms/bin/sms" />
</request>
</aegis>

我们这个例子程序的名字叫 sms,对应的可以修改成自己程序的名字。

用Qt Creator 新建的 Harmattan 工程是没有 aegis 文件的, 因此我们新建一个文本文件,写入以上内容,修改文件名为appName.aegis,然后将这个文件拷贝到工程目录下的 qtc_packaging\debian_harmattan 目录下就可以了。

目前 Qt Creator 已经修复了之前的一个Bug, 现在已经可以成功打包该 aegis 文件了,因此我们直接用Qt Creator 进行编译运行,就可以在Meego手机上发短信了!

例子程序请参考附件。

下载源码和样例程序

File:MeegoSMS.zip

相关链接

154 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×