Mixxx

CrateDAO Class Reference

#include <cratedao.h>

Inheritance diagram for CrateDAO:
Collaboration diagram for CrateDAO:

List of all members.

Signals

void added (int crateId)
void deleted (int crateId)
void changed (int crateId)
void trackAdded (int crateId, int trackId)
void trackRemoved (int crateId, int trackId)

Public Member Functions

 CrateDAO (QSqlDatabase &database)
virtual ~CrateDAO ()
void setDatabase (QSqlDatabase &database)
void initialize ()
unsigned int crateCount ()
bool createCrate (const QString &name)
bool deleteCrate (int crateId)
bool renameCrate (int crateId, const QString &newName)
bool setCrateLocked (int crateId, bool locked)
bool isCrateLocked (int crateId)
int getCrateIdByName (const QString &name)
int getCrateId (int position)
QString crateName (int crateId)
unsigned int crateSize (int crateId)
bool addTrackToCrate (int trackId, int crateId)
void removeTrackFromCrates (int trackId)
bool removeTrackFromCrate (int trackId, int crateId)

Detailed Description

Definition at line 19 of file cratedao.h.


Constructor & Destructor Documentation

CrateDAO::CrateDAO ( QSqlDatabase &  database)

Definition at line 12 of file cratedao.cpp.

CrateDAO::~CrateDAO ( ) [virtual]

Definition at line 16 of file cratedao.cpp.


Member Function Documentation

void CrateDAO::added ( int  crateId) [signal]

Here is the caller graph for this function:

bool CrateDAO::addTrackToCrate ( int  trackId,
int  crateId 
)

Definition at line 181 of file cratedao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CrateDAO::changed ( int  crateId) [signal]

Here is the caller graph for this function:

unsigned int CrateDAO::crateCount ( )

Definition at line 23 of file cratedao.cpp.

Here is the caller graph for this function:

QString CrateDAO::crateName ( int  crateId)

Definition at line 153 of file cratedao.cpp.

Here is the caller graph for this function:

unsigned int CrateDAO::crateSize ( int  crateId)

Definition at line 167 of file cratedao.cpp.

bool CrateDAO::createCrate ( const QString &  name)

Definition at line 34 of file cratedao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CrateDAO::deleteCrate ( int  crateId)

Definition at line 95 of file cratedao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CrateDAO::deleted ( int  crateId) [signal]

Here is the caller graph for this function:

int CrateDAO::getCrateId ( int  position)

Definition at line 136 of file cratedao.cpp.

Here is the caller graph for this function:

int CrateDAO::getCrateIdByName ( const QString &  name)

Definition at line 121 of file cratedao.cpp.

Here is the caller graph for this function:

void CrateDAO::initialize ( ) [virtual]

Implements DAO.

Definition at line 19 of file cratedao.cpp.

Here is the caller graph for this function:

bool CrateDAO::isCrateLocked ( int  crateId)

Definition at line 78 of file cratedao.cpp.

Here is the caller graph for this function:

bool CrateDAO::removeTrackFromCrate ( int  trackId,
int  crateId 
)

Definition at line 212 of file cratedao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CrateDAO::removeTrackFromCrates ( int  trackId)

Definition at line 200 of file cratedao.cpp.

Here is the caller graph for this function:

bool CrateDAO::renameCrate ( int  crateId,
const QString &  newName 
)

Definition at line 49 of file cratedao.cpp.

Here is the caller graph for this function:

bool CrateDAO::setCrateLocked ( int  crateId,
bool  locked 
)

Definition at line 62 of file cratedao.cpp.

Here is the caller graph for this function:

void CrateDAO::setDatabase ( QSqlDatabase &  database) [inline]

Definition at line 25 of file cratedao.h.

void CrateDAO::trackAdded ( int  crateId,
int  trackId 
) [signal]

Here is the caller graph for this function:

void CrateDAO::trackRemoved ( int  crateId,
int  trackId 
) [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