×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Hyderabad, India
    Posts
    90

    Getting the current ringtone name in s60 3rd Edition

    Hi All,

    In S60 3rd SDK classes CSettingInfo and CSettingApi have been removed. These classes where used to find out active profile related info. In 3rd edition they have introduced the concept of putting the profiles related info into the Central Repository and the profile information that they have exposed to the 3rd patry developers limited to the propertied defined in profileenginesdkcrkeys.h.

    In my application I need to find out the current ringtone and current message tone. Any idea how can I do that?
    Regards,
    Ashish

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328

    Re: Getting the current ringtone name in s60 3rd Edition

    Hi

    Did you ever find a solution to this problem... I also need to get the ringtone name from the profile as stored in the central repository...

    Thanks

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

    Re: Getting the current ringtone name in s60 3rd Edition

    You can do some almost-reverse-engineering-that-is-prohibited-by-the-SDK-license-you-have-accepted. Start with the public info:
    Quote Originally Posted by profileenginesdkcrkeys.h
    const TUid KCRUidProfileEngine = {0x101F8798};
    Go to epoc32\data\z\private\ and search for a "big" directory. That is the central repository (10202be9). There you can find 101F8798.txt, and you can begin to find out the keys you need (you will also find the documented ones :-), most of them seem to be readable by anyone (cap_rd=alwayspass).
    Since this is almost secret and probably forbidden, do not read the above, and of course do not try it at home. Or am I late?
    Also note that you will not find your actual settings in the .txt file, since it is just an initializer.
    Last edited by wizard_hu_; 2006-07-18 at 03:18.

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    20

    Re: Getting the current ringtone name in s60 3rd Edition

    Supposing one has identified the profile settings and fields in the file you were talking about, and supposing one could change some values with CRepository, how can somebody make the phone application update to the current settings? If somebody changes some settings there, they can be seen in the profile application, but they are not taken by the phone.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Getting the current ringtone name in s60 3rd Edition

    I have received your letter, but I do not know the answer, sorry.

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    22

    Re: Getting the current ringtone name in s60 3rd Edition

    Quote Originally Posted by wizard_hu_
    I have received your letter, but I do not know the answer, sorry.
    mebbe u can help me with that:
    http://discussion.forum.nokia.com/fo...ad.php?t=93510

    thanks

  7. #7
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Getting the current ringtone name in s60 3rd Edition

    Quote Originally Posted by ash_bhatia
    Hi All,

    In S60 3rd SDK classes CSettingInfo and CSettingApi have been removed. These classes where used to find out active profile related info. In 3rd edition they have introduced the concept of putting the profiles related info into the Central Repository and the profile information that they have exposed to the 3rd patry developers limited to the propertied defined in profileenginesdkcrkeys.h.

    In my application I need to find out the current ringtone and current message tone. Any idea how can I do that?
    For the ringing tone look at Mikie Raento blog here !
    I hope that I can help you
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Getting the current ringtone name in s60 3rd Edition

    Hi,

    You can find the current ringtone using :-

    CRepository* iRepository = CRepository::NewL(KCRUidProfileEngine);
    TBuf<256> iRingToneName;
    TInt value;

    // Get the ID of the currently active profile:
    User::LeaveIfError( iRepository->Get(KProEngActiveProfile, value));

    TInt ringToneUid = value << 24 | 0xa ;
    ringToneUid -= 6;
    User::LeaveIfError( iRepository->Get(ringToneUid, iRingToneName));

    Using the same kind of approach you can get the current message tone as well.

    Also you would require ReadUserData capability AFAIK.

    Hope this helps.

    Cheers
    mayank

Similar Threads

  1. OpenGL ES on S60 3rd Edition SDK Emulator
    By specjones in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2008-09-30, 10:22
  2. TTime : TInt64& Int64() problem in S60 3rd edition
    By iulian_moldovan in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-01-24, 13:07
  3. S60 3rd edition copy installation
    By vtulai in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-12-20, 07:51
  4. OpenGL ES Support in S60 3rd Edition Beta SDK
    By choefele in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2005-12-14, 06:01
  5. techview CEikHierarchicalListBox missing in S60 3rd edition?
    By akmits in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-12-05, 19:47

Posting Permissions

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