Discussion Board
Access Point Name in Nokia 6600
2003-11-25, 17:46
#1
Registered User
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.
Nokia Developer Expert
hello
Try finding IAPConnect_v1_0.zip example from download section, it should have all you need.
yucca
Regular Contributor
Have a look in the SDK help for the RConnection class - everything you need should be in there.
Thanks
2003-12-23, 15:07
#4
Registered User
The RConnection and CCommsDatabase classes resolve all requirements.
Vadim.
IAP_connect_v2.0
2004-05-09, 23:07
#5
Regular Contributor
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 ??
How to get IAP list & IAP UIDs
2004-05-10, 14:42
#6
Regular Contributor
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
Forum Rules