Database interface
From Mok HTPC wiki
| Table of contents |
[edit]
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 |
[edit]
Basic functions
[edit]
create
create(..)
[edit]
destroy
destroy(..)
[edit]
Use functions
[edit]
scan(structure with the paths and such)
[edit]
setIndex
[edit]
getIndex
[edit]
read(typeparam)
typeparam defines the type of information to read
- song
- path
- filename
- cover
- URL
- .. lot's of things missing
type TTypeParam
[edit]
write(typeparam, value)
The database values can be changed.
- see TTypeParam
Exceptions that can not be changed are:
- filename
- path
