Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Favourites Engine API只在缺省浏览器上工作

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
文章
翻译:
hoolee
最后由 hamishwillee 在 06 Aug 2012 编辑
  • 详细描述

在S60第三版中缺省的浏览器为内建的“服务”程序,Favourites API只能作用于它。而“网络”程序是做为额外应用存在的,使用Favourites Engine增加的书签无法显示在其中。

  • 解决方案

Favourites Engine API在S60第三版FP1及后继版本工作完好,这时浏览器合二为一了。但是在S60第三版上也有一个解决方案,我们可以在地址url前加上前缀oss,以便将书签增加到网络浏览器。


可以按照如下代码增加书签:

 CFavouritesItem* item =  CFavouritesItem::NewLC();
 
item->SetNameL(_L("ossGoogle UK"));
 
item->SetParentFolder(KFavouritesRootUid);
 
item->SetType(CFavouritesItem::EItem);
 
item->SetUrlL(_L("osshttp://www.google.co.uk/"));
This page was last modified on 6 August 2012, at 07:33.
334 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.

×