⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ndb.h

📁 CD_高级PALM编程
💻 H
字号:
/********************************************************************* FILE:				NDB.H** DESCRIPTION:	The Native Database Interface module definitions** VERSION:		1.0**********************************************************************/#ifndef __NDB_H#define __NDB_H#ifndef noErr #define noErr ( 0 )#endiftypedef enum _ndbDatabaseEnum{	ndbInvalid = 0,	ndbAddress,	ndbMemo,	ndbDatebook,	ndbToDo,	ndbLastDatabase				// Used internally by reference counting} NDBDatabaseEnum;typedef enum _ndbPropertyEnum{	ndbPropNameInvalid = 0,	ndbPropNameLastName,	ndbPropNameFirstName,	ndbPropNameTitle,	ndbPropNameCompany,	ndbPropNameWork,	ndbPropNameHome,	ndbPropNameFax,	ndbPropNameOther,	ndbPropNameEmail,	ndbPropNameMain,	ndbPropNamePager,	ndbPropNameMobile,	ndbPropNameAddress,	ndbPropNameCity,	ndbPropNameState,	ndbPropNameZipCode,	ndbPropNameCountry,	ndbPropNameNote,	ndbPropNameTime,	ndbPropNameDate,	ndbPropNameDesc,	ndbPropNamePriority,	ndbPropNameDueDate,	ndbPropNameCategory} NDBPropertyEnum;// To contain search resultstypedef struct _ndbRecord{	NDBDatabaseEnum database;				// What database is this?	CharPtr targetP;						// What was sought?	MemHandle recordH;						// Current record handle (if any)	UInt16 recordIdx;						// Current record index (if known)} NDBRecordType;// The errors that can occurtypedef enum _ndbErrorEnum{	ndbErrorInvalid = appErrorClass,	ndbErrorSearchOver,	ndbErrorRecordInvalid,	ndbErrorNoPreviousRecord,	ndbErrorLast} NDBErrorEnum;// prototypesMemHandle NDBFindRecordWith							// (out) pointer to result(	NDBDatabaseEnum db,		// (in) database to search	CharPtr keyP,			// (in) search target	Err *errP				// (in) where to place error);MemHandle NDBRecordGetNext	// (out) Handle to next record(	MemHandle recordH,		// (in) handle to current record	Err *errP				// (in) where to place error);MemHandle NDBRecordGetPrev	// (out) Handle to next record(	MemHandle recordH,		// (in) handle to current record	Err *errP				// (in) where to place error);MemHandle NDBRecordGetHandle // (out) Handle(	MemHandle recordH,		// (in) record handle tor return	Err *errP				// (in) where to place error);MemHandle NDBRecordGetText // (out) result string(	MemHandle recordH,	Err *errP				// (in) where to place error);void NDBRecordFree			// (out) nothing(	MemHandle recordH,	Err *errP				// (in) where to place error);MemHandle NDBRecordGetProp	// (out) handle to string(	MemHandle recordH,		// (in) Record of interest	NDBPropertyEnum prop,	// (in) desired property	Err *errP				// (in) where to place error);Boolean NDBRecordIsValid	// (out) true if valid(	MemHandle recordH,		// (in) record to inspect	Err *errP				// (in) where to place error);#endif /* NDB_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -