Hi all.
i want to create new internet access point. Do i need network control capability?
thanks.
Hi all.
i want to create new internet access point. Do i need network control capability?
thanks.
No. You need WriteDeviceData capability.
Regards,
ivey
Ok. But when i execute second time code Leaves KErrAlreadyExits. I read that we can create multiple IAP with rank 0. why the code leaves? At Symbian V2 i can create multiple IAP with same values. thanks.
CCommsDbConnectionPrefTableView * view = db->OpenConnectionPrefTableLC(ECommDbConnectionDirectionOutgoing);
CCommsDbConnectionPrefTableView::TCommDbIapBearer bearerinfo;
bearerinfo.iBearerSet = (TUint32) -1;
bearerinfo.iIapId=Iap;
CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
pref.iRanking = 0;
pref.iDirection=ECommDbConnectionDirectionOutgoing;
pref.iDialogPref =ECommDbDialogPrefDoNotPrompt;
pref.iBearer=bearerinfo;
view->InsertConnectionPreferenceL(pref); // LEAVES -11
CleanupStack::PopAndDestroy(view);
KErrAlreadyExits has nothing to do with capabilities.
This is from SDK help:
IMPORT_C void InsertConnectionPreferenceL(const TCommDbIapConnectionPref &aPref, TBool aReadOnly=EFalse);
Inserts a new IAP connection preference into the connetion preference table. The supplied `aPref` is checked to ensure that the rank and direction do not conflict with existing records.I think that in your case Iap should be different every time you call InsertConnectionPreferenceL().Code:bearerinfo.iIapId=Iap;
Regards,
ivey
No. Iap is different every time. but rank and direction same. and with rank = 0, must not leave. I am wrong?
thanks.
Don't know.
You can try setting iRanking to 1 instead of 0. Also you can try setting iBearerSet to ECommDbBearerGPRS (or whatever you need here).
Regards,
ivey