![]() |
Mixxx
|
#include <trackinfoobject.h>
Public Slots | |
void | slotCueUpdated () |
Signals | |
void | wavesummaryUpdated (TrackInfoObject *) |
void | bpmUpdated (double bpm) |
void | beatsUpdated () |
void | ReplayGainUpdated (double replaygain) |
void | cuesUpdated () |
void | changed (TrackInfoObject *pTrack) |
void | dirty (TrackInfoObject *pTrack) |
void | clean (TrackInfoObject *pTrack) |
void | save (TrackInfoObject *pTrack) |
Public Member Functions | |
TrackInfoObject (const QString sLocation="", bool parseHeader=true) | |
TrackInfoObject (QFileInfo &fileInfo, bool parseHeader=true) | |
TrackInfoObject (const QDomNode &) | |
virtual | ~TrackInfoObject () |
bool | isValid () const |
int | parse () |
void | writeToXML (QDomDocument &, QDomElement &) |
int | getDuration () const |
void | setDuration (int) |
QString | getDurationStr () const |
QString | getLocation () const |
QString | getDirectory () const |
QString | getFilename () const |
QDateTime | getCreateDate () const |
int | getLength () const |
bool | exists () const |
float | getReplayGain () const |
void | setReplayGain (float) |
float | getBpm () const |
void | setBpm (float) |
QString | getBpmStr () const |
bool | getBpmConfirm () const |
void | setBpmConfirm (bool confirm=true) |
bool | getHeaderParsed () const |
void | setHeaderParsed (bool parsed=true) |
QString | getComment () const |
void | setComment (QString) |
QString | getType () const |
void | setType (QString) |
int | getBitrate () const |
QString | getBitrateStr () const |
void | setBitrate (int) |
void | setBeatFirst (float) |
float | getBeatFirst () const |
void | setSampleRate (int iSampleRate) |
int | getSampleRate () const |
void | setChannels (int iChannels) |
int | getChannels () const |
QString | getInfo () const |
QDateTime | getDateAdded () const |
void | setDateAdded (QDateTime dateAdded) |
QString | getTitle () const |
void | setTitle (QString) |
QString | getArtist () const |
void | setArtist (QString) |
QString | getAlbum () const |
void | setAlbum (QString) |
QString | getYear () const |
void | setYear (QString) |
QString | getGenre () const |
void | setGenre (QString) |
QString | getTrackNumber () const |
void | setTrackNumber (QString) |
int | getTimesPlayed () const |
void | setTimesPlayed (int t) |
void | incTimesPlayed () |
bool | getPlayed () const |
void | setPlayed (bool) |
int | getId () const |
int | getRating () const |
void | setRating (int) |
QString | getKey () const |
void | setKey (QString) |
QString | getURL () |
void | setURL (QString url) |
void | setVisualWaveform (QVector< float > *pWave) |
QVector< float > * | getVisualWaveform () |
void | setVisualResampleRate (double dVisualResampleRate) |
double | getVisualResampleRate () |
void | setWaveSummary (const QByteArray *pWave, bool updateUI=true) |
const QByteArray * | getWaveSummary () |
void | setBpmControlObject (ControlObject *p) |
void | setCuePoint (float cue) |
float | getCuePoint () |
Cue * | addCue () |
void | removeCue (Cue *cue) |
const QList< Cue * > & | getCuePoints () |
void | setCuePoints (QList< Cue * > cuePoints) |
bool | isDirty () |
void | doSave () |
bool | locationChanged () |
void | setLocation (QString location) |
BeatsPointer | getBeats () const |
void | setBeats (BeatsPointer beats) |
const Segmentation< QString > * | getChordData () |
void | setChordData (Segmentation< QString > cd) |
Properties | |
QString | artist |
QString | title |
QString | album |
QString | genre |
QString | year |
QString | track_number |
int | times_played |
QString | comment |
float | bpm |
QString | bpmFormatted |
int | duration |
QString | durationFormatted |
Friends | |
class | TrackDAO |
Definition at line 49 of file trackinfoobject.h.
TrackInfoObject::TrackInfoObject | ( | const QString | sLocation = "" , |
bool | parseHeader = true |
||
) |
Initialize a new track with the filename.
Definition at line 34 of file trackinfoobject.cpp.
TrackInfoObject::TrackInfoObject | ( | QFileInfo & | fileInfo, |
bool | parseHeader = true |
||
) |
Definition at line 41 of file trackinfoobject.cpp.
TrackInfoObject::TrackInfoObject | ( | const QDomNode & | nodeHeader | ) |
Creates a new track given information from the xml file.
Definition at line 47 of file trackinfoobject.cpp.
TrackInfoObject::~TrackInfoObject | ( | ) | [virtual] |
Definition at line 146 of file trackinfoobject.cpp.
Cue * TrackInfoObject::addCue | ( | ) |
Definition at line 756 of file trackinfoobject.cpp.
void TrackInfoObject::beatsUpdated | ( | ) | [signal] |
void TrackInfoObject::bpmUpdated | ( | double | bpm | ) | [signal] |
void TrackInfoObject::changed | ( | TrackInfoObject * | pTrack | ) | [signal] |
void TrackInfoObject::clean | ( | TrackInfoObject * | pTrack | ) | [signal] |
void TrackInfoObject::cuesUpdated | ( | ) | [signal] |
void TrackInfoObject::dirty | ( | TrackInfoObject * | pTrack | ) | [signal] |
void TrackInfoObject::doSave | ( | ) |
bool TrackInfoObject::exists | ( | ) | const |
QString TrackInfoObject::getAlbum | ( | ) | const |
Return album
Definition at line 463 of file trackinfoobject.cpp.
QString TrackInfoObject::getArtist | ( | ) | const |
Return artist
Definition at line 447 of file trackinfoobject.cpp.
float TrackInfoObject::getBeatFirst | ( | ) | const |
Get first beat pos
Definition at line 663 of file trackinfoobject.cpp.
BeatsPointer TrackInfoObject::getBeats | ( | ) | const |
Definition at line 371 of file trackinfoobject.cpp.
int TrackInfoObject::getBitrate | ( | ) | const |
Returns the bitrate
Definition at line 634 of file trackinfoobject.cpp.
QString TrackInfoObject::getBitrateStr | ( | ) | const |
Returns the bitrate as a string
Definition at line 640 of file trackinfoobject.cpp.
float TrackInfoObject::getBpm | ( | ) | const |
Returns BPM
Definition at line 308 of file trackinfoobject.cpp.
bool TrackInfoObject::getBpmConfirm | ( | ) | const |
Retruns if BPM was confirmed (edited or verified manually)
Definition at line 335 of file trackinfoobject.cpp.
QString TrackInfoObject::getBpmStr | ( | ) | const |
Returns BPM as a string
Definition at line 330 of file trackinfoobject.cpp.
int TrackInfoObject::getChannels | ( | ) | const |
Get number of channels
Definition at line 622 of file trackinfoobject.cpp.
const Segmentation< QString > * TrackInfoObject::getChordData | ( | ) |
Definition at line 803 of file trackinfoobject.cpp.
QString TrackInfoObject::getComment | ( | ) | const |
Returns the user comment
Definition at line 568 of file trackinfoobject.cpp.
QDateTime TrackInfoObject::getCreateDate | ( | ) | const |
Definition at line 277 of file trackinfoobject.cpp.
float TrackInfoObject::getCuePoint | ( | ) |
Get saved the cue point
Definition at line 745 of file trackinfoobject.cpp.
const QList< Cue * > & TrackInfoObject::getCuePoints | ( | ) |
QDateTime TrackInfoObject::getDateAdded | ( | ) | const |
Definition at line 406 of file trackinfoobject.cpp.
QString TrackInfoObject::getDirectory | ( | ) | const |
Definition at line 265 of file trackinfoobject.cpp.
int TrackInfoObject::getDuration | ( | ) | const |
Returns the duration in seconds
Definition at line 416 of file trackinfoobject.cpp.
QString TrackInfoObject::getDurationStr | ( | ) | const |
Returns the duration as a string: H:MM:SS
Definition at line 235 of file trackinfoobject.cpp.
QString TrackInfoObject::getFilename | ( | ) | const |
QString TrackInfoObject::getGenre | ( | ) | const |
Return genre
Definition at line 495 of file trackinfoobject.cpp.
bool TrackInfoObject::getHeaderParsed | ( | ) | const |
Definition at line 383 of file trackinfoobject.cpp.
int TrackInfoObject::getId | ( | ) | const |
QString TrackInfoObject::getInfo | ( | ) | const |
Output a formatted string with all the info
Definition at line 398 of file trackinfoobject.cpp.
QString TrackInfoObject::getKey | ( | ) | const |
Returns KEY_CODE
Definition at line 858 of file trackinfoobject.cpp.
int TrackInfoObject::getLength | ( | ) | const |
Definition at line 628 of file trackinfoobject.cpp.
QString TrackInfoObject::getLocation | ( | ) | const |
bool TrackInfoObject::getPlayed | ( | ) | const |
Returns true if track has been played this instance
Definition at line 547 of file trackinfoobject.cpp.
int TrackInfoObject::getRating | ( | ) | const |
Returns rating
Definition at line 845 of file trackinfoobject.cpp.
float TrackInfoObject::getReplayGain | ( | ) | const |
Returns ReplayGain
Definition at line 290 of file trackinfoobject.cpp.
int TrackInfoObject::getSampleRate | ( | ) | const |
Get sample rate
Definition at line 607 of file trackinfoobject.cpp.
int TrackInfoObject::getTimesPlayed | ( | ) | const |
Return number of times the track has been played
Definition at line 527 of file trackinfoobject.cpp.
QString TrackInfoObject::getTitle | ( | ) | const |
Getter/Setter methods for metadata Return title
Definition at line 431 of file trackinfoobject.cpp.
QString TrackInfoObject::getTrackNumber | ( | ) | const |
Return Track Number
Definition at line 511 of file trackinfoobject.cpp.
QString TrackInfoObject::getType | ( | ) | const |
Returns the file type
Definition at line 583 of file trackinfoobject.cpp.
QString TrackInfoObject::getURL | ( | ) |
Get URL for track
Definition at line 730 of file trackinfoobject.cpp.
double TrackInfoObject::getVisualResampleRate | ( | ) |
Definition at line 694 of file trackinfoobject.cpp.
QVector< float > * TrackInfoObject::getVisualWaveform | ( | ) |
Get pointer to visual waveform data
Definition at line 682 of file trackinfoobject.cpp.
const QByteArray * TrackInfoObject::getWaveSummary | ( | ) |
Returns a pointer to waveform summary
Definition at line 699 of file trackinfoobject.cpp.
QString TrackInfoObject::getYear | ( | ) | const |
Return Year
Definition at line 479 of file trackinfoobject.cpp.
void TrackInfoObject::incTimesPlayed | ( | ) |
Increment times played with one
Definition at line 542 of file trackinfoobject.cpp.
bool TrackInfoObject::isDirty | ( | ) |
Definition at line 835 of file trackinfoobject.cpp.
bool TrackInfoObject::isValid | ( | ) | const |
Returns true if the object contains valid information
Definition at line 155 of file trackinfoobject.cpp.
bool TrackInfoObject::locationChanged | ( | ) |
Definition at line 840 of file trackinfoobject.cpp.
int TrackInfoObject::parse | ( | ) |
void TrackInfoObject::removeCue | ( | Cue * | cue | ) |
void TrackInfoObject::ReplayGainUpdated | ( | double | replaygain | ) | [signal] |
void TrackInfoObject::save | ( | TrackInfoObject * | pTrack | ) | [signal] |
void TrackInfoObject::setAlbum | ( | QString | s | ) |
Set album
Definition at line 469 of file trackinfoobject.cpp.
void TrackInfoObject::setArtist | ( | QString | s | ) |
Set artist
Definition at line 453 of file trackinfoobject.cpp.
void TrackInfoObject::setBeatFirst | ( | float | fBeatFirstPos | ) |
Sets first beat pos
Definition at line 654 of file trackinfoobject.cpp.
void TrackInfoObject::setBeats | ( | BeatsPointer | beats | ) |
void TrackInfoObject::setBitrate | ( | int | i | ) |
Sets the bitrate
Definition at line 645 of file trackinfoobject.cpp.
void TrackInfoObject::setBpm | ( | float | f | ) |
Set BPM
Definition at line 316 of file trackinfoobject.cpp.
void TrackInfoObject::setBpmConfirm | ( | bool | confirm = true | ) |
Set BPM confidence
Definition at line 341 of file trackinfoobject.cpp.
void TrackInfoObject::setBpmControlObject | ( | ControlObject * | p | ) |
Set pointer to ControlObject holding BPM value in engine
void TrackInfoObject::setChannels | ( | int | iChannels | ) |
Set number of channels
Definition at line 613 of file trackinfoobject.cpp.
void TrackInfoObject::setChordData | ( | Segmentation< QString > | cd | ) |
void TrackInfoObject::setComment | ( | QString | s | ) |
Sets the user commnet
Definition at line 574 of file trackinfoobject.cpp.
void TrackInfoObject::setCuePoint | ( | float | cue | ) |
Save the cue point (in samples... I think)
Definition at line 736 of file trackinfoobject.cpp.
void TrackInfoObject::setCuePoints | ( | QList< Cue * > | cuePoints | ) |
void TrackInfoObject::setDateAdded | ( | QDateTime | dateAdded | ) |
Definition at line 411 of file trackinfoobject.cpp.
void TrackInfoObject::setDuration | ( | int | i | ) |
Set duration in seconds
Definition at line 422 of file trackinfoobject.cpp.
void TrackInfoObject::setGenre | ( | QString | s | ) |
Set genre
Definition at line 501 of file trackinfoobject.cpp.
void TrackInfoObject::setHeaderParsed | ( | bool | parsed = true | ) |
Definition at line 389 of file trackinfoobject.cpp.
void TrackInfoObject::setKey | ( | QString | key | ) |
Set KEY_CODE
Definition at line 863 of file trackinfoobject.cpp.
void TrackInfoObject::setLocation | ( | QString | location | ) |
Set the track's full file path
Definition at line 244 of file trackinfoobject.cpp.
void TrackInfoObject::setPlayed | ( | bool | bPlayed | ) |
Set Played status
Definition at line 554 of file trackinfoobject.cpp.
void TrackInfoObject::setRating | ( | int | rating | ) |
Sets rating
Definition at line 850 of file trackinfoobject.cpp.
void TrackInfoObject::setReplayGain | ( | float | f | ) |
Set ReplayGain
Definition at line 296 of file trackinfoobject.cpp.
void TrackInfoObject::setSampleRate | ( | int | iSampleRate | ) |
Set sample rate
Definition at line 598 of file trackinfoobject.cpp.
void TrackInfoObject::setTimesPlayed | ( | int | t | ) |
Set number of times the track has been played
Definition at line 533 of file trackinfoobject.cpp.
void TrackInfoObject::setTitle | ( | QString | s | ) |
Set title
Definition at line 437 of file trackinfoobject.cpp.
void TrackInfoObject::setTrackNumber | ( | QString | s | ) |
Set Track Number
Definition at line 517 of file trackinfoobject.cpp.
void TrackInfoObject::setType | ( | QString | s | ) |
Sets the type of the string
Definition at line 589 of file trackinfoobject.cpp.
void TrackInfoObject::setURL | ( | QString | url | ) |
Set URL for track
Definition at line 721 of file trackinfoobject.cpp.
void TrackInfoObject::setVisualResampleRate | ( | double | dVisualResampleRate | ) |
Set and get this track's desired visual resample rate
Definition at line 687 of file trackinfoobject.cpp.
void TrackInfoObject::setVisualWaveform | ( | QVector< float > * | pWave | ) |
Set pointer to visual waveform data
Definition at line 705 of file trackinfoobject.cpp.
void TrackInfoObject::setWaveSummary | ( | const QByteArray * | pWave, |
bool | updateUI = true |
||
) |
Set pointer to waveform summary -- updates UI by default
Definition at line 712 of file trackinfoobject.cpp.
void TrackInfoObject::setYear | ( | QString | s | ) |
Set year
Definition at line 485 of file trackinfoobject.cpp.
void TrackInfoObject::slotCueUpdated | ( | ) | [slot] |
Definition at line 751 of file trackinfoobject.cpp.
void TrackInfoObject::wavesummaryUpdated | ( | TrackInfoObject * | ) | [signal] |
void TrackInfoObject::writeToXML | ( | QDomDocument & | doc, |
QDomElement & | header | ||
) |
friend class TrackDAO [friend] |
Definition at line 390 of file trackinfoobject.h.
QString TrackInfoObject::album [read, write] |
Definition at line 78 of file trackinfoobject.h.
QString TrackInfoObject::artist [read, write] |
Definition at line 76 of file trackinfoobject.h.
float TrackInfoObject::bpm [read, write] |
Definition at line 84 of file trackinfoobject.h.
QString TrackInfoObject::bpmFormatted [read] |
Definition at line 85 of file trackinfoobject.h.
QString TrackInfoObject::comment [read, write] |
Definition at line 83 of file trackinfoobject.h.
int TrackInfoObject::duration [read, write] |
Definition at line 86 of file trackinfoobject.h.
QString TrackInfoObject::durationFormatted [read] |
Definition at line 87 of file trackinfoobject.h.
QString TrackInfoObject::genre [read, write] |
Definition at line 79 of file trackinfoobject.h.
int TrackInfoObject::times_played [read] |
Definition at line 82 of file trackinfoobject.h.
QString TrackInfoObject::title [read, write] |
Definition at line 77 of file trackinfoobject.h.
QString TrackInfoObject::track_number [read, write] |
Definition at line 81 of file trackinfoobject.h.
QString TrackInfoObject::year [read, write] |
Definition at line 80 of file trackinfoobject.h.