×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    13

    about views and engines

    hi,
    i have two views. and an engine.
    1- main view1,container1
    2- view2,container2
    3- engine (CActive class , it is just a timer)

    in view1 a menu command activates engines "set timer" method.
    i want to do that:
    after a defined time sending to appui a command and activate view2.
    " ActivateLocalViewL(view2) " method is in appui . i need just to send a command to appui and call this method.
    thanks for help.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    you can get the pointer to your appui using this line:

    CEikonEnv::Static()->CEikonEnv->EikAppUi()

    Then just cast it to your AppUI class type and use the public functions defined in it.

    yucca

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    I dont understand where is the problem. In the view use CTimer or CPeriodic for interval. Each view derived from CAknView has AppUi() protected member, which you can use&cast to get your own AppUi implementation. Then call ActivateLocalViewL().

    Bye STeN

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    13
    thanks for answers.
    i solved the problem.
    in object i used a handler like this:

    iAppUi=(CActvObjAppUi*)iEikEnv->AppUi();

    and iAppUi->SomeFunction();

    it's working.

Posting Permissions

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