×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    54

    how to differentiate between call end key and Task list cancel events??

    Hi All,
    we are developing an application in s60 3rd .
    we are facing one problem with task list cancel event and call end key event.
    Afaik these two events calls HandleCommandL function of Appui with EEikCmdExit parameter and we want close the application on Task list cancel event and send the application in background for calll end key.......
    for this one we need to differentiate between these two events....
    so how it is possible to differentiate these two events??
    please reply if anybody have a solution....

    thanks in advance!!!!

  2. #2
    Nokia Developer Expert
    Join Date
    Nov 2007
    Posts
    1

    Re: how to differentiate between call end key and Task list cancel events??

    I think you can override HandleWsEventL of CAknAppUi and differentiate between the two event types there. Something like this:

    HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
    {
    TInt eventType = aEvent.Type();
    switch ( eventType )
    {
    case KAknUidValueEndKeyCloseEvent:
    // End key pressed.
    break;

    case EEventUser:
    if ( ( *reinterpret_cast<TApaSystemEvent*>( aEvent.EventData() ) ) == EApaSystemEventShutdown )
    {
    // Terminated from the task list or other system exit (e.g. when out of memory).
    }
    break;

    default:
    break;
    }
    CAknAppUi::HandleWsEventL( aEvent, aDestination );
    }

    Also try searching for KAknUidValueEndKeyCloseEvent from these forums or elsewhere in the web to find more info.

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    54

    Re: how to differentiate between call end key and Task list cancel events??

    Quote Originally Posted by suistoma View Post
    I think you can override HandleWsEventL of CAknAppUi and differentiate between the two event types there. Something like this:

    HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
    {
    TInt eventType = aEvent.Type();
    switch ( eventType )
    {
    case KAknUidValueEndKeyCloseEvent:
    // End key pressed.
    break;

    case EEventUser:
    if ( ( *reinterpret_cast<TApaSystemEvent*>( aEvent.EventData() ) ) == EApaSystemEventShutdown )
    {
    // Terminated from the task list or other system exit (e.g. when out of memory).
    }
    break;

    default:
    break;
    }
    CAknAppUi::HandleWsEventL( aEvent, aDestination );
    }

    Also try searching for KAknUidValueEndKeyCloseEvent from these forums or elsewhere in the web to find more info.
    Thanks a lot suistoma for ur quick reply.....
    now i am going to try it and will tell u the output...

  4. #4
    Regular Contributor
    Join Date
    May 2007
    Posts
    54

    Re: how to differentiate between call end key and Task list cancel events??

    Quote Originally Posted by mayudada View Post
    Thanks a lot suistoma for ur quick reply.....
    now i am going to try it and will tell u the output...
    thank you so much.....its working for me now

Similar Threads

  1. Selective key events reciept
    By mayankkedia in forum Symbian
    Replies: 3
    Last Post: 2007-06-29, 17:35
  2. 7710: Task list
    By silverparasol in forum Symbian
    Replies: 1
    Last Post: 2005-06-12, 16:12
  3. Hide Application from task list
    By ekramulhuq in forum Symbian
    Replies: 0
    Last Post: 2003-10-13, 05:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •