SKYENGINE API  参考手册返回目录  

 
int32 mr_platEx

(int32 code = 1104,
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB* cb
)



Description
删除一条短信。
Parameters

Name Description
input T_DSM_DELETE_SMS_REQ数据结构指针
input_len T_DSM_DELETE_SMS_REQ数据结构大小
output
output_len
cb

Return Value

MR_WAITING                         请求成功
MR_FAILED                            请求失败
MR_IGNORE                           不支持该功能

Remarks

删除结果通过mr_event通知应用,各个参数的含义如下:
第一个:MR_SMS_OP_EVENT;
第二个:MR_SMS_OP_DELETE;
第三个:MR_SUCCESS    删除成功
          MR_FAILED        删除失败


T_DSM_DELETE_SMS_REQ数据结构:
typedef struct
{
     int32 index;                       //显示时候索引
     int8 type;                         //MR_SMS_INBOX, MR_SMS_OUTBOX
} T_DSM_DELETE_SMS_REQ;

Example

/*mrp code*/

T_DSM_DELETE_SMS_REQ delReq = { 0 };
delReq.index = 0;
delReq.type = MR_SMS_OUTBOX;
mrc_platEx( 1104, (uint8* )&delReq, sizeof( T_DSM_DELETE_SMS_REQ ), NULL, NULL, NULL );

mr_event事件处理:
case MR_SMS_OP_EVENT:
{
switch ( wParam )
{

case MR_SMS_OP_DELETE:
  {
      //add your code here
  }
  break;
default:
  break;
}
}

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录