×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    How to tell when the case has been closed?

    I have an application which should not continue to run in its active state when the case is closed as the user will lose their place (information will be displayed which was not seen) and the battery will be run down unnecessarily. So I need to tell when then the case has been closed so I can do an automatic "pause." How do I do this?

    Posted by Thomas Crosley, tcrosley@softology.com
    on January 08, 2002 at 09:08

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    RE: How to tell when the case has been closed?

    Posted by Forum_Nokia Developer_Support, communicator.developer@nokia.com
    on January 09, 2002 at 12:54



    Override CEikAppUi::HandleWsEventL like this:

    void CMyAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
    {
    TInt type=aEvent.Type();
    switch (type)
    {
    case EEventCaseOpened:
    // case opened code
    break;
    case EEventCaseClosed:
    // case closed code
    break;
    }
    // we need to let Eikon see the events too
    CEikAppUi::HandleWsEventL(aEvent, aDestination);
    }

    Regards,
    FN Developer Support

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    RE: How to tell when the case has been closed?

    Hi are you sure that youre using CAknAppUi not the CEikAppUi while deriving? I used EikAppUi on 7650 and had similiar problem (not the case but menu pressing)

Posting Permissions

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