how to enumerate all awailable names of IAP?

Login to reply to this topic.
Thu, 2008-05-29 13:39
Joined: 2008-05-07
Forum posts: 6

Hi,

how to enumerate all available access points (IAP). I need names (strings) of access points not only Uids.

Thanks,
noIdea


Thu, 2008-05-29 13:49
Joined: 2008-03-12
Forum posts: 30
Re: how to enumerate all awailable names of IAP?

Doesn't CCDIAPRecord have iRecordName member?

Thu, 2008-05-29 13:58
Joined: 2008-05-07
Forum posts: 6
Re: how to enumerate all awailable names of IAP?

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);

  • Login to reply to this topic.