×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    3

    Access Point Name in Nokia 6600

    Hi All!
    Does anyone know how to get IAP( access point) name for the active connection,
    alternatively to get names of all access points BEFORE establishing GPRS connection.

    Thanks.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142
    hello

    Try finding IAPConnect_v1_0.zip example from download section, it should have all you need.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    UK
    Posts
    159
    Have a look in the SDK help for the RConnection class - everything you need should be in there.

  4. #4
    Registered User
    Join Date
    Nov 2003
    Posts
    3

    Thanks

    The RConnection and CCommsDatabase classes resolve all requirements.

    Vadim.

  5. #5
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Earth
    Posts
    105

    IAP_connect_v2.0

    I am using IAP_Connectv2.0 with series 60 2.0 sdk on Nokia 6600 but I find that CApUtils does not work completely

    for(TUint32 i=1; apUtils->IAPExistsL( i );i++)
    {
    TBuf<128> buf;
    TApBearerType bt = apUtils->BearerTypeL( i );
    apUtils->NameL( i, buf );
    }

    the call to IAPExistsL seems to work fine but the call to NameL freezes in the emulator and does nothing on the phone - why ??

  6. #6
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    113

    How to get IAP list & IAP UIDs

    class CIAPSettingItem
    {
    public:
    TFileName iIapName;
    TUint32 iIapUid;
    };
    typedef CIAPSettingsList CArrayFixFlat<CIAPSettingItem>;


    CIAPSettingsList* GetIAPListL()
    {

    CIAPSettingsList* list = new(ELeave) CIAPSettingsList(1);
    CleanupStack::PushL(list);

    // open commdb
    CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
    CleanupStack::PushL(commDb);

    // open IAP table
    CCommsDbTableView* commView = commDb->OpenIAPTableViewMatchingBearerSetLC(ECommDbBearerCSD|ECommDbBearerGPRS,ECommDbConnectionDirectionOutgoing);
    if (commView->GotoFirstRecord() == KErrNone)
    {
    for (;;)
    {
    TIAPSettingItem item;
    commView->ReadTextL(TPtrC(COMMDB_NAME), item.iIapName);
    commView->ReadUintL(TPtrC(COMMDB_ID), item.iIapUid);
    list->AppendL(item);
    if (commView->GotoNextRecord() != KErrNone)
    break;
    }
    }

    CleanupStack::PopAndDestroy(commView);
    CleanupStack::PopAndDestroy(commDb);
    CleanupStack::Pop(list);

    return list;
    }

Posting Permissions

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