|
Mac OS 9
|
Public search interface for the Find by Content shared library. More...
Go to the source code of this file.
Macros | |
| #define | NewFBCCallbackUPP(userRoutine) (userRoutine) |
| #define | DisposeFBCCallbackUPP(userUPP) |
| #define | InvokeFBCCallbackUPP(phase, percentDone, data, userUPP) (*userUPP)(phase, percentDone, data) |
Typedefs | |
| typedef struct OpaqueFBCSearchSession * | FBCSearchSession |
| typedef char * | FBCWordItem |
| typedef FBCWordItem * | FBCWordList |
| typedef float | percentDone |
| typedef float void * | data |
Functions | |
| typedef | CALLBACK_API_C (Boolean, FBCCallbackProcPtr)(UInt16 phase |
| typedef | TVECTOR_UPP_TYPE (FBCCallbackProcPtr) FBCCallbackUPP |
| FBCCallbackUPP | NewFBCCallbackUPP (FBCCallbackProcPtr userRoutine) |
| void | DisposeFBCCallbackUPP (FBCCallbackUPP userUPP) |
| Boolean | InvokeFBCCallbackUPP (UInt16 phase, float percentDone, void *data, FBCCallbackUPP userUPP) |
| void | FBCSetCallback (FBCCallbackUPP fn, void *data) |
| void | FBCSetHeapReservation (UInt32 bytes) |
| Boolean | FBCVolumeIsIndexed (SInt16 theVRefNum) |
| Boolean | FBCVolumeIsRemote (SInt16 theVRefNum) |
| OSErr | FBCVolumeIndexTimeStamp (SInt16 theVRefNum, UInt32 *timeStamp) |
| OSErr | FBCVolumeIndexPhysicalSize (SInt16 theVRefNum, UInt32 *size) |
| OSErr | FBCCreateSearchSession (FBCSearchSession *searchSession) |
| OSErr | FBCAddAllVolumesToSession (FBCSearchSession theSession, Boolean includeRemote) |
| OSErr | FBCSetSessionVolumes (FBCSearchSession theSession, const SInt16 vRefNums[], UInt16 numVolumes) |
| OSErr | FBCAddVolumeToSession (FBCSearchSession theSession, SInt16 vRefNum) |
| OSErr | FBCRemoveVolumeFromSession (FBCSearchSession theSession, SInt16 vRefNum) |
| OSErr | FBCGetSessionVolumeCount (FBCSearchSession theSession, UInt16 *count) |
| OSErr | FBCGetSessionVolumes (FBCSearchSession theSession, SInt16 vRefNums[], UInt16 *numVolumes) |
| OSErr | FBCCloneSearchSession (FBCSearchSession original, FBCSearchSession *clone) |
| OSErr | FBCDoQuerySearch (FBCSearchSession theSession, char *queryText, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords) |
| OSErr | FBCDoCFStringSearch (FBCSearchSession theSession, CFStringRef queryString, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords) |
| OSErr | FBCDoExampleSearch (FBCSearchSession theSession, const UInt32 *exampleHitNums, UInt32 numExamples, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords) |
| OSErr | FBCBlindExampleSearch (FSSpec examples[], UInt32 numExamples, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords, Boolean allIndexes, Boolean includeRemote, FBCSearchSession *theSession) |
| OSErr | FBCGetHitCount (FBCSearchSession theSession, UInt32 *count) |
| OSErr | FBCGetHitDocument (FBCSearchSession theSession, UInt32 hitNumber, FSSpec *theDocument) |
| OSErr | FBCGetHitDocumentRef (FBCSearchSession theSession, UInt32 hitNumber, FSRef *theDocument) |
| OSErr | FBCGetHitScore (FBCSearchSession theSession, UInt32 hitNumber, float *score) |
| OSErr | FBCGetMatchedWords (FBCSearchSession theSession, UInt32 hitNumber, UInt32 *wordCount, FBCWordList *list) |
| OSErr | FBCGetTopicWords (FBCSearchSession theSession, UInt32 hitNumber, UInt32 *wordCount, FBCWordList *list) |
| OSErr | FBCSummarize (void *inBuf, UInt32 inLength, void *outBuf, UInt32 *outLength, UInt32 *numSentences) |
| OSErr | FBCReleaseSessionHits (FBCSearchSession theSession) |
| OSErr | FBCDestroyWordList (FBCWordList theList, UInt32 wordCount) |
| OSErr | FBCDestroySearchSession (FBCSearchSession theSession) |
| OSErr | FBCIndexItems (FSSpecArrayPtr theItems, UInt32 itemCount) |
| OSErr | FBCIndexItemsInLanguages (FSSpecArrayPtr theItems, UInt32 itemCount, UInt32 languageHighBits, UInt32 languageLowBits) |
| OSErr | FBCFindIndexFileFolderForFolder (FSRef *inFolder, FSRef *outFolder) |
| OSErr | FBCDeleteIndexFileForFolder (const FSRef *folder) |
Public search interface for the Find by Content shared library.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| typedef struct OpaqueFBCSearchSession* FBCSearchSession |
Pointer types These point to memory allocated by the FBC shared library, and must be deallocated by calls that are defined below.
| anonymous enum |
Language constants used with FBCIndexItemsInLanguages: these numbers are bits in a 64-bit array that consists of two UInt32 words. In the current implementation the low word is always 0, so values for the high word are given. If both UInt32 words are 0, the default value of kDefaultLanguagesHighWord is used.
| anonymous enum |
Phase values These values are passed to the client's callback function to indicate what the FBC code is doing.
| typedef CALLBACK_API_C | ( | Boolean | , |
| FBCCallbackProcPtr | |||
| ) |
Callback function type for progress reporting and cancelation during searching and indexing. The client's callback function should call WaitNextEvent; a "sleep" value of 1 is suggested. If the callback function wants to cancel the current operation (indexing, search, or doc-terms retrieval) it should return true.
| void DisposeFBCCallbackUPP | ( | FBCCallbackUPP | userUPP | ) |
Availability:
| OSErr FBCAddAllVolumesToSession | ( | FBCSearchSession | theSession, |
| Boolean | includeRemote | ||
| ) |
Availability:
| OSErr FBCAddVolumeToSession | ( | FBCSearchSession | theSession, |
| SInt16 | vRefNum | ||
| ) |
Availability:
| OSErr FBCBlindExampleSearch | ( | FSSpec | examples[], |
| UInt32 | numExamples, | ||
| const FSSpec | targetDirs[], | ||
| UInt32 | numTargets, | ||
| UInt32 | maxHits, | ||
| UInt32 | maxHitWords, | ||
| Boolean | allIndexes, | ||
| Boolean | includeRemote, | ||
| FBCSearchSession * | theSession | ||
| ) |
Availability:
| OSErr FBCCloneSearchSession | ( | FBCSearchSession | original, |
| FBCSearchSession * | clone | ||
| ) |
Availability:
| OSErr FBCCreateSearchSession | ( | FBCSearchSession * | searchSession | ) |
Create & configure a search session FBCCreateSearchSession()
Availability:
| OSErr FBCDeleteIndexFileForFolder | ( | const FSRef * | folder | ) |
(OS X only) Given a folder, delete the index file that indexes it FBCDeleteIndexFileForFolder()
Availability:
| OSErr FBCDestroySearchSession | ( | FBCSearchSession | theSession | ) |
Availability:
| OSErr FBCDestroyWordList | ( | FBCWordList | theList, |
| UInt32 | wordCount | ||
| ) |
Availability:
| OSErr FBCDoCFStringSearch | ( | FBCSearchSession | theSession, |
| CFStringRef | queryString, | ||
| const FSSpec | targetDirs[], | ||
| UInt32 | numTargets, | ||
| UInt32 | maxHits, | ||
| UInt32 | maxHitWords | ||
| ) |
Availability:
| OSErr FBCDoExampleSearch | ( | FBCSearchSession | theSession, |
| const UInt32 * | exampleHitNums, | ||
| UInt32 | numExamples, | ||
| const FSSpec | targetDirs[], | ||
| UInt32 | numTargets, | ||
| UInt32 | maxHits, | ||
| UInt32 | maxHitWords | ||
| ) |
Availability:
| OSErr FBCDoQuerySearch | ( | FBCSearchSession | theSession, |
| char * | queryText, | ||
| const FSSpec | targetDirs[], | ||
| UInt32 | numTargets, | ||
| UInt32 | maxHits, | ||
| UInt32 | maxHitWords | ||
| ) |
Execute a search FBCDoQuerySearch()
Availability:
(OS X only) Given a folder, find the folder that contains the index file of the given index FBCFindIndexFileFolderForFolder()
Availability:
| OSErr FBCGetHitCount | ( | FBCSearchSession | theSession, |
| UInt32 * | count | ||
| ) |
Get information about hits [wrapper for THitItem C++ API] FBCGetHitCount()
Availability:
| OSErr FBCGetHitDocument | ( | FBCSearchSession | theSession, |
| UInt32 | hitNumber, | ||
| FSSpec * | theDocument | ||
| ) |
Availability:
| OSErr FBCGetHitDocumentRef | ( | FBCSearchSession | theSession, |
| UInt32 | hitNumber, | ||
| FSRef * | theDocument | ||
| ) |
Availability:
| OSErr FBCGetHitScore | ( | FBCSearchSession | theSession, |
| UInt32 | hitNumber, | ||
| float * | score | ||
| ) |
Availability:
| OSErr FBCGetMatchedWords | ( | FBCSearchSession | theSession, |
| UInt32 | hitNumber, | ||
| UInt32 * | wordCount, | ||
| FBCWordList * | list | ||
| ) |
Availability:
| OSErr FBCGetSessionVolumeCount | ( | FBCSearchSession | theSession, |
| UInt16 * | count | ||
| ) |
Availability:
| OSErr FBCGetSessionVolumes | ( | FBCSearchSession | theSession, |
| SInt16 | vRefNums[], | ||
| UInt16 * | numVolumes | ||
| ) |
Availability:
| OSErr FBCGetTopicWords | ( | FBCSearchSession | theSession, |
| UInt32 | hitNumber, | ||
| UInt32 * | wordCount, | ||
| FBCWordList * | list | ||
| ) |
Availability:
| OSErr FBCIndexItems | ( | FSSpecArrayPtr | theItems, |
| UInt32 | itemCount | ||
| ) |
Index one or more files and/or folders FBCIndexItems()
Availability:
| OSErr FBCIndexItemsInLanguages | ( | FSSpecArrayPtr | theItems, |
| UInt32 | itemCount, | ||
| UInt32 | languageHighBits, | ||
| UInt32 | languageLowBits | ||
| ) |
Availability:
| OSErr FBCReleaseSessionHits | ( | FBCSearchSession | theSession | ) |
Deallocate hit lists, word arrays, and search sessions FBCReleaseSessionHits()
Availability:
| OSErr FBCRemoveVolumeFromSession | ( | FBCSearchSession | theSession, |
| SInt16 | vRefNum | ||
| ) |
Availability:
| void FBCSetCallback | ( | FBCCallbackUPP | fn, |
| void * | data | ||
| ) |
Set the callback function for progress reporting and cancelation during searching and indexing, and set the amount of heap space to reserve for the client's use when FBC allocates memory. FBCSetCallback()
Availability:
| void FBCSetHeapReservation | ( | UInt32 | bytes | ) |
Availability:
| OSErr FBCSetSessionVolumes | ( | FBCSearchSession | theSession, |
| const SInt16 | vRefNums[], | ||
| UInt16 | numVolumes | ||
| ) |
Availability:
| OSErr FBCSummarize | ( | void * | inBuf, |
| UInt32 | inLength, | ||
| void * | outBuf, | ||
| UInt32 * | outLength, | ||
| UInt32 * | numSentences | ||
| ) |
Summarize a buffer of text FBCSummarize()
Availability:
| OSErr FBCVolumeIndexPhysicalSize | ( | SInt16 | theVRefNum, |
| UInt32 * | size | ||
| ) |
Availability:
| OSErr FBCVolumeIndexTimeStamp | ( | SInt16 | theVRefNum, |
| UInt32 * | timeStamp | ||
| ) |
Availability:
| Boolean FBCVolumeIsIndexed | ( | SInt16 | theVRefNum | ) |
Find out whether a volume is indexed, the date & time of its last completed update, and its physical size. FBCVolumeIsIndexed()
Availability:
| Boolean FBCVolumeIsRemote | ( | SInt16 | theVRefNum | ) |
Availability:
| Boolean InvokeFBCCallbackUPP | ( | UInt16 | phase, |
| float | percentDone, | ||
| void * | data, | ||
| FBCCallbackUPP | userUPP | ||
| ) |
Availability:
| FBCCallbackUPP NewFBCCallbackUPP | ( | FBCCallbackProcPtr | userRoutine | ) |
Availability: