×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Single line query before the application itself is shown

    Hello,

    I would like to display a single line query before the application itself is visible. What is the best way to do it?

    Thank you.

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

    Re: Single line query before the application itself is shown

    Query dialog maybe..

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Single line query before the application itself is shown

    Quote Originally Posted by symbianyucca View Post
    Query dialog maybe..
    I have put a query dialog right in the CAppDocument::CreateAppUiL() method. The problem is the that query dialog in FirstInteractionL does not interrupt.


    Code:
    CEikAppUi* CScDocument::CreateAppUiL()
        {
        Ipc::GlbIpcClient().RequestSettings();
        
        FirstInteractionL(); //waits for password
        
        
        CScAppUi* appUi = new ( ELeave ) CScAppUi;
        CleanupStack::PushL( appUi );
        Vp::Ipc::SetIpcClientObserver(*appUi);   
        CleanupStack::Pop( appUi ) ;
        
        return appUi;      
        }
    Maybe moving the window out of the screen can do the job.

  4. #4
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Single line query before the application itself is shown

    Quote Originally Posted by elviin View Post
    I have put a query dialog right in the CAppDocument::CreateAppUiL() method. The problem is the that query dialog in FirstInteractionL does not interrupt.


    Code:
    CEikAppUi* CScDocument::CreateAppUiL()
        {
        Ipc::GlbIpcClient().RequestSettings();
        
        FirstInteractionL(); //waits for password
        
        
        CScAppUi* appUi = new ( ELeave ) CScAppUi;
        CleanupStack::PushL( appUi );
        Vp::Ipc::SetIpcClientObserver(*appUi);   
        CleanupStack::Pop( appUi ) ;
        
        return appUi;      
        }
    Maybe moving the window out of the screen can do the job.
    This code effectively hides the app but the dialog is also hidden:

    Code:
        CEikonEnv::Static()->RootWin().EnableReceiptOfFocus(EFalse);
        CEikonEnv::Static()->RootWin().SetOrdinalPosition(-1, ECoeWinPriorityNeverAtFront);

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: Single line query before the application itself is shown

    How can I change window coordinates, I would like to have the bottom right corner at position [0,0].

  6. #6
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Unhappy Re: Single line query before the application itself is shown

    Quote Originally Posted by elviin View Post
    How can I change window coordinates, I would like to have the bottom right corner at position [0,0].
    I would expect something like
    Code:
    CEikonEnv::Static()->RootWin().SetPosition(rect);
    but there is no such method:/

  7. #7
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: Single line query before the application itself is shown

    Try to create, for example, two views. First for login dialog, second - main screen. Then app starting first show login dialog, check user's login & pass and if all right then go to next, main view; otherwise - exit from app.

Similar Threads

  1. Modules required :)
    By neil.young in forum Symbian
    Replies: 20
    Last Post: 2009-06-07, 11:35
  2. Single line data query problem
    By vdharankar in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-05-11, 11:23
  3. Application Installation query
    By kumar_sai123 in forum Symbian
    Replies: 2
    Last Post: 2009-02-11, 08:31
  4. Replies: 1
    Last Post: 2008-12-28, 15:40
  5. carbide c++ can't find headers.!!
    By nokia_maniac in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 29
    Last Post: 2007-12-19, 12:54

Posting Permissions

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