Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2004
    Bangalore, India

    Controlling the shutdown/power-off events

    Hi All,

    I am trying to control the power-off events. My requirement is, when power-off button is clicked send a SMS out. Once the SMS is sent out (RunL is called of SMS Sender Active Object), continue the power-off sequence. That is, till the SMS is sent out phone should not shut-down.

    I am able to trap the power-off events in HandleWsEvents as well as in HandleSystemEventL. But these functions doesnt allows me to suspend the power-off sequence till I am done with SMS sending.

    I am trying this on 3rd Edition. Please throw a light on this subject.

    Dushyant Gaur
    Sling Media,
    cell:+91 9342276086
    email: dushyantg@slingmedia.com

  2. #2
    Registered User
    Join Date
    Jul 2009

    Re: Controlling the shutdown/power-off events

    Can I ask for the power event code?? maybe I can look at it...

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Moscow, Russia

    Re: Controlling the shutdown/power-off events

    I guess that it's an EApaSystemEventShutdown event. Try out to handle it:
    void CTestAppUi::HandleSystemEventL(const TWsEvent& aEvent)
       switch (*(TApaSystemEvent*)(aEvent.EventData()))
         case EApaSystemEventShutdown:
           // do things here
       // call base class implementation

Similar Threads

  1. Controlling the shutdown/power-off events
    By dushyant_gaur in forum Symbian
    Replies: 2
    Last Post: 2008-04-15, 13:00
  2. Capturing All window events
    By sanjay417 in forum Symbian
    Replies: 4
    Last Post: 2008-02-25, 19:53
  3. CTelephony - NotifyChange - how not to miss events?
    By rob_savageminds in forum Symbian
    Replies: 3
    Last Post: 2007-11-01, 11:23
  4. Replies: 0
    Last Post: 2007-04-03, 17:22
  5. Catching events with RSystemAgent
    By d00mo in forum Symbian
    Replies: 3
    Last Post: 2005-06-27, 18:04

Posting Permissions

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