WEB开发网
开发学院手机开发Symbian 开发 Symbian (Create IAP)创建接入点 阅读

Symbian (Create IAP)创建接入点

 2010-08-11 12:10:00 来源:WEB开发网   
核心提示:commsView->WriteUintL(TPtrC(GPRS_REQ_MEAN_THROUGHPUT), 0);commsView->WriteUintL(TPtrC(GPRS_MIN_PRECEDENCE), 0);commsView->WriteUintL(TPtrC(GPRS_MIN_DEL

commsView->WriteUintL(TPtrC(GPRS_REQ_MEAN_THROUGHPUT), 0);

commsView->WriteUintL(TPtrC(GPRS_MIN_PRECEDENCE), 0);

commsView->WriteUintL(TPtrC(GPRS_MIN_DELAY), 0);

commsView->WriteUintL(TPtrC(GPRS_MIN_RELIABILITY), 0);

commsView->WriteUintL(TPtrC(GPRS_MIN_PEAK_THROUGHPUT), 0);

commsView->WriteUintL(TPtrC(GPRS_MIN_MEAN_THROUGHPUT), 0);

commsView->WriteBoolL(TPtrC(GPRS_ANONYMOUS_ACCESS), EFalse);

commsView->WriteBoolL(TPtrC(GPRS_USE_EDGE), EFalse);

commsView->WriteBoolL(TPtrC(GPRS_ENABLE_LCP_EXTENSIONS), EFalse);

commsView->WriteBoolL(TPtrC(GPRS_DISABLE_PLAIN_TEXT_AUTH), EFalse);

commsView->WriteUintL(TPtrC(GPRS_AP_TYPE), 0);

commsView->WriteUintL(TPtrC(GPRS_QOS_WARNING_TIMEOUT), -1);

commsView->WriteUintL(TPtrC(GPRS_PDP_TYPE), 0);

commsView->WriteTextL(TPtrC(GPRS_PDP_ADDRESS), _L(""));

commsView->WriteTextL(TPtrC(GPRS_IF_PARAMS), _L(""));

commsView->WriteUintL(TPtrC(GPRS_IF_AUTH_RETRIES), 0);

commsView->WriteTextL(TPtrC(GPRS_IP_NETMASK), _L(""));

commsView->WriteTextL(TPtrC(GPRS_IP_ADDR), _L("0.0.0.0"));

commsView->WriteTextL(TPtrC(GPRS_IP_NAME_SERVER1), _L("0.0.0.0"));

commsView->WriteTextL(TPtrC(GPRS_IP_NAME_SERVER2), _L("0.0.0.0"));

//添加完成后记得保存,否则白忙活了

TRAP(error,commsView->PutRecordChanges());

// 在NETWORK表中添加记录

commsView = commsDb->OpenTableLC(TPtrC(NETWORK));

TRAP(error,commsView->InsertRecord(networkId));

commsView->WriteTextL(TPtrC(COMMDB_NAME), _L("WayneNETWORK"));

// 保存设置,并使添加操作生效

TRAP(error,commsView->PutRecordChanges(EFalse, EFalse));

// 查找手机的LOCATION ID

//根据查找的LOCATION表的ID写到IAP表中

TInt result;

上一页  1 2 3 4  下一页

Tags:Symbian Create IAP

编辑录入:coldstar [复制链接] [打 印]
赞助商链接