PlaylistError: convert playlist_result to a strictly-typed enum

This commit is contained in:
Max Kellermann
2013-10-19 19:50:54 +02:00
parent c1e7be3b8e
commit c772bc45c6
16 changed files with 204 additions and 207 deletions

View File

@@ -22,18 +22,18 @@
class Domain;
enum playlist_result {
PLAYLIST_RESULT_SUCCESS,
PLAYLIST_RESULT_ERRNO,
PLAYLIST_RESULT_DENIED,
PLAYLIST_RESULT_NO_SUCH_SONG,
PLAYLIST_RESULT_NO_SUCH_LIST,
PLAYLIST_RESULT_LIST_EXISTS,
PLAYLIST_RESULT_BAD_NAME,
PLAYLIST_RESULT_BAD_RANGE,
PLAYLIST_RESULT_NOT_PLAYING,
PLAYLIST_RESULT_TOO_LARGE,
PLAYLIST_RESULT_DISABLED,
enum class PlaylistResult {
SUCCESS,
ERRNO,
DENIED,
NO_SUCH_SONG,
NO_SUCH_LIST,
LIST_EXISTS,
BAD_NAME,
BAD_RANGE,
NOT_PLAYING,
TOO_LARGE,
DISABLED,
};
extern const Domain playlist_domain;