在Meego上发送短信
(Zhouhl - - →综述) |
hamishwillee
(Talk | contribs) m (Text replace - "<code cpp>" to "<code cpp-qt>") |
||
| (3 intermediate revisions by one user not shown) | |||
| 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 Harmattan]][[Category:Qt]][[Category:Qt Mobility]] | ||
== 综述 == | == 综述 == | ||
在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。 | 在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。 | ||
| Line 6: | Line 28: | ||
文件具体内容如下: | 文件具体内容如下: | ||
| − | <code cpp> | + | <code cpp-qt> |
<aegis> | <aegis> | ||
<request> | <request> | ||
| Line 30: | Line 52: | ||
| − | [[Category:Lang- | + | [[Category:Lang-Chinese]] |
Latest revision as of 04:19, 11 October 2012
文章信息
综述
在 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手机上发短信了!
例子程序请参考附件。

