Program

Maintain an ordered list of tracks to be played. More...

Publicly inherits QObject.

Public Methods

Program( const CompactDiscID& id );
Program( const int length, const int* tracks );
boolisEnd( );
boolisStart( );
intnext( );
QList&ordered( );
intprevious( );
intreset( );
voidshuffle( );
voidunshuffle( );
~Program( );

Private Methods

Program( const Program& prog );
Program&operator=( const Program& prog );

Signals

voidupdateStep( int step );

Protected Data Members

QList_orderedTracks;
unsigned int_step;
QList_tracks;

Detailed Documentation

Maintain an ordered list of tracks to be played.

The Program class contains an ordered list of tracks on an audio disc. Each track in the program is considered to be a step. The program step can be reset to the beginning of the program, incremented, and decremented. Each operation that changes the program step returns the new current track number. This is the abstract base class for all types of Programs.

Public Methods Documentation

bool isEnd ( );

Check to see if we are at the end of the Program.

bool isStart ( );

Check to see if we are at the start of the Program.

int next ( );

Increment the program step, and return the new current track.

QList& ordered ( );

Return the list of programmed tracks in order.

int previous ( );

Decrement the program step, and return the new current track.

int reset ( );

Reset the program step, and return the new current track.

void shuffle ( );

Re-shuffle the tracks.

void unshuffle ( );

Unshuffle the tracks.

Signals Documentation

void updateStep ( int step );

Emitted when the program step changes.


Return to Index.
Automatically generated on Dec 29 18:17