×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Location
    India
    Posts
    172

    Timer for login page

    Hello All,

    I am creating a application where user is asked for login credentials on the start of application. If the user cancel the login screen or the login screen looses focus, I have to show the login screen after some time interval.
    Please guide me how to achieve this.

    I tried putting a timer delay. Below is my code


    void CAppUi::HandleForegroundEventL(TBool aForeground)
    {
    // Call Base class method
    CAknAppUi::HandleForegroundEventL(aForeground);

    // CAknInformationNote* informationNote = new ( ELeave ) CAknInformationNote;
    // informationNote->ExecuteLD(_L("erwrwerwrwer"));
    if(aForeground)
    {

    }
    else
    {
    wg = &CCoeEnv::Static()->RootWin();
    wg->SetOrdinalPosition(-1);
    TRequestStatus timerStatus;
    RTimer timer;
    timer.CreateLocal();
    // get current time (microseconds since 0AD nominal Gregorian)
    TTime time;
    time.HomeTime();
    // add ten seconds to the time
    TTimeIntervalSeconds timeIntervalSeconds(10);
    time += timeIntervalSeconds;
    // issue and wait
    timer.At(timerStatus,time);
    User::WaitForRequest(timerStatus);
    timer.Close();
    wg->SetOrdinalPosition(0);


    }
    }



    Thanks
    Amit

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: Timer for login page

    so what issues are you facing in implementing the above code

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Timer for login page

    You could maybe search wiki for real active object time out timer implementation example.

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    China
    Posts
    269

    Re: Timer for login page

    use the CPeriodic class
    I am a programmer,and I hope we can help each other and progress together

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. Page info in CEikEdwin
    By whitewinds in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-08-07, 08:46
  2. Thoughts: Taking the Presence Page Up a Notch
    By ARJWright in forum Mobile Web Server
    Replies: 1
    Last Post: 2009-04-03, 01:34
  3. Crash with multiple ao_timer
    By noreli in forum Symbian
    Replies: 2
    Last Post: 2007-11-01, 06:18

Posting Permissions

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