Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User gbrownaccount's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Hi,

    I have just started to develop within Nokia Qt and I would like to how it is possible to do the following.

    1. Create an application that will launch the default application based upon the Mime type of the file?
    2. Create an application that registers itself as the default application to open a certain mime type.
    3. Use the application from 2. to handle the mime type and open the file.

    So far I have only been able to find the documentation to do this using the Symbian C++ platform only. I think following these guides would achieve what I want to do, although I am not sure :


    This leads me towards some more general questions, which I would really appreciate answering.
    4. Within Nokia Qt is it possible to write Symbian specific code? If so, do I need set-up a Symbian SDK / Development Environment and just include the specific libraries that I require? Or do I require something else?

    Thanks in advance for any help!

  2. #2

  3. #3
    Registered User gbrownaccount's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Ah thank you. Just to clarify so that I don't do anything stupid, I should be able to use the setUrlHandler within the other application to register it as the default application to open the mime type.
    Then when I want to open that mime type I should be able to use the openUrl to open the currently set handler.

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    UrlHandler has an effect only in scope of application.
    Last edited by divanov; 2011-02-11 at 13:59. Reason: typos

  5. #5
    Registered User gbrownaccount's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Huh, I am a bit confused by what you mean there. I am used to the magic of J2ME's CHAPI JSR. I was really looking for some sort of equivalent. When you say in scope of application, do you mean the other application needs to be already opened. How would this work if the other application is closed.

    Perhaps you could explain the void QDesktopServices::setUrlHandler ( const QString & scheme, QObject * receiver, const char * method ) [static] function more. More specifically the pointer to the receiver object. Do you create the application and get a pointer to it?
    Last edited by gbrownaccount; 2011-02-11 at 13:44. Reason: Grammer

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    QObject is the object inside of your application which will be handling open requests for specified scheme. If you need to change associations on the system level, then you should use Symbian native API for that.

  7. #7
    Registered User gbrownaccount's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Oh, Well back to my very first post :

    4. Within Nokia Qt is it possible to write Symbian specific code? If so, do I need set-up a Symbian SDK / Development Environment and just include the specific libraries that I require? Or do I require something else?

  8. #8
    Registered User gbrownaccount's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Don't worry. I am playing around with one of the Qt examples here. Thanks for your help. I will create a seperate thread when I get issues using the Symbian code.
    Last edited by gbrownaccount; 2011-02-11 at 16:10.

  9. #9
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by gbrownaccount View Post
    Within Nokia Qt is it possible to write Symbian specific code? If so, do I need set-up a Symbian SDK / Development Environment and just include the specific libraries that I require? Or do I require something else?
    Since Qt is library you can use native Symbian libraries together with it. However, Qt SDK doesn't contain headers for all Symbian libraries, so you may need Symbian SDK in certain cases.

Similar Threads

  1. NOKIA N900 : Unsupported MIME TYPE: application/vnd.wap.xhtml+xml
    By elkhoury01 in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2010-12-09, 23:34
  2. Find out supported MIME type and app for MIME type
    By lenclud in forum Symbian C++
    Replies: 2
    Last Post: 2009-05-12, 14:00
  3. default MIME type launcher
    By EranNoyman in forum Symbian C++
    Replies: 0
    Last Post: 2003-05-01, 07:33
  4. Replies: 1
    Last Post: 2002-05-10, 18:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved