Table of Contents
[ fromfile: homework/mp3mgr.xml id: mp3mgr ]
Abstract
In the assignments in this chapter, you will write, in stages, a main window program that serves as an MP3 playlist generator and database manager. It will generate and play selections of MP3 songs, based on what it can find on your file system and it will permit filter-queries based on data stored in ID3v2 (meta) tag information.
Prerequisites: You can start on this once you have covered the material up to Chapter 13.
The features you will implement are inspired by open source programs such as amaroK and aTunes, and commercial programs such as iTunes and MusicMatch Jukebox. These programs all provide similar features, but very different user interfaces. There is a lot of creativity that can go into a player. Few of them are equally easy to use with a keyboard or a mouse. Try to make yours work with either.
You can find an example of a media player in $QTDIR/examples/phonon/qmusicplayer
and use it as a starting point. Then you can add extra components to it as you work through the following assignments. As of this writing, qmusicplayer
lets you add files to a playlist and play the list of songs on your computer.
The simplest media player, shown in Figure 23.1 has two major components:
A Player view, which consists of
A dockable that shows the user what is currently playing and provides some controls for changing volume and position of the song
and buttons. ( and buttons would also be nice.)
A song list view, as the central widget, for displaying a list of songs.
Each of these components is a view for displaying the data, and it is suggested you use separate classes to hold the actual data, maintaining a separation between model and view code.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |