Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User yinquan's Avatar
    Join Date
    Mar 2006
    Posts
    39
    I saw Extension_() function during studing usage of CSession.
    Does my own class inherit this function from CSession? what usage of Extension_()?

    In symbian API, I saw a lot of Extension_() function in many vary class. How does Those functions implement extension function.

  2. #2
    Registered User david.caabeiro's Avatar
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678
    What use would you make out of it? They're mostly meant for internal use probably.

  3. #3
    Registered User laa-laa's Avatar
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    These "extension" functions are really just empty placeholders for the future. They enable adding new functions to base classes without breaking binary compatibility of derived classes.

    Lauri

  4. #4
    Registered User yinquan's Avatar
    Join Date
    Mar 2006
    Posts
    39
    Quote Originally Posted by david.caabeiro View Post
    What use would you make out of it? They're mostly meant for internal use probably.
    According your explain, function like Extension_() is used internal Symbian API, and Common Devoloper don't need to use this function.

    But I don't know whether I can use this function to extension my application.
    Last edited by yinquan; 2008-08-12 at 11:32.

  5. #5
    Registered User david.caabeiro's Avatar
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678
    Actually Lauri's answer is more precise. Anyway, these functions are not meant to be used by application developers.

  6. #6
    Registered User yinquan's Avatar
    Join Date
    Mar 2006
    Posts
    39
    Thanks. I know. This API will be called reference API of Symbian.
    Thanks a lot again.

  7. #7
    Super Contributor pirosl's Avatar
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560
    Quote Originally Posted by yinquan View Post
    I saw Extension_() function during studing usage of CSession.
    Does my own class inherit this function from CSession? what usage of Extension_()?

    In symbian API, I saw a lot of Extension_() function in many vary class. How does Those functions implement extension function.
    It's just a standard way to make a class future proof. E.g. if Symbian wants to extends smth in the future will probably use those extend methods since they promised binary and source compatibility between versions.
    And....you can't use them

  8. #8
    Nokia Developer Champion hotcheese's Avatar
    Join Date
    Jul 2004
    Posts
    2,015
    Quote Originally Posted by yinquan View Post
    But I don't know whether I can use this function to extension my application.
    THe implementation of this function will be to do nothing - so how can you use something which does nothing to extend your application?

Similar Threads

  1. Issue when trying to generate .sis file
    By rmulam in forum Symbian Tools & SDKs
    Replies: 9
    Last Post: 2009-08-13, 14:10
  2. External Linking Error (Undefined Symbol)
    By nile_mail in forum Symbian C++
    Replies: 2
    Last Post: 2008-08-05, 13:10
  3. How to set number for forwarding??
    By silviuccia in forum Symbian C++
    Replies: 6
    Last Post: 2007-01-09, 10:16
  4. Replies: 0
    Last Post: 2003-12-07, 16:06
  5. Exceptions while loading application
    By avinash_rs in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 10:53

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