Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User VadimR's Avatar
    Join Date
    Nov 2003
    Posts
    3
    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 symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    hello

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

    yucca

  3. #3
    Regular Contributor mtg101's Avatar
    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 VadimR's Avatar
    Join Date
    Nov 2003
    Posts
    3
    The RConnection and CCommsDatabase classes resolve all requirements.

    Vadim.

  5. #5
    Regular Contributor gheese's Avatar
    Join Date
    Jun 2003
    Location
    Earth
    Posts
    105
    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 MichaelMadsen's Avatar
    Join Date
    Jun 2003
    Posts
    113
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved