* My code is listed below. The application is a console application.
* The device is E51.
* How do I enable error logging? Wizard is referring to a "panic" case - is this my case?
If your application generates a panic it will be closed and an error note is shown by the OS
My application doesn't generate such a message, it just crashes. And, I don't see any mention of "errrd.sis" file there.
* I'm interested to try this:
You need to delay and retry until your application is found
Can you please provide some directions/references of how to perform this?
* Thanks
ShortcutMaker.cpp file:
Code:
#ifndef SHORTCUTMAKER_H_
#define SHORTCUTMAKER_H_
#include <aknappui.h>
#include <akndoc.h>
#include <aknapp.h>
#include <CScShortcutEngineWrapper.h>
#include <MScShortcutEngineWrapperObserver.h>
class ShortcutMaker:public MScShortcutEngineWrapperObserver
{
public:
ShortcutMaker();
virtual ~ShortcutMaker();
protected:
void HandleShortcutEvent( TScShortcutEvent aEvent );
void HandleShortcutError( TScShortcutEvent aEvent, TInt aError );
private:
void ShowNoteL(const TDesC& aMessage);
RFs iSession;
CScShortcutEngineWrapper* iShortcut;
RPointerArray<CScWrapperShortcut> iPArray;
};
#endif /* SHORTCUTMAKER_H_ */
ShortcutMaker.cpp file:
Code:
#include "ShortcutMaker.h"
#include <aknappui.h>
#include <akndoc.h>
#include <aknapp.h>
#include <f32file.h>
#include<MScShortcutEngineWrapperObserver.h>
#include<cscshortcutenginewrapper.h>
ShortcutMaker::ShortcutMaker()
{
iSession.Connect();
iShortcut = CScShortcutEngineWrapper::NewL(iSession,*this);
iShortcut->AsynchronouslyPrepareShortcutListL(iPArray);
}
ShortcutMaker::~ShortcutMaker()
{
}
void ShortcutMaker::HandleShortcutEvent( TScShortcutEvent aEvent )
{
if(aEvent==EShortcutListComplete)
{
//note here 1 is the index to denote that we are creating a shortcut for calendar application
iShortcut->SetShortcutL(CScShortcutEngineWrapper::EKeyTypeLeft,1);
}
}
void ShortcutMaker::HandleShortcutError(TScShortcutEvent aEvent, TInt aError )
{
}
MyApplication.cpp file:
Code:
LOCAL_C void MainL()
{
//
// add your program code here, example code below
//
//console->Write(_L("Hello, world!\n"));
ShortcutMaker* s = new ShortcutMaker();
}