summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
Diffstat (limited to 'music.h')
-rw-r--r--music.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/music.h b/music.h
index 8e0bd9e..8ce93c1 100644
--- a/music.h
+++ b/music.h
@@ -1,13 +1,15 @@
#ifndef MUSIC_H
#define MUSIC_H
-#include <string>
+#include <boost/filesystem.hpp>
#include <vector>
+namespace fs = boost::filesystem;
+
class MusicTrack {
public:
- MusicTrack(const std::string filename);
- std::string filename;
+ MusicTrack(const fs::path path);
+ fs::path path;
};
class MusicDirectory;
@@ -16,15 +18,15 @@ typedef std::vector<MusicTrack> MusicTracks;
class MusicDirectory {
public:
- MusicDirectory(const std::string root);
- std::string path;
+ MusicDirectory(const fs::path root);
+ fs::path path;
MusicDirectories directories;
MusicTracks tracks;
};
namespace music {
extern MusicDirectory *root_directory;
- void init(const std::string root);
+ void init(const fs::path root);
};
#endif