| Note! |
|---|
|
This API can be used to change the softkey shortcuts in Active Idle Screen of the S60 3rd Edition phones.
To assign shortcut for S60 Calendar application.In the active idle screen we will get left soft key option for launching Calendar
Header Files
#include<MScShortcutEngineWrapperObserver.h>
#include<cscshortcutenginewrapper.h>
Library : scshortcutenginewrapper.lib
Capabities Required : ReadUserData ReadDeviceData WriteDeviceData
RFs iSession;
CScShortcutEngineWrapper* iShortcut;
RPointerArray<CScWrapperShortcut> iPArray;
//In the ConstructL
iSession.Connect();
iShortcut=CScShortcutEngineWrapper::NewL(iSession,*this);
iShortcut->AsynchronouslyPrepareShortcutListL(iPArray);
//Implementing MScShortcutEngineWrapperObserver::HandleShortcutEvent() method
void CShortCutEngineUsage::HandleShortcutEvent( TScShortcutEvent aEvent )
{
if(aEvent==EShortcutListComplete)
{
//note here 1 is the index to denote that we are creating a shortcut for calendar application
iShortcut->SetShorcutL(CScShortcutEngineWrapper::EKeyTypeLeft,1)
}
}
No related wiki articles found