20 #ifndef MPD_RESPONSE_HXX 21 #define MPD_RESPONSE_HXX 38 const unsigned list_index;
47 :client(_client), list_index(_list_index), command(
"") {}
56 bool Write(
const void *data,
size_t length);
57 bool Write(
const char *data);
61 void Error(
enum ack code,
const char *msg);
void FormatError(enum ack code, const char *fmt,...)
bool FormatV(const char *fmt, va_list args)
bool Write(const void *data, size_t length)
Response & operator=(const Response &)=delete
bool Format(const char *fmt,...)
Response(Client &_client, unsigned _list_index)
void SetCommand(const char *_command)
void Error(enum ack code, const char *msg)