📄 fldrmgr.h
字号:
/*
* 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.
*
*/
#ifndef _FLDRMGR_H
#define _FLDRMGR_H
#ifndef _aapifile_h
#error You must #include aapifile.h before this file. Otherwise it will not work!
#error Please change the .c file that stopped from compiling because you came here
#error so that it includes aapifile.h before fldrmgr.h.
#endif
#define FM_APPEND 0x7fffffff
#define FM_ALL_FOLDERS 0x7fff
typedef enum
{
FM_RESULT_OK,
FM_RESULT_INDEX_FILE_CONVERTED,
FM_RESULT_INDEX_FILE_FULL,
FM_RESULT_INDEX_FILE_ERROR,
FM_RESULT_ERROR,
FM_RESULT_MEMORY_ERROR,
FM_RESULT_FILE_ERROR,
FM_RESULT_FOLDER_NOT_FOUND,
FM_RESULT_DISK_FULL,
FM_RESULT_MSGID_NOT_FOUND
} FmResult;
typedef enum
{
FM_READ = FILE_OPTION_READ,
FM_WRITE = FILE_OPTION_WRITE,
FM_READ_WRITE = (FILE_OPTION_READ | FILE_OPTION_WRITE)
} FmFileOption;
typedef enum
{
FM_IS_READ,
FM_IS_UNREAD,
FM_IS_ANY
} FmReadStatus;
FmResult fldrmgrCloseList(void *cache);
FmResult fldrmgrCloseMessage(CmnClientId client, UINT32 msgId);
FmResult fldrmgrCreateMsg(CmnClientId client, UINT32 *msgId, UINT16 folderType,
UINT8 isNotif);
FmResult fldrmgrDeleteMsg(CmnClientId client, UINT32 msgId, CMN_BOOL shouldSave);
UINT32 fldrmgrGetDate(CmnClientId client, UINT32 msgId);
FmResult fldrmgrGetFlag(CmnClientId client, UINT32 msgId, UINT8 pos, CMN_BOOL *value);
UINT32 fldrmgrGetId(CmnClientId client, UINT32 msgId, CMN_BOOL isList);
FmResult fldrmgrGetList(void *cache, UINT32 startPos, UINT32 bytesToRead,
UINT32 *bytesRead, unsigned char *data);
FmResult fldrmgrGetListSize(CmnClientId client, UINT32 msgId, UINT32 *ListSize);
FmResult fldrmgrGetMessage(CmnClientId client, UINT32 msgId, UINT32 startPos,
UINT32 bytesToRead, UINT32 *bytesRead, unsigned char *data);
FmResult fldrmgrGetMessageSize(CmnClientId client, UINT32 msgId,
UINT32 *messageSize);
UINT8 fldrmgrGetMetadata(CmnClientId client, UINT32 msgId);
FmResult fldrmgrGetMsgDataList(CmnClientId client, UINT8 ignoreFilter,
UINT16 folderType, UINT32 startPos, UINT32 maxItems, UINT32 *items,
UINT32 arr[], UINT32 dates[], UINT8 metadata[], UINT8 attributes[]);
FmResult fldrmgrGetMsgIdList(CmnClientId client, UINT16 folderType,
UINT32 maxItems, UINT32 *items, UINT32 arr[]);
FmResult fldrmgrGetNumberOfMsg(CmnClientId client, UINT16 folderType,
FmReadStatus readStatus, UINT32 *items);
FmResult fldrmgrIndexTableSave(int save);
FmResult fldrmgrInit(CmnClientId client);
FmResult fldrmgrMoveMsg(CmnClientId client, UINT32 msgId, UINT16 dest);
FmResult fldrmgrOpenList(CmnClientId client, UINT32 msgId, void **cache,
FmFileOption option);
FmResult fldrmgrOpenMessage(CmnClientId client, UINT32 msgId,
FmFileOption option);
FmResult fldrmgrSetDate(CmnClientId client, UINT32 msgId, UINT32 date);
FmResult fldrmgrSetFlag(CmnClientId client, UINT32 msgId, UINT8 pos, CMN_BOOL value);
FmResult fldrmgrSetFlagRead(CmnClientId client, UINT32 msgId, CMN_BOOL value);
FmResult fldrmgrSetFlagValid(CmnClientId client, UINT32 msgId, CMN_BOOL value);
FmResult fldrmgrSetList(void *cache, unsigned char *data, UINT32 dataSize,
UINT32 startPos);
FmResult fldrmgrSetListSize(CmnClientId client, UINT32 msgId, UINT32 size);
FmResult fldrmgrSetMessage(CmnClientId client, UINT32 msgId, unsigned char *data,
UINT32 dataSize, UINT32 startPos);
FmResult fldrmgrSetMessageSize(CmnClientId client, UINT32 msgId, UINT32 size);
FmResult fldrmgrSetMetadata(CmnClientId client, UINT32 msgId, UINT8 value);
FmResult fldrmgrTerminate(CmnClientId client);
#ifdef _DEBUG
void fldrmgrTestClose(UINT32 fileId);
FmResult fldrmgrTestInsert(UINT16 folder, UINT32 fileId, UINT32 infoFileId);
FmResult fldrmgrTestOpen(UINT32 fileId);
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -