How to use ISMSStorage? | developer.brewmp.com How to use ISMSStorage? | developer.brewmp.com

Developer

How to use ISMSStorage?

Forums:

When I used ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_SMSSTORAGE, (void **)&pMe->pISMSStorage) , it failed on the device.According to the document,it needs to modify the mif file to add "SMSMATNCLTENT" on the "Dependencies" tab. but brew tool suite 3.0.0 can not show the "SMSMATNCLTENT" in the "available" table,how to add it?

By the way , i want to delete the new incoming sms after EVT_NOTIFY,is there some example code?

Thanks a lot.

After setting advance privileges, it CreateInstance success.But there is another problem.
if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_SMSSTORAGE, (void **)&pMe->pISMSStorage) !=SUCCESS)
{return FALSE;}
ISMSSTORAGE_DeleteMsg(pMe->pISMSStorage, AEESMS_NV_CDMA,(uint32)0,NULL,NULL);
after ISMSSTORAGE_DeleteMsg, the device reset auto.

After setting advance privileges, it CreateInstance success.But there is another problem.
if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_SMSSTORAGE, (void **)&pMe->pISMSStorage) !=SUCCESS)
{return FALSE;}
ISMSSTORAGE_DeleteMsg(pMe->pISMSStorage, AEESMS_NV_CDMA,(uint32)0,NULL,NULL);
after ISMSSTORAGE_DeleteMsg, the device reset auto.

Provide callback function, error out and try.
ISMSSTORAGE_DeleteMsg(pISMSStorage, AEESMS_NV_CDMA,(uint32)0,&pMe->m_cb, &m_dwStatus);

Provide callback function, error out and try.
ISMSSTORAGE_DeleteMsg(pISMSStorage, AEESMS_NV_CDMA,(uint32)0,&pMe->m_cb, &m_dwStatus);

Hi unreal_wh,
the following would always return with FALSE. The reason being, there is no return code as SUCCESS, pls try using AEE_SUCCESS
if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_SMSSTORAGE, (void **)&pMe->pISMSStorage) !=SUCCESS)
{return FALSE;}

Hi unreal_wh,
the following would always return with FALSE. The reason being, there is no return code as SUCCESS, pls try using AEE_SUCCESS
if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_SMSSTORAGE, (void **)&pMe->pISMSStorage) !=SUCCESS)
{return FALSE;}

Both SUCCESS & AEE_SUCCESS are defined in AEEError.h. This shouldn't be the problem. What error you are getting? Try to print or debug.

Both SUCCESS & AEE_SUCCESS are defined in AEEError.h. This shouldn't be the problem. What error you are getting? Try to print or debug.

Thank for all your replies.
The problem is that AEECallback can not be NULL.So it returned SUCCESS and the pnErr is 0.But it can no remove the 0th item from the inbox indeed.So is anybody success to remove sms from the device's inbox?
There is another problem, I also can not read the device's sms inbox, so is there any suggestion?

Thank for all your replies.
The problem is that AEECallback can not be NULL.So it returned SUCCESS and the pnErr is 0.But it can no remove the 0th item from the inbox indeed.So is anybody success to remove sms from the device's inbox?
There is another problem, I also can not read the device's sms inbox, so is there any suggestion?

unreal_wh wrote:Thank for all your replies.
The problem is that AEECallback can not be NULL.So it returned SUCCESS and the pnErr is 0.But it can no remove the 0th item from the inbox indeed.So is anybody success to remove sms from the device's inbox?
There is another problem, I also can not read the device's sms inbox, so is there any suggestion?
Did you get any answser about reading inbox?
I tried using ISMSStorge on 2 LG and 1 Motorola, none of them gave me back anything from the inbox.
ISMSSTORAGE_GetStroageStatus returned none of the slot used
ISMSSTORAGE_EnumMsgInit succeeded and the first callback of ISMSSTORAGE_EnumNextMsg returned there was no more message
All callback returned SUCCESS result
I've also set the IModel listener but there've been no call to the listener function.

unreal_wh wrote:Thank for all your replies.
The problem is that AEECallback can not be NULL.So it returned SUCCESS and the pnErr is 0.But it can no remove the 0th item from the inbox indeed.So is anybody success to remove sms from the device's inbox?
There is another problem, I also can not read the device's sms inbox, so is there any suggestion?
Did you get any answser about reading inbox?
I tried using ISMSStorge on 2 LG and 1 Motorola, none of them gave me back anything from the inbox.
ISMSSTORAGE_GetStroageStatus returned none of the slot used
ISMSSTORAGE_EnumMsgInit succeeded and the first callback of ISMSSTORAGE_EnumNextMsg returned there was no more message
All callback returned SUCCESS result
I've also set the IModel listener but there've been no call to the listener function.