×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    129

    Question Can I delete user defined profiles programmatically?

    Hi

    I want to delete all user defined profiles programatically,
    Is is possible?
    How can I achive this?

    Thanks

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

    Re: Can I delete user defined profiles programmatically?

    public SDK does not have this feature most propably, but there are some profiles APIs in the API plug-in, so maybe you could check what can be done with them..

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Can I delete user defined profiles programmatically?

    This is allwhat you can do with profile, but i think can't delete it.


    http://www.forum.nokia.com/infocente...pper_API4.html

  4. #4
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    129

    Question Re: Can I delete user defined profiles programmatically?

    hi symbianucca,

    i got some code for profiles API which uses the plug in.
    but this code is unable to delete any of the user defined profiles......
    the function iProfileEngExt->DeleteProfileL( profilesNamesArray->ProfileName(i)->Id() ); returns the code 6291756.



    MProfilesNamesArray* profilesNamesArray = iProfileEngExt->ProfilesNamesArrayLC();

    TInt count = profilesNamesArray->MdcaCount();
    AppendToDebugFileL(_L("\\data\\others\\ProfileCount.txt"),count);
    for(TInt i=0;i<count;i++)
    {
    AppendToDebugFileL(_L("\\data\\others\\ProfileLoop.txt"),i);
    if(profilesNamesArray->ProfileName(i)->Id() >=6 && profilesNamesArray->ProfileName(i)->Id() <=31)
    {
    TInt err = iProfileEngExt->DeleteProfileL( profilesNamesArray->ProfileName(i)->Id() );
    AppendToDebugFileL(_L("\\data\\others\\ProfileNotDeleted.txt"),err);
    }
    }

    CleanupStack::PopAndDestroy(profilesNamesArray);

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Can I delete user defined profiles programmatically?

    This is all what you can do with profile, but i think can't delete it.


    http://www.forum.nokia.com/infocente...pper_API4.html

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Can I delete user defined profiles programmatically?

    Quote Originally Posted by NRK View Post
    hi symbianucca,

    i got some code for profiles API which uses the plug in.
    but this code is unable to delete any of the user defined profiles......
    the function iProfileEngExt->DeleteProfileL( profilesNamesArray->ProfileName(i)->Id() ); returns the code 6291756.



    MProfilesNamesArray* profilesNamesArray = iProfileEngExt->ProfilesNamesArrayLC();

    TInt count = profilesNamesArray->MdcaCount();
    AppendToDebugFileL(_L("\\data\\others\\ProfileCount.txt"),count);
    for(TInt i=0;i<count;i++)
    {
    AppendToDebugFileL(_L("\\data\\others\\ProfileLoop.txt"),i);
    if(profilesNamesArray->ProfileName(i)->Id() >=6 && profilesNamesArray->ProfileName(i)->Id() <=31)
    {
    TInt err = iProfileEngExt->DeleteProfileL( profilesNamesArray->ProfileName(i)->Id() );
    AppendToDebugFileL(_L("\\data\\others\\ProfileNotDeleted.txt"),err);
    }
    }

    CleanupStack::PopAndDestroy(profilesNamesArray);
    Try creating the profile from this extended API and then delete that profile.

    Before deleting, check the currently active profile is not the one you are deleting.
    Regards,
    Shafali

Similar Threads

  1. Replies: 7
    Last Post: 2009-09-09, 07:38
  2. linking error
    By dakosurf in forum Symbian
    Replies: 1
    Last Post: 2008-03-27, 22:45
  3. How to get User defined menu items in a form?
    By varshajohn in forum Symbian User Interface
    Replies: 3
    Last Post: 2002-11-11, 14:50
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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