digiKam
Digikam::TrackManager Class Reference
+ Inheritance diagram for Digikam::TrackManager:

Classes

class  Track
 
class  TrackPoint
 

Public Types

enum  ChangeFlag { ChangeTrackPoints = 1 , ChangeMetadata = 2 , ChangeRemoved = 4 , ChangeAdd = ChangeTrackPoints | ChangeMetadata }
 
typedef quint32 Id
 NOTE: we assume here that we will never load more than uint32_max tracks. More...
 
typedef QPair< Id, ChangeFlagTrackChanges
 

Signals

void signalAllTrackFilesReady ()
 
void signalTrackFilesReadyAt (const int startIndex, const int endIndex)
 
void signalTracksChanged (const QList< TrackManager::TrackChanges > &trackChanges)
 
void signalVisibilityChanged (const bool newValue)
 

Public Member Functions

void clear ()
 
QColor getNextFreeTrackColor ()
 
quint64 getNextFreeTrackId ()
 
const TrackgetTrack (const int index) const
 
Track getTrackById (const quint64 trackId) const
 
Track::List getTrackList () const
 
bool getVisibility () const
 
void loadTrackFiles (const QList< QUrl > &urls)
 
QList< QPair< QUrl, QString > > readLoadErrors ()
 
void setVisibility (const bool value)
 
int trackCount () const
 
 TrackManager (QObject *const parent=nullptr)
 
 ~TrackManager () override
 

Member Typedef Documentation

◆ Id

typedef quint32 Digikam::TrackManager::Id

NOTE: we assume here that we will never load more than uint32_max tracks.

◆ TrackChanges

Member Enumeration Documentation

◆ ChangeFlag

Enumerator
ChangeTrackPoints 
ChangeMetadata 
ChangeRemoved 
ChangeAdd 

Constructor & Destructor Documentation

◆ TrackManager()

Digikam::TrackManager::TrackManager ( QObject *const  parent = nullptr)
explicit

◆ ~TrackManager()

Digikam::TrackManager::~TrackManager ( )
override

Member Function Documentation

◆ clear()

void Digikam::TrackManager::clear ( )

@TODO send a signal

◆ getNextFreeTrackColor()

QColor Digikam::TrackManager::getNextFreeTrackColor ( )

◆ getNextFreeTrackId()

quint64 Digikam::TrackManager::getNextFreeTrackId ( )

◆ getTrack()

const TrackManager::Track & Digikam::TrackManager::getTrack ( const int  index) const

◆ getTrackById()

TrackManager::Track Digikam::TrackManager::getTrackById ( const quint64  trackId) const

◆ getTrackList()

TrackManager::Track::List Digikam::TrackManager::getTrackList ( ) const

◆ getVisibility()

bool Digikam::TrackManager::getVisibility ( ) const

◆ loadTrackFiles()

void Digikam::TrackManager::loadTrackFiles ( const QList< QUrl > &  urls)

◆ readLoadErrors()

QList< QPair< QUrl, QString > > Digikam::TrackManager::readLoadErrors ( )

◆ setVisibility()

void Digikam::TrackManager::setVisibility ( const bool  value)

References signalVisibilityChanged(), and value.

◆ signalAllTrackFilesReady

void Digikam::TrackManager::signalAllTrackFilesReady ( )
signal

◆ signalTrackFilesReadyAt

void Digikam::TrackManager::signalTrackFilesReadyAt ( const int  startIndex,
const int  endIndex 
)
signal

◆ signalTracksChanged

void Digikam::TrackManager::signalTracksChanged ( const QList< TrackManager::TrackChanges > &  trackChanges)
signal

◆ signalVisibilityChanged

void Digikam::TrackManager::signalVisibilityChanged ( const bool  newValue)
signal

Referenced by setVisibility().

◆ trackCount()

int Digikam::TrackManager::trackCount ( ) const

The documentation for this class was generated from the following files: