1
/******************************************************************************
2
* swsearchable.h - definition of class SWSearchable used to provide an
3
* interface for objects that be searched.
5
* $Id: swsearchable.cpp 1959 2006-08-28 00:39:56Z scribe $
7
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
8
* CrossWire Bible Society
10
* Tempe, AZ 85280-2528
12
* This program is free software; you can redistribute it and/or modify it
13
* under the terms of the GNU General Public License as published by the
14
* Free Software Foundation version 2.
16
* This program is distributed in the hope that it will be useful, but
17
* WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
23
#include <swsearchable.h>
28
void SWSearchable::nullPercent(char percent, void *percentUserData) {}
30
SWSearchable::SWSearchable() {
34
SWSearchable::~SWSearchable() {
37
// special search framework
38
signed char SWSearchable::createSearchFramework(void (*percent)(char, void *), void *percentUserData) {
43
void SWSearchable::deleteSearchFramework() {
47
bool SWSearchable::isSearchOptimallySupported(const char *istr, int searchType, int flags, SWKey *scope) {
49
search(istr, searchType, flags, scope, &retVal);