DocsetRegistry
TheDocsetRegistry class manages a collection of docsets. It handles loading/unloading docsets, performing searches across all docsets, and emitting signals when docsets change.
Header
Namespace
Inheritance
Constructor
DocsetRegistry()
parent- Optional parent QObject
Model Access
model()
Storage Path
storagePath()
setStoragePath()
path- The directory path containing docsets
Fuzzy Search Settings
isFuzzySearchEnabled()
true if fuzzy search is enabled
setFuzzySearchEnabled()
enabled- Whether to enable fuzzy search
Docset Query Methods
count()
contains()
name- The docset name to check
true if the docset exists
Example:
names()
Docset Management
loadDocset()
path- File system path to the docset
unloadDocset()
name- The name of the docset to unload
unloadAllDocsets()
Docset Access
docset() (by name)
name- The docset name
nullptr if not found
Example:
docset() (by index)
index- The index of the docset
nullptr if index is invalid
docsetForUrl()
url- The documentation URL
nullptr if not found
Example:
docsets()
Search Methods
search()
searchCompleted signal.
Parameters:
query- The search query string (may include docset filters like “python:list”)
queryResults()
Signals
docsetLoaded
name- The name of the loaded docset
docsetAboutToBeUnloaded
name- The name of the docset being unloaded
docsetUnloaded
name- The name of the unloaded docset
searchCompleted
results- The list of search results
Related Classes
- Docset - Individual docset class
- SearchResult - Search result structure
- SearchQuery - Search query parser