Database interface
From Mok HTPC wiki
Contents |
Main information
In the current implementation the database is a simple set of functions that access a static table with the information. The new database interface is to wrap these functions inside an object. The benefits are that the standardized and protected interface is simpler to access from external plugins and the core module itself.
| Abbreviation/Term | Description |
|---|---|
| N/A | Not Applicable |
| N/A | Not Applicable |
Basic functions
create
create(..)
destroy
destroy(..)
Use functions
scan(structure with the paths and such)
setIndex
getIndex
read(typeparam)
typeparam defines the type of information to read
- song
- path
- filename
- cover
- URL
- .. lot's of things missing
type TTypeParam
write(typeparam, value)
The database values can be changed.
- see TTypeParam
Exceptions that can not be changed are:
- filename
- path