/* SwordDict.h - Sword API wrapper for lexicons and Dictionaries. Copyright 2008 Manfred Bergmann Based on code by Will Thimbleby This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (http://www.gnu.org/licenses/gpl.html) */ #import "SwordModule.h" @class SwordManager; @interface SwordDictionary : SwordModule { /** only keys are buffered here */ NSMutableArray *keys; BOOL loaded; } - (id)initWithName:(NSString *)aName swordManager:(SwordManager *)aManager; #ifdef __cplusplus - (id)initWithSWModule:(sword::SWModule *)aModule swordManager:(SwordManager *)aManager; #endif - (NSArray *)allKeys; - (NSString *)entryForKey:(NSString *)aKey; - (NSString *)fullRefName:(NSString *)ref; - (BOOL)keysCached; - (BOOL)keysLoaded; - (void)releaseKeys; - (void)removeCache; @end