This page was last modified 16:29, 23 June 2008.
How to create access point
From Forum Nokia Wiki
If you want to create a new entry in the IAP table.
The code works fine.
#include commdb.h #include cdbcols.h Link Against : commdb.lib
void CYourApp::SetNewIAP(TDesC8& aIAPName) { TUint32 aIAPId=0; TInt aGPRSId=0; TInt aId=0; TInt aError; TCommDbOpeningMethod aMethod; static CCommsDatabase* aComDB = CCommsDatabase::NewL(EDatabaseTypeIAP, aMethod); CleanupStack::PushL(aComDB ); CCommsDbTableView* aView ; aView = aComDB ->OpenTableLC(TPtrC(IAP)); CleanupStack::PushL(aView); aError = aView->InsertRecord(iapId); aView->WriteTextL(TPtrC(COMMDB_NAME), aIAPName); aView->WriteTextL(TPtrC(IAP_SERVICE_TYPE), TPtrC(OUTGOING_GPRS)); aView->WriteUintL(TPtrC(IAP_SERVICE), aGPRSId); aView->WriteUintL(TPtrC(IAP_NETWORK_WEIGHTING), 0); aView->WriteUintL(TPtrC(IAP_NETWORK), aId); aView->WriteUintL(TPtrC(IAP_BEARER), 0); aView->WriteTextL(TPtrC(IAP_BEARER_TYPE), TPtrC(MODEM_BEARER)); aView->WriteUintL(TPtrC(IAP_LOCATION), 2); aError = aView->PutRecordChanges(EFalse, EFalse); CleanupStack::Pop(aComDB); CleanupStack::Pop(aView); delete aView; delete aComDB; }
Internal links
- Internet Access Point
- Reading internet access points from the device
- Mandatory tables for creating GPRS access point
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access point selection | Svat_ | General Symbian C++ | 1 | 2007-04-17 05:45 |
| Multiple access point selections | dkogias | Open C | 0 | 2007-12-19 02:00 |
| WLAN access point connection | NigelT | Symbian Networking & Messaging | 9 | 2007-01-11 18:49 |
| Socket example problem on real N7650 | chinazou305 | Symbian Networking & Messaging | 3 | 2003-06-06 16:32 |
| mms notification - urgent | sarahang | General Messaging | 4 | 2003-05-14 03:38 |
