Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2003

    Connection Problem.!!

    Hi all,

    I am using CIntConnectionInitiator class for initiating the Connection to be used by WapStack to make a request,i want to show up a popup list to the user to select which connection to be used and not the default or active connection.
    The code is working fine on Symbian 6.1, but the same class is depricated in Symbian 7.0. My problem is, i want to make a common code that could run on both Symbian version running device.
    I have tried using RGenericAgent but that also fails on Symbian 7.0. The class that is used in 7.0 is RConnection. Can someone help me out in this matter.

    Any help will be appreciated.

    Thanx and Regards
    Vivek Awasthi.
    Last edited by awasthi_vivek; 2004-08-23 at 07:58.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Not only is CIntConnectionInitiator deprecated in 7.0s, it basically useless.

    Sure it'll create a connection to the network, but without using RConnection you can't use that connection and the user will still be prompted to choose an AP when you try to connect your socket.

    Bascially you'll have to have different code for v1 v's v2 (and different code again for UIQ if you're supporting that as well).

  3. #3
    Registered User
    Join Date
    Jul 2004

    CCommsDatabase* commDB = CCommsDatabase::NewL(EDatabaseTypeIAP);

    CApSelect* pApSelect = CApSelect::NewLC(*commDB, KEApIspTypeAll,EApBearerTypeGPRS ,KEApSortNameAscending);

    TBool bSuccess = pApSelect->MoveToFirst();

    TCommsDbIspType apType;
    TApBearerType bearType;

    if (bSuccess)
    TBuf8<64> apName;
    TBuf<64> name;

    apName.Copy(pApSelect->Name( )); //### this appears to be the same AP name used by Services and Messages

    while(bSuccess && apName.Compare(_L8("GPRS"))!=0)
    bSuccess =pApSelect->MoveNext();
    apName.Copy(pApSelect->Name( ));

    apType = pApSelect->Type();
    bearType = pApSelect->BearerType();
    uidWAP = pApSelect->Uid();

    CApUtils* pApUtils = CApUtils::NewLC(*commDB);

    uidIAP = pApUtils->IapIdFromWapIdL(uidWAP); //### this returns the same IAP ID as method 3 above




    CCommsDbConnectionPrefTableView* connPrefView;
    connPrefView = commDB->OpenConnectionPrefTableInRankOrderLC(ECommDbConnectionDirectionOutgoing);

    TInt err = connPrefView->GotoFirstRecord();

    CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref aPref;

    while (KErrNone == err)

    if (aPref.iBearer.iIapId == uidIAP)

    err = connPrefView->GotoNextRecord();

    aPref.iDialogPref = ECommDbDialogPrefDoNotPrompt;
    aPref.iBearer.iIapId = uidIAP;

    CStoreableOverrideSettings *m_overrides = CStoreableOverrideSettings::NewL(CStoreableOverrideSettings::EParamListPartial,EDatabaseTypeIAP);


    is working in my 6600 phone and 3660 and 3650
    i don't know that any part is depricated or not but this code is working fine for me

Posting Permissions

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