NlMakesis Y-Browser Y-Tasks
Hi,
how to enumerate all available access points (IAP). I need names (strings) of access points not only Uids.
Thanks, noIdea
Doesn't CCDIAPRecord have iRecordName member?
I found what I was looking for. FYI.
/*Ex2: Iterate over a list of IAPs (Series 60 only) */ CCommsDatabase* CommDb = CCommsDatabase::NewL(EDatabaseTypeIAP); CleanupStack::PushL(CommDb); CApSelect* ApSelect = CApSelect::NewLC(*CommDb, KEApIspTypeAll ,EApBearerTypeAll ,KEApSortUidAscending); if (ApSelect->MoveToFirst()) { do { TUint uid = ApSelect->Uid(); const TDesC& name = ApSelect->Name(); } while(ApSelect->MoveNext()); } CleanupStack::PopAndDestroy(ApSelect); CleanupStack::PopAndDestroy(CommDb);
Forum posts: 30
Doesn't CCDIAPRecord have iRecordName member?
Forum posts: 6
I found what I was looking for. FYI.
/*Ex2: Iterate over a list of IAPs (Series 60 only) */
CCommsDatabase* CommDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(CommDb);
CApSelect* ApSelect = CApSelect::NewLC(*CommDb, KEApIspTypeAll ,EApBearerTypeAll ,KEApSortUidAscending);
if (ApSelect->MoveToFirst())
{
do
{
TUint uid = ApSelect->Uid();
const TDesC& name = ApSelect->Name();
}
while(ApSelect->MoveNext());
}
CleanupStack::PopAndDestroy(ApSelect);
CleanupStack::PopAndDestroy(CommDb);