|
pianod2
multisource multiuser scriptable networked music player
|
User data, privileges, details and preferences implementation. More...
#include <config.h>#include <string>#include <unordered_map>#include <parsnip/parsnip.h>#include "logging.h"#include "fundamentals.h"#include "enumeratedarray.h"#include "datastore.h"

Go to the source code of this file.
Classes | |
| class | User |
| Data about each user. More... | |
Namespaces | |
| Football | |
| Football C++ connections, services and parsers. | |
Enumerations | |
| enum class | Rank { None , Listener , Standard , Administrator } |
| User types in ascending ranks/level of authority. More... | |
| enum class | Privilege { Service , Queue , Influence , Tuner , Shadow , Present , Count } |
| User privilege flags, corresponding to an array position. More... | |
Functions | |
| static Privilege | operator++ (Privilege &p, int) |
| Postfix increment operator to allow Privilege iteration. More... | |
| void | register_user_commands (Football::ServiceBase *service) |
User data, privileges, details and preferences implementation.
|
strong |
User privilege flags, corresponding to an array position.
| Enumerator | |
|---|---|
| Service | User may add or remove sources. (Automatic for admin rank.) |
| Queue | User may queue or cancel songs. (Automatic for standard rank.) |
| Influence | User's playlist preferences influence autotuning selections. |
| Tuner | User may set other users' presence, for autotuning. |
| Shadow | Attribute: User was created automatically, shadowing a user account. |
| Present | Attribute: Consider user present, even if not logged in. |
| Count | |
|
strong |
User types in ascending ranks/level of authority.
| Enumerator | |
|---|---|
| None | User is unauthorized to do anything except log in. |
| Listener | User can query and view song-related data, but not change selections. |
| Standard | User can query, choose playlist, request music, change volume. |
| Administrator | User has full authorization, except for accessing others' private data. |
Postfix increment operator to allow Privilege iteration.
| void register_user_commands | ( | Football::ServiceBase * | service | ) |