×

Discussion Board

Results 1 to 11 of 11

Thread: Embed file

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Embed file

    when you open an a image file using CDocumentHandler->OpenFileEmbeddedL(...) and press exit in the image view the parent app exits, is there a way to redefine this behaviour? I want the exit button to behave in the same way as the back button and also I don't want to launch a separate application

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

    Re: Embed file

    have you implemented the MAknServerAppExitObserver ? you should be able to catch the exit there without exiting your own applciation: http://wiki.forum.nokia.com/index.ph...ocumentHandler

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Embed file

    Implement and pass MAknServerAppExitObserver to CDocumentHandler.

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Re: Embed file

    if I don't call the base class implementation MAknServerAppExitObserver::HandleServerAppExit(aReason); in HandleServerAppExit() my application should not exit right? But it is exiting anyway

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

    Re: Embed file

    Are you now talking about the application that embeds another one ? or actually about the application that gets embedded ?

  6. #6
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Re: Embed file

    I am talking about the application that embeds another one,

    my application is trying to embed image application and when i exit image application i get a callback to HandleServerAppExit() but my application also gets killed

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

    Re: Embed file

    You would never call HandleServerAppExit from the applciation that embeds another, the application getting embedded would call it to inform you that it is exiting.

  8. #8
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Re: Embed file

    Infact I just installed your YBrowser and that is behaving in the same way. YBrowser gets killed when you close the image application, I don't want this to happen in my application

  9. #9
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Re: Embed file

    Quote Originally Posted by symbianyucca View Post
    You would never call HandleServerAppExit from the applciation that embeds another, the application getting embedded would call it to inform you that it is exiting.
    So how do I prevent my application's exit?

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

    Re: Embed file

    Of course if user explicitly selects the Exit command from the Menu, you are supposed to exit. anyway, any well behaving embedded application, like the image application, actually shows the back in the right soft-key, that handles the going back.

    I'm not going to bother on checking the issue, but surely, you can check whether the exit command comes to your appui's command handler, and if it does, just handle it differently. and if the embedded application really wants to exit, then there is not much that you can do about it.

  11. #11
    Registered User
    Join Date
    Apr 2010
    Posts
    30

    Re: Embed file

    HandleCommandL is getting the exit command, in fact the HandleServerAppExit's documentation says "This implementation provides Series 60 default behavior for handling of the EAknCmdExit exit code" so that solved it. Thank you.

Similar Threads

  1. Embed file explorer in application
    By digitalsol in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-10-04, 09:19
  2. Embed text file to a sis file
    By honour88 in forum Symbian
    Replies: 4
    Last Post: 2009-11-24, 16:32
  3. Product uses Open-C, But not allowed to embed in sis file, Is that fine for signing?
    By sovendana in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2007-09-14, 07:28
  4. embed color gif file in wml page cannot load
    By hsinyee in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2003-05-30, 03:35

Posting Permissions

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