×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    53

    Deleting an access point

    I have created APs programmatically, when I try to delete the AP (that is currently connected) I am getting error.. is there a way to first disconnect and then try deletion of the AP.

    Below is the code for deletion

    RCmManagerExt cmManager;
    cmManager.OpenL();
    CleanupClosePushL( cmManager );
    RCmConnectionMethodExt plugin = cmManager.ConnectionMethodL(apid); // apid is the id of the AP that needs to be deleted.
    CleanupClosePushL(plugin);

    TUint32 destinationId( 1 ); // 1 For internet

    RCmDestinationExt destination = cmManager.DestinationL( destinationId );
    CleanupClosePushL( destination );
    destination.DeleteConnectionMethodL(plugin);
    destination.UpdateL();

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,021

    Re: Deleting an access point

    Is that connection made by your application only? If yes then RConnection::Close() can do the job.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    53

    Re: Deleting an access point

    The AP is created by my app, but it can be used by multiple Apps, so I believe close() will not work....

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

    Re: Deleting an access point

    you could ask the suer whether he/she agrees on disconnecting all connections, and then simply do disconnect. I suppose RConnectionMonitor should have the needed functions, or if you want to take short-cut, just check the current profile, then turn the profile to silent, do deletion and then turn back the original profile again.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Deleting an access point

    Quote Originally Posted by symbianyucca View Post
    you could ask the suer whether he/she agrees on disconnecting all connections, and then simply do disconnect. I suppose RConnectionMonitor should have the needed functions, or if you want to take short-cut, just check the current profile, then turn the profile to silent, do deletion and then turn back the original profile again.
    Hello,
    I think RConnection API is better in this case, as a starting point see for example (unfortunately there's no more online dev guide for SymbianC++ here):
    http://www.symlab.org/main/documenta...6E9FEDC93.html
    Please note that RConnection::Stop() needs NetworkControl capability.

    And maybe symbianyucca was referring to the offline profile, so that all active connections are brutally closed... but the profile change is notified to the user, so it's better to ask in any case :-)

    As a personal experience, i noticed that sometime you have to wait a little (after all connections are closed) before attempting to delete apn

    Hope it helps,
    br

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

    Re: Deleting an access point

    Quote Originally Posted by pavarang View Post
    And maybe symbianyucca was referring to the offline profile, ...
    Yep, I suppose its friday and my head is having weekend already

Similar Threads

  1. Issue in deleting access point
    By monika.parvanda in forum Symbian
    Replies: 0
    Last Post: 2011-04-11, 12:10
  2. Replies: 1
    Last Post: 2010-08-05, 11:05
  3. How to categorise an access point (uncategorised access point issue)
    By Greg_Jokiel in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2010-05-09, 08:12
  4. problem in deleting the access point
    By nehasaxena in forum Symbian
    Replies: 10
    Last Post: 2010-03-24, 08:03
  5. Replies: 1
    Last Post: 2007-08-10, 08:20

Posting Permissions

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