/** * Examine the DictQuery and farm out the search to the specialized dict * managers. Note that a global search limit will probably be implemented * either here or in the DictFile implementations... probably both * * @param query the query, see DictQuery documentation */ EntryList *DictionaryManager::doSearch( const DictQuery &query ) const { EntryList *ret = new EntryList(); #if 0 if( query.getMeaning() == "(libkiten)" ) { ret->append( new debug_entry( "Summary of libkiten data" ) ); foreach( const QString &dict, listDictionaries() ) { ret->append( new debug_entry( dict ) ); }
Profile::EntryList Profile::list(List type) { EntryList parentList; if (m_parent) parentList = m_parent->list(type); EntryList list = parentList; for (EntryList::iterator it = list.begin(); it != list.end(); ++it) (*it).derived = true; QStringList &personalList = listByType(type); for (QStringList::const_iterator it = personalList.begin(); it != personalList.end(); ++it) list.append(Entry(*it, false)); return list; }