发送USSD信息
文章信息
- 详细描述
S60第三版FP2的SDK API Plug-in包含了Archived:Phone Client USSD API,这个Phone Client USSD API可以允许编程发送USSD(Unstructured Supplementary Service Data)请求。
- 解决方案
#include <CPhCltUssd.h> // link against phoneclient.lib
// Construct CPhCltUssd and pass ETrue
// as parameter (notes are shown on screen)
CPhCltUssd* ussdClient = CPhCltUssd::NewL( ETrue );
CleanupStack::PushL( ussdClient );
TBuf<16> aMessage;
aMessage.Copy( _L("*101#") ); // USSD code for checking prepaid balance
TInt result = ussdClient->SendUssd( aMessage );
...
CleanupStack::PopAndDestroy( ussdClient );


(no comments yet)