×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Location
    Aalen, Germany
    Posts
    6

    How to disable Connection-Selection-Box!

    Hi all,

    I will send some Data OTA to a Webserver. It works fine!

    The Problem is , I have to select a Connection bevor I can send my Data.
    I have tried following Code but it doesent work, the Connection Selection Box always pops up !

    How can I select the correct Connection via Source Code??

    Nokia N85 --> S60_3rd_FP2_SDK_v1.1 Symbian OS

    Code:
     
    .
    . Some Code ...
    .
    InstallAuthenticationL(iSession);
    
    //Get the IAP ID! Read with Database (Fields COMMDB_NAME,COMMDB_ID)
    iSelectedIap = GetAccessPointID();
    
    TCommDbConnPref pref;
    pref.SetIapId(iSelectedIap); // IAP ID for connection to be used
    pref.SetDialogPreference( ECommDbDialogPrefDoNotPrompt );
    pref.SetDirection( ECommDbConnectionDirectionOutgoing );
        
    User::LeaveIfError(iSocketServ.Connect());
    User::LeaveIfError(iConnection.Open(iSocketServ));
    iConnection.Start(pref,iStatus);
    SetActive();
    .
    . Some Code....
    .

    Thanx a lot for any Help!

    Greetings Benny

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

    Re: How to disable Connection-Selection-Box!

    Welcome to the DiBo:-)

    And how are you creating the Soap Connection and service pattern, have you passed the selected iap id to that also, if not you will have to do that also.
    Cheers,
    Mayank

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

    Re: How to disable Connection-Selection-Box!

    Quote Originally Posted by planet_benny View Post
    //Get the IAP ID! Read with Database (Fields COMMDB_NAME,COMMDB_ID)
    From which table do you get the ID?

  4. #4
    Registered User
    Join Date
    Mar 2009
    Location
    Aalen, Germany
    Posts
    6

    Re: How to disable Connection-Selection-Box!

    From the Table "IAP"

    Code:
    CCommsDatabase* commDB = CCommsDatabase::NewL(EDatabaseTypeIAP);
    CleanupStack::PushL(commDB);
    CCommsDbTableView* commDbTableView = commDB->OpenTableLC(TPtrC(IAP));
    CCommsDbConnectionPrefTableView* commDBView =  commDB->OpenConnectionPrefTableInRankOrderLC(ECommDbConnectionDirectionOutgoing);
    And there I have a Internet-Connection called "CWIS".
    And with this Connection i have to Send.
    Last edited by planet_benny; 2009-06-04 at 10:38.

Similar Threads

  1. GPRS connection status---urgent, please
    By fanyulong in forum Symbian
    Replies: 3
    Last Post: 2008-07-15, 07:54
  2. how to updated the list box on dialog box before it is displaying it.
    By manjunaths in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-03-20, 10:37
  3. Disable Serial Connection
    By brain_dead00 in forum Symbian
    Replies: 7
    Last Post: 2004-08-17, 11:16
  4. Losing data over Bluetooth connection between 6600 and linux box
    By DieterTschanz in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-06-17, 10:56
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

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