mpd: make ItemType enum class

This commit is contained in:
Andrzej Rybczak
2014-11-01 22:45:27 +01:00
parent 9a1afece86
commit fabd24c6a5
9 changed files with 50 additions and 53 deletions

View File

@@ -31,7 +31,6 @@
namespace MPD {
enum ItemType { itDirectory, itSong, itPlaylist };
enum PlayerState { psUnknown, psStop, psPlay, psPause };
enum ReplayGainMode { rgmOff, rgmTrack, rgmAlbum };
@@ -168,8 +167,10 @@ private:
struct Item
{
enum class Type { Directory, Playlist, Song };
Song song;
ItemType type;
Type type;
std::string name;
};