📄 sapimms.c
字号:
/*
* Copyright (C) Obigo AB, 2002-2005.
* All rights reserved.
*
* This software is covered by the license agreement between
* the end user and Obigo AB, and may be
* used and copied only in accordance with the terms of the
* said agreement.
*
* Obigo AB assumes no responsibility or
* liability for any errors or inaccuracies in this software,
* or any consequential, incidental or indirect damage arising
* out of the use of the software.
*
*/
#include "cansilib.h"
#include "cmnconf.h"
#include "aapifile.h"
#include "aapicmn.h"
#include "fldrmgr.h"
#include "mmsconf.h"
#include "mmstypes.h"
#include "aapimms.h"
#include "capimms.h"
#include "msig.h"
#include "mnotify.h"
#include "mutils.h"
#include "mrptr.h"
void MMSs_deleteNotificationQueue(void)
{
MMS_LOG_E(("MMSc_deleteNotificationQueue(void)\n"));
msrNotifyDeleteQueue();
msrNotifyDeleteTable();
}
void MMSs_deleteReportFile(void)
{
MMS_LOG_E(("MMSc_deleteReportFile(void)\n"));
mrpthFileDelete();
}
MmsResult MMSs_getFileId( MmsMsgId id, CMN_BOOL wantInfoFile, UINT32 *fileId)
{
MmsResult result = MMS_RESULT_OK;
*fileId = fldrmgrGetId( CMN_CLIENT_MMS, id, wantInfoFile);
if (*fileId == 0UL)
{
result = MMS_RESULT_FILE_NOT_FOUND;
}
return result;
}
MmsResult MMSs_getMessageMetadata(MmsMsgId msgId, UINT8 *metadata)
{
MmsResult result = MMS_RESULT_OK;
*metadata = fldrmgrGetMetadata( CMN_CLIENT_MMS, msgId);
if (*metadata == 0xff)
{
result = MMS_RESULT_MESSAGE_ID_NOT_FOUND;
*metadata = 0;
}
return result;
}
MmsResult MMSs_getNumberOfMessages( MmsFolderType folder, UINT32 *number)
{
FmResult fmResult;
fmResult = fldrmgrGetNumberOfMsg( CMN_CLIENT_MMS, (UINT16)folder,
FM_IS_ANY, number);
return checkFolderError(fmResult);
}
MmsResult MMSs_getNumberOfUnreadMessages( MmsFolderType folder, UINT32 *number)
{
FmResult fmResult;
fmResult = fldrmgrGetNumberOfMsg( CMN_CLIENT_MMS, (UINT16)folder,
FM_IS_UNREAD, number);
return checkFolderError(fmResult);
}
MmsResult MMSs_indexTableSave(MmsSaveFile save)
{
MMS_LOG_E(("MMSs_indexTableSave(%d)\n", (int)save));
return checkFolderError(fldrmgrIndexTableSave((int)save));
}
MmsResult MMSs_setMessageMetadata( MmsMsgId msgId, UINT8 metadata)
{
FmResult fmResult;
fmResult = fldrmgrSetMetadata( CMN_CLIENT_MMS, msgId, metadata);
return checkFolderError( fmResult);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -