PlaylistError: convert playlist_result to a strictly-typed enum
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user