|
pianod2
multisource multiuser scriptable networked music player
|
Manage messages of various kinds to clients. More...
#include <config.h>#include <cstdarg>#include <cassert>#include <ctime>#include <exception>#include <sstream>#include <iomanip>#include <football/fb_public.h>#include <parsnip/parsnip.h>#include "logging.h"#include "musictypes.h"#include "retainedlist.h"#include "musickeys.h"#include "response.h"#include "connection.h"#include "servicemanager.h"#include "fundamentals.h"#include "utility.h"#include "user.h"#include "mediaunit.h"#include <stdexcept>#include <future>#include <regex>#include "filter.h"#include "querylist.h"
Functions | |
| std::string | format_duration (time_t duration, int minute_places) |
| Format a duration as minutes and seconds. More... | |
| const char * | ResponseText (RESPONSE_CODE response) |
| Retrieve the text for a success, failure, event or data message. More... | |
| void | sendUpdatedRatings (PianodConnection &conn, const PianodSong *song, CommandReply *response) |
| Send updated ratings. More... | |
| static Response | standard_exception (const std::exception &except) |
| Translate a standard exception message into a Response. More... | |
Manage messages of various kinds to clients.
| std::string format_duration | ( | time_t | duration, |
| int | minute_places | ||
| ) |
Format a duration as minutes and seconds.
| duration | The duration. |
| minute_places | The minimum number of digits to use for minutes. If less than this are required, the duration is zero-padded. |

| const char* ResponseText | ( | RESPONSE_CODE | response | ) |
Retrieve the text for a success, failure, event or data message.
| response | The number of the status or datum. |

| void sendUpdatedRatings | ( | PianodConnection & | conn, |
| const PianodSong * | song, | ||
| CommandReply * | response | ||
| ) |
Send updated ratings.
| conn | The connection initiating the ratings change. |
| song | The ratings to send. |
| response | The reply in which ratings are inserted. |

