Trick:Controlling the backlight(Symbian/UIQ)
来源:互联网 发布:在线装饰设计软件 编辑:程序博客网 时间:2024/05/12 15:33
To turn on the backlight and keep it turned on, a timer can be used that fires every ten seconds. When the timer fires a raw event is simulated, which keeps the backlight turned on.
The following example code illustrates this.
void CStreamingClientAppUi::ConstructL()
{
......
iTimer=CPeriodic::NewL(CActive::EPriorityStandard); // CPeriodic *iTimer;
iTimer->Start(KTimerTick,KTimerTick,TCallBack(Tick,this));//const TInt KTimerTick = 10 * 1000 * 1000;
......
}
CStreamingClientAppUi::~CStreamingClientAppUi()
{
iTimer->Cancel();
delete iTimer;
}
//This method should be declared as static
// static TInt Tick(TAny* /*aAny*/);
TInt CStreamingClientAppUi::Tick(TAny */*aObject*/)
{
User::ResetInactivityTime();
RWsSession session;
session.Connect();
TRawEvent event;
event.Set(TRawEvent::EActive);
session.SimulateRawEvent(event);
session.Flush();
session.Close();
return KErrNone; //Return that we want the timer to continue calling us.
}
- Trick:Controlling the backlight(Symbian/UIQ)
- Trick: Change toolbar status(Symbian/UIQ)
- Trick:Launch WAP browser(Symbian/UIQ)
- 基础知识----Symbian UIQ
- Symbian UIQ简介
- symbian与uiq开发教程
- Trick:Checking the Contents of Descriptors in MSVC6(Symbian)
- Auto select internet access point(Symbian/UIQ)
- [转贴]Symbian开发入门 - UIQ开发教程
- 【Symbian UIQ】CQikViewBase上贴图 去除闪烁
- Symbian UIQ ViewSwitcher(视图切换方法)
- Symbian和UIQ开发教程(续)
- UIQ
- Trick:Auto start it at the end of installing an application(Symbian)
- Trick:Incoming call notification(Symbian)
- Code snippet for creating column listbox on Symbian/UIQ
- Symbian C++ 程式設計快速上手 (UIQ)
- 索爱收购Symbian旗下UIQ 欲与S60分庭抗礼
- 七十年代出生的九大尴尬(转)
- Windows网络编程经验小结
- 双语真理(中英文对照)
- 表格内容自适应表格大小变化
- 需求分析的20条法则
- Trick:Controlling the backlight(Symbian/UIQ)
- 【学习笔记】Thinking in java (第三版)第七章 多态性(Polymorphism)
- [转载]在应用中加入全文检索功能——基于Java的全文索引引擎Lucene简介
- 业内人士支招:新旧二手房定价各有其招
- 又被人骗了,真是郁闷!
- 2005-1-15
- Trick:Launch WAP browser(Symbian/UIQ)
- 我们的生日提醒助手-生日猪(www.birthdaypig.com)
- 新手宝典:SQL Server 几个安全问题