29,030
社区成员
发帖
与我相关
我的任务
分享
#include mscfwrapper.h
Link against mscfwrapper.lib
TBuf<5> areacode;
areacode.Append(_L("988"));
TInt delaytime = 20;
iWrapper = CMSCFWrapper::NewL();
iWrapper->SetCallForwardingL(areacode,
CMSCFWrapper::ECallForwardingOff, delaytime); // set call diverting on for all calls
delete iWrapper;
TBuf<5> area;
area.Append(_L("987")); // area code max 5 digits
TInt delaytime = 10; // delay in seconds
CMSCFWrapper* iWrapper = CMSCFWrapper::NewL(); // construct the wrapper
//iLogger.Write(_L("CPhCltUssd::NewL"));
CleanupStack::PushL( iWrapper );
iWrapper->SetCallForwardingL(area, CMSCFWrapper::ECallForwardingBusy, delaytime);
//iLogger.Write(_L("SetCallForwardingL"));
// set call diverting on for all calls
// If error occurs, this method leaves
// Handle leaving eg. by trapping
CleanupStack::PopAndDestroy(iWrapper);