20 #ifndef MPD_COMMAND_LIST_BUILDER_HXX 21 #define MPD_COMMAND_LIST_BUILDER_HXX 52 std::list<std::string> list;
67 return mode != Mode::DISABLED;
89 assert(mode == Mode::DISABLED);
98 bool Add(
const char *cmd);
106 return std::move(list);
bool IsOKMode() const
Is the object in "list_OK" mode?
The command has succeeded, but the "OK" response was not yet sent to the client.
std::list< std::string > && Commit()
Finishes the list and returns it.
void Begin(bool ok)
Begin building a command list.
bool Add(const char *cmd)
bool IsActive() const
Is a command list currently being built?
void Reset()
Reset the object: delete the list and clear the mode.
The database is disabled, i.e.