当前位置: 代码迷 >> Symbian >> 求获取CELL id解决思路
  详细解决方案

求获取CELL id解决思路

热度:4400   发布时间:2013-02-26 00:00:00.0
求获取CELL id
NOKIA手机系列, 获得CELL ID ,

求代码, 谢谢关注,

有研究过的请发消息给我,谢谢
------解决方案--------------------------------------------------------
寻SYMABIN合作开发伙伴, 不过费用不很高,挣点小钱还可以。 有兴趣的发消息给我,谢谢
------解决方案--------------------------------------------------------
Find Out Cell ID in 3rd Edition
http://wiki.forum.nokia.com/index.php/Find_Out_Cell_ID_in_3rd_Edition
------解决方案--------------------------------------------------------
? 用SYMBIAN如何? 有没兴趣做这个? 谢谢答复
------解决方案--------------------------------------------------------
引用:
Find Out Cell ID in 3rd Edition 
http://wiki.forum.nokia.com/index.php/Find_Out_Cell_ID_in_3rd_Edition

推荐
------解决方案--------------------------------------------------------
// System includes
#include <badesca.h>
#include <e32std.h>
#include <eikenv.h>
#include <eikappui.h>
#include <eikapp.h>
#include "RlPlatforms.h"

#include <Etel3rdParty.h>

//User includes
#include "SystemManager.h"

CSystemManager* CSystemManager::NewL()
{
CSystemManager* self = new (ELeave) CSystemManager();
CleanupStack::PushL(self);
self->ConstructL();
CleanupStack::Pop(self);

return self;
}

CSystemManager::CSystemManager()
: CActive(EPriorityHigh) // HIGH priority
, iPhoneInfoType(EHandsetIMEI)
, iState(EStart)
, iTelephony(NULL)
, iIMEI(0)
, iIMSI(0)
, iCellId(0)
, iLocationAreaCode(0)
{
}

void CSystemManager::ConstructL()
{
iTelephony = CTelephony::NewL();
CActiveScheduler::Add(this); // Add to scheduler
}

CSystemManager::~CSystemManager()
{
Cancel(); // Cancel any request, if outstanding
// Delete instance variables if any
delete iTelephony;
}

void CSystemManager::DoCancel()
{
switch(iPhoneInfoType)
{
case EHandsetIMEI: 
iTelephony->CancelAsync(CTelephony::EGetPhoneIdCancel);
break;
case EHandsetIMSI:
iTelephony->CancelAsync(CTelephony::EGetSubscriberIdCancel);
break;
default:
iTelephony->CancelAsync(CTelephony::EGetCurrentNetworkInfoCancel);
break;
}
}

void CSystemManager::StartL()
{
Cancel(); // Cancel any request, just to be sure
iState = EGetPhoneInfo;
switch(iPhoneInfoType)
{
case EHandsetIMEI:
{
CTelephony::TPhoneIdV1Pckg phoneIdPckg( iPhoneId );
iTelephony->GetPhoneId(iStatus, phoneIdPckg);
}
break;
case EHandsetIMSI:
{
CTelephony::TSubscriberIdV1Pckg subscriberIdPckg( iSubscriberId );
iTelephony->GetSubscriberId(iStatus, subscriberIdPckg);
}
break;
case EHandsetNetworkInfo:
{
CTelephony::TNetworkInfoV1Pckg networkInfoPckg( iNetworkInfo );
iTelephony->GetCurrentNetworkInfo(iStatus, networkInfoPckg);
}
break;        
}

SetActive(); // Tell scheduler a request is active
iActiveSchedulerWait.Start();
}
  相关解决方案