summaryrefslogtreecommitdiff
path: root/cuesheet.h
diff options
context:
space:
mode:
Diffstat (limited to 'cuesheet.h')
-rw-r--r--cuesheet.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cuesheet.h b/cuesheet.h
new file mode 100644
index 0000000..1546d75
--- /dev/null
+++ b/cuesheet.h
@@ -0,0 +1,30 @@
+#ifndef CUESHEET_H
+#define CUESHEET_H
+
+#include <QtCore>
+
+class CueSheet {
+ class Track {
+ public:
+ int num;
+ QString artist;
+ QString name;
+ int index;
+ };
+
+ public:
+ CueSheet(const QString& filename);
+
+ const QString& artist() const;
+ const QString& name() const;
+ int tracks() const;
+
+ const Track& operator[](int track) const;
+
+ private:
+ QString album_artist;
+ QString album_name;
+ QList<Track> track_list;
+};
+
+#endif