Mixxx

TrackCollection Class Reference

#include <trackcollection.h>

Collaboration diagram for TrackCollection:

List of all members.

Public Slots

void slotCancelLibraryScan ()

Signals

void startedLoading ()
void progressLoading (QString path)
void finishedLoading ()

Public Member Functions

 TrackCollection (ConfigObject< ConfigValue > *pConfig)
 ~TrackCollection ()
bool checkForTables ()
bool importDirectory (QString directory, TrackDAO &trackDao, QList< TrackInfoObject * > &tracksToAdd)
void resetLibaryCancellation ()
QSqlDatabase & getDatabase ()
CrateDAOgetCrateDAO ()
TrackDAOgetTrackDAO ()
PlaylistDAOgetPlaylistDAO ()
QSharedPointer< BaseTrackCachegetTrackSource (const QString name)
void addTrackSource (const QString name, QSharedPointer< BaseTrackCache > trackSource)

Detailed Description

Author:
Albert Santoni

Definition at line 45 of file trackcollection.h.


Constructor & Destructor Documentation

TrackCollection::TrackCollection ( ConfigObject< ConfigValue > *  pConfig)

Definition at line 15 of file trackcollection.cpp.

Here is the call graph for this function:

TrackCollection::~TrackCollection ( )

Definition at line 44 of file trackcollection.cpp.

Here is the call graph for this function:


Member Function Documentation

void TrackCollection::addTrackSource ( const QString  name,
QSharedPointer< BaseTrackCache trackSource 
)

Definition at line 192 of file trackcollection.cpp.

Here is the caller graph for this function:

bool TrackCollection::checkForTables ( )

Definition at line 59 of file trackcollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TrackCollection::finishedLoading ( ) [signal]

Here is the caller graph for this function:

CrateDAO & TrackCollection::getCrateDAO ( )

Definition at line 175 of file trackcollection.cpp.

Here is the caller graph for this function:

QSqlDatabase & TrackCollection::getDatabase ( )

Definition at line 90 of file trackcollection.cpp.

Here is the caller graph for this function:

PlaylistDAO & TrackCollection::getPlaylistDAO ( )

Definition at line 183 of file trackcollection.cpp.

Here is the caller graph for this function:

TrackDAO & TrackCollection::getTrackDAO ( )

Definition at line 179 of file trackcollection.cpp.

Here is the caller graph for this function:

QSharedPointer< BaseTrackCache > TrackCollection::getTrackSource ( const QString  name)

Definition at line 187 of file trackcollection.cpp.

Here is the caller graph for this function:

bool TrackCollection::importDirectory ( QString  directory,
TrackDAO trackDao,
QList< TrackInfoObject * > &  tracksToAdd 
)

Import the files in a given diretory, without recursing into subdirectories

Do a non-recursive import of all the songs in a directory. Does NOT decend into subdirectories.

Parameters:
trackDaoThe track data access object which provides a connection to the database. We use this parameter in order to make this function callable from separate threads. You need to use a different DB connection for each thread.
Returns:
true if the scan completed without being cancelled. False if the scan was cancelled part-way through.

Definition at line 98 of file trackcollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TrackCollection::progressLoading ( QString  path) [signal]

Here is the caller graph for this function:

void TrackCollection::resetLibaryCancellation ( )

Definition at line 169 of file trackcollection.cpp.

Here is the caller graph for this function:

void TrackCollection::slotCancelLibraryScan ( ) [slot]

Definition at line 163 of file trackcollection.cpp.

Here is the caller graph for this function:

void TrackCollection::startedLoading ( ) [signal]

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines