随笔分类 -  symbain

摘要:如果用 RTime 中的 AT 方法,则这个时间不能比现在的时间小,否则iStatus.Int() 将返回 -10 KErrUnderflow 这个错误 阅读全文
posted @ 2011-05-06 16:23 zziss 阅读(115) 评论(0) 推荐(0)
摘要:RFs fs;RFile iFile;User::LeaveIfError(fs.Connect());iFile.Open(fs,KFilename,EFileRead|EFileShareAny);TFileText lineRead;lineRead.Set(iFile);lineRead.Seek(ESeekStart);TBuf<256> temp;lineRead.Read(temp);......lineRead.Read(temp);......iFile.Close;fs.Close;/////////////////////////////////////// 阅读全文
posted @ 2011-05-05 16:57 zziss 阅读(309) 评论(0) 推荐(0)
摘要:SDK UID Process Name2nd edition 0x100058b3 (Phone)3rd edition 0x100058b33rd edition and 3rd edition FP1 0x101fd64c (Standby Mode)3rd edition FP2 0x102750F0 (Standby Mode)5th edition 0x102750F0 阅读全文
posted @ 2011-05-05 16:53 zziss 阅读(159) 评论(0) 推荐(0)
摘要:symbian 全屏,网上找了找,好多,但好多也不是我要的效果,我要的全屏是可以保留 statusPane 或去掉 statusPane ,但要显示出自己绘制的 cba 来。网上说的都不能满足我要的效果,后来找到一兄弟的文章,具体在哪我也忘了,当时只是把代码拿过来了代码如下:void CMainContainer::HandleResourceChange( TInt aType ){const TRect& appRect = ((CAknViewAppUi*)iEikonEnv->AppUi())->ApplicationRect();TRect clRect = (( 阅读全文
posted @ 2011-04-26 21:02 zziss 阅读(367) 评论(0) 推荐(0)
摘要:之前做过静默安装,可是碰到过一个比较变态的问题至今没有解决,今天仔细看看了看,终于找出了原因。问题: 之前做静默安装的时候如果你要安装的是联网的程序,在安装过程中就会有联网提示弹出。解决方法: 在安装的时候设置这一项iOptions.iOCSP = SwiUI::EPolicyAllowed;//OCSP在线证书状态协议 是否履行下面贴上整个安装的设置吧.// 配置安装参数iOptions.iUpgrade = SwiUI::EPolicyAllowed;iOptions.iOCSP = SwiUI::EPolicyAllowed;//OCSP在线证书状态协议 是否履行iOptions.iI. 阅读全文
posted @ 2011-04-26 09:30 zziss 阅读(242) 评论(0) 推荐(0)
摘要:代码如下:#include <avkon.rsg>#include <eikbtgpc.h>#include <eikspane.h>//-----------------------------------------------------------------------------// CFullScreenAppAppUi::ConstructL()//-----------------------------------------------------------------------------//void CMyFullscreenA 阅读全文
posted @ 2011-04-24 18:29 zziss 阅读(230) 评论(0) 推荐(0)
摘要:适用版本S60 2nd Edition FP3, S60 3rd Edition本文将简述如何在Series60中绘制一个始终处于前端的图标提示符,实际效果如上图所示,无论是处于待机界面,菜单界面或者切换时,一个音符的小图标始终都可见。这么做可以为一些应用程序起到提示的作用,比如在一个IM软件中,可以用它来提示有未读的消息等。1.如何构建 以下的构建过程基于我提供的示例程序: 构建一个CIndicatorIcon类来表示这个提示图标,它是从CCoeControl继承而来。它的第二阶段构造函数ConstructL()如下所示: void CIndicatorIcon::ConstructL() 阅读全文
posted @ 2011-04-24 18:13 zziss 阅读(310) 评论(0) 推荐(0)
摘要:CRepository? Vals for backlight and screen-saver timeout - 2008-07-27 08:43 #1kibi1 View Profile View Forum Posts View Articles Registered User Join Date Mar 2003 Posts 24 Hi there I would like find an API to discover the current timeouts on the device for the backlight and the screen-saver. Basica 阅读全文
posted @ 2011-04-24 18:11 zziss 阅读(264) 评论(0) 推荐(0)
摘要:Symbian OS关于动画的绘制和处理基本上分为两大类,一类是客户端应用程序动画框架,一类是Window Server的插件动画。在介绍这两种动画前,我们先简单介绍一下精灵(sprite)的概念。精灵(sprite)精灵(sprite)是Window Server的概念范畴,Window Server支持两种类型的精灵,一种是常用的精灵-sprite,一种是用来作为光标(pointer cursor)。精灵是任意形状的位图,其在移动时无需程序对其后面的屏幕进行重画。Window Server之所以提供光标(pointer cursor)的支持,是因为在使用鼠标、手写笔时可以象使用一个指针设备 阅读全文
posted @ 2011-04-24 18:10 zziss 阅读(298) 评论(0) 推荐(0)
摘要:CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();if (cba) { MEikButtonGroup* buttonGroup = cba->ButtonGroup(); for (TInt pos = 0; pos < 3; pos++) { TInt cmdId = buttonGroup->CommandId(pos); CCoeControl* button = buttonGroup->GroupControlById(cmdId); if (button &&am 阅读全文
posted @ 2011-04-24 17:59 zziss 阅读(179) 评论(0) 推荐(0)
摘要:我写了一个自定义控件,该控件支持Drag ,当我在这个控件中按住不放,然后向 CBA 移动,当移动到 CBA 上面时,松开,则自定义控件不处理 EButton1Up 事件,因为拖动的范围超过了这个控件的 Rect 了问:怎么才能在Drag 时,检测如果超过了自身的Rect ,则处理 EButton1Up 事件另外 HandlePointerEventL 中调用了 CCoeControl 的 Han... 阅读全文
posted @ 2010-11-11 14:44 zziss 阅读(359) 评论(0) 推荐(0)
摘要:To enable marquee with the animated effect (auto-scrolling forward and backward on the focused item) in the ListBox, you need to add the following code. Column cell listbox (for example CAknSingleStyl... 阅读全文
posted @ 2010-10-31 10:38 zziss 阅读(175) 评论(0) 推荐(0)
摘要:S60平台:使用外部应用程序View1、 范围本文描述了如何启动到外部应用程序View。首先介绍当你的程序被别的程序启动时,是如何创建View的。当你创建View或者使用外部程序View时,同样参考文中所述。描述了View架构之后,在第三章提供了许多有用的UIDs,“这些UIDs是S60里面的重要应用程序”。2、 S60 View架构的介绍在S60平台,View架构被广泛的... 阅读全文
posted @ 2010-10-30 20:06 zziss 阅读(382) 评论(0) 推荐(0)
摘要:CAknDoubleStyleListBox当列表的内容为空的时候,显示无内容或者列表为空,或者一些提示性的操作等等,调用哪个接iListBox->View()->SetListEmptyTextL(bufTemp->Des()); 阅读全文
posted @ 2010-10-30 17:34 zziss 阅读(224) 评论(0) 推荐(0)
摘要:gc.SetPenColor(TRgb(255,0,0,20)); gc.SetBrushStyle(CGraphicsContext::ENullBrush); gc.SetPenStyle(CGraphicsContext::ESolidPen); gc.UseFont(ClockBold30()); gc.DrawText(_L("8888888"),TPoint(100,100)); T... 阅读全文
posted @ 2010-08-20 14:23 zziss 阅读(786) 评论(0) 推荐(0)
摘要:生成sis文件的诀窍通过系统生成的pkg文件编译sis文件时经常编译不过去,经过试验总结出一条经验:在确认pkg文件没问题的情况下,同时文件路径都正确,新建一个新的pkg文件,再将这个文件的编码设为utf-8,复制源pkg文件内容到这个文件里,编译就能通过了。 安平2009@原创qi_jianzhou@126.com 阅读全文
posted @ 2010-08-19 23:16 zziss 阅读(208) 评论(0) 推荐(0)
摘要:Symbian自启动(AutoStart)今天处理第三版上安装自启动和开机自启动的问题。走了些弯路,也感叹为什么NOKIA论坛上好多人贴出来的代码是有问题的。难道想给我们这些菜鸟花调试。唬唬少费话了还是看如何去实现的吧。首先看看自启动如何处理,自启动处理方法很简单。只需要处理一个PKG文件就行了。看PKG文件内容:"\Symbian\9.1\S60_3rd_MR\Epoc32\release\GC... 阅读全文
posted @ 2010-08-19 22:13 zziss 阅读(390) 评论(0) 推荐(0)
摘要:From Forum Nokia Wiki适用版本: 具体方案:在3版中使用了新的Startup List Management API实现开机自启动。需要应用程序实现开机自动启动,需要完成以下步骤: 1. 在项目的data目录下创建一个资源文件,名字为0xXXXXXX.rss, 0xXXXXXX为需要启动的程序的UID3。在资源文件中填入以下内容: 2. 在你的项目文件.mmp中加入该资源文件 ... 阅读全文
posted @ 2010-08-19 21:32 zziss 阅读(208) 评论(0) 推荐(0)
摘要:修改资源文件:RESOURCE APP_REGISTRATION_INFO{app_file="Forth";localisable_resource_file = qtn_loc_resource_file_1;localisable_resource_id = R_LOCALISABLE_APP_INFO;embeddability=KAppNotEmbeddable;newfile=KApp... 阅读全文
posted @ 2010-08-19 16:58 zziss 阅读(290) 评论(0) 推荐(0)
摘要:HBufC *header = StringLoader::LoadLC( R_ABOUT_HEADER, iCoeEnv );HBufC *body = StringLoader::LoadLC( R_ABOUT_TEXT, iCoeEnv );CAknMessageQueryDialog *dlg = CAknMessageQueryDialog::NewL( *body );dlg->... 阅读全文
posted @ 2010-08-15 21:18 zziss 阅读(272) 评论(0) 推荐(0)