#include <trackdao.h>
List of all members.
Detailed Description
Definition at line 57 of file trackdao.h.
Constructor & Destructor Documentation
The 'config object' is necessary because users decide ID3 tags get synchronized on track metadata change
Definition at line 21 of file trackdao.cpp.
TrackDAO::~TrackDAO |
( |
| ) |
[virtual] |
Member Function Documentation
int TrackDAO::addTrack |
( |
QString |
absoluteFilePath, |
|
|
bool |
unremove |
|
) |
| |
int TrackDAO::addTrack |
( |
QFileInfo & |
fileInfo, |
|
|
bool |
unremove |
|
) |
| |
void TrackDAO::addTracks |
( |
QList< TrackInfoObject * > |
tracksToAdd, |
|
|
bool |
unremove |
|
) |
| |
void TrackDAO::clearCache |
( |
| ) |
[slot] |
void TrackDAO::detectMovedFiles |
( |
| ) |
|
Look for moved files. Look for files that have been marked as "deleted on disk" and see if another "file" with the same name and filesize exists in the track_locations table. That means the file has moved instead of being deleted outright, and so we can salvage your existing metadata that you have in your DB (like cue points, etc.).
Definition at line 905 of file trackdao.cpp.
void TrackDAO::finish |
( |
| ) |
|
TrackPointer TrackDAO::getTrack |
( |
int |
id, |
|
|
bool |
cacheOnly = false |
|
) |
| const |
int TrackDAO::getTrackId |
( |
QString |
absoluteFilePath | ) |
|
Retrieve the track id for the track that's located at "location" on disk.
- Returns:
- the track id for the track located at location, or -1 if the track is not in the database.
Definition at line 57 of file trackdao.cpp.
QString TrackDAO::getTrackLocation |
( |
int |
trackId | ) |
|
Some code (eg. drag and drop) needs to just get a track's location, and it's not worth retrieving a whole TrackInfoObject.
Definition at line 79 of file trackdao.cpp.
void TrackDAO::initialize |
( |
| ) |
[virtual] |
void TrackDAO::invalidateTrackLocationsInLibrary |
( |
QString |
libraryPath | ) |
|
Mark all the tracks whose paths begin with libraryPath as invalid. That means we'll need to later check that those tracks actually (still) exist as part of the library scanning procedure.
Definition at line 825 of file trackdao.cpp.
bool TrackDAO::isDirty |
( |
int |
trackId | ) |
|
void TrackDAO::markTrackLocationAsVerified |
( |
QString |
location | ) |
|
void TrackDAO::markTrackLocationsAsDeleted |
( |
QString |
directory | ) |
|
void TrackDAO::markTracksInDirectoryAsVerified |
( |
QString |
directory | ) |
|
void TrackDAO::markUnverifiedTracksAsDeleted |
( |
| ) |
|
void TrackDAO::removeTrack |
( |
int |
id | ) |
|
Removes a track from the library track collection.
Definition at line 468 of file trackdao.cpp.
void TrackDAO::removeTracks |
( |
QList< int > |
ids | ) |
|
void TrackDAO::saveDirtyTracks |
( |
| ) |
[slot] |
void TrackDAO::setDatabase |
( |
QSqlDatabase & |
database | ) |
[inline] |
void TrackDAO::trackChanged |
( |
int |
trackId | ) |
[signal] |
void TrackDAO::trackClean |
( |
int |
trackId | ) |
[signal] |
void TrackDAO::trackDirty |
( |
int |
trackId | ) |
[signal] |
bool TrackDAO::trackExistsInDatabase |
( |
QString |
absoluteFilePath | ) |
|
Check if a track exists in the library table already.
- Parameters:
-
file_location | The full path to the track on disk, including the filename. |
- Returns:
- true if the track is found in the library table, false otherwise.
Definition at line 101 of file trackdao.cpp.
void TrackDAO::tracksAdded |
( |
QSet< int > |
trackIds | ) |
[signal] |
void TrackDAO::tracksRemoved |
( |
QSet< int > |
trackIds | ) |
[signal] |
void TrackDAO::unremoveTrack |
( |
int |
trackId | ) |
|
The documentation for this class was generated from the following files:
- /home/maxime/Projets/Mixxx/1.10/mixxx/src/library/dao/trackdao.h
- /home/maxime/Projets/Mixxx/1.10/mixxx/src/library/dao/trackdao.cpp