diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/cdmanager.h | |
download | soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip |
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/cdmanager.h')
-rwxr-xr-x | src/cdmanager.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/cdmanager.h b/src/cdmanager.h new file mode 100755 index 0000000..9af80c8 --- /dev/null +++ b/src/cdmanager.h @@ -0,0 +1,95 @@ + + +#ifndef CDMANAGER_H +#define CDMANAGER_H + +#include "tagengine.h" + +#include <qobject.h> + +class ConversionOptions; +class Paranoia; + +/** + * @short All data needed for a cd device + * @author Daniel Faust <[email protected]> + * @version 0.3 + */ +class CDDevice +{ +public: + /** + * Constructor + */ + CDDevice( const QString& _device="" ); + + /** + * Destructor + */ + virtual ~CDDevice(); + + QString device; + Paranoia* para; + QValueList<TagData*> tags; + TagData* discTags; + int trackCount; + int timeCount; +}; + +/** + * @short The CD manager + * @author Daniel Faust <[email protected]> + * @version 0.3 + */ +class CDManager : public QObject +{ + Q_OBJECT +public: + /** + * Constructor + */ + CDManager(); + + /** + * Destructor + */ + virtual ~CDManager(); + + /** + * Create a new CDDevice entry in cdDevices. Use @param device or auto search for an audio cd + * Return the used device (usefull, if auto searching was used) + */ + QString newCDDevice( const QString& device="" ); + + /** + * Return a list of all tracks on the cd in drive @param device + */ + QValueList<TagData*> getTrackList( const QString& device ); + + /** + * Return the tags of the track @param track on the cd in drive @param device + */ + TagData* getTags( const QString& device, int track ); + + /** + * Set the tags of the cd in drive @param device + */ + void setDiscTags( const QString& device, TagData* tags ); + + /** + * Return the sum of all tracks of the cd in drive @param device + */ + int getTrackCount( const QString& device ); + + /** + * Return the complete length of the cd in drive @param device + */ + int getTimeCount( const QString& device ); + +private: + /** a list of all devices */ + QValueList<CDDevice*> cdDevices; + +}; + +#endif // CDMANAGER_H |