Symbian 来电拦截的实现
2010-03-07 19:59:00 来源:WEB开发网核心提示:ws.Connect();ev2.Set(TRawEvent::EKeyDown, EKeyDevice1);ws.SimulateRawEvent(ev2);User::After(100000);ev2.Set(TRawEvent::EKeyUp, EKeyDevice1);ws.SimulateRawEvent(
ws.Connect();
ev2.Set(TRawEvent::EKeyDown, EKeyDevice1);
ws.SimulateRawEvent(ev2);
User::After(100000);
ev2.Set(TRawEvent::EKeyUp, EKeyDevice1);
ws.SimulateRawEvent(ev2);
ws.Flush();
}
CTelDial::CTelDial() :
CActive(CActive::EPriorityStandard),iLineStatusPckg(iLineStatus)
{
iLineStatus.iStatus = CTelephony::EStatusUnknown;
}
void CTelDial::DoCancel()
{
itelephony->CancelAsync(CTelephony::EVoiceLineStatusChangeCancel);
}
CTelDial::~CTelDial()
{
delete ilight;
}
//the three new functions
CTelDial* CTelDial::NewLC()
{
CTelDial* self = new (ELeave) CTelDial;
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
CTelDial* CTelDial::NewL()
{
CTelDial* self = CTelDial::NewLC();
CleanupStack::Pop(self);
return self;
}
更多精彩
赞助商链接