pianod2
multisource multiuser scriptable networked music player
Classes | Namespaces | Typedefs | Enumerations | Variables
mediaunit.h File Reference

Public interface for sources, which provide an interface interfaces to select available music, adjust playlists, etc. More...

#include <config.h>
#include <cstdio>
#include <string>
#include <unordered_map>
#include <functional>
#include <memory>
#include "fundamentals.h"
#include "musictypes.h"
#include "filter.h"
#include "ownership.h"
Include dependency graph for mediaunit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Media::Statistics
 Statistics on media played from the sources. More...
 
class  Media::Source
 Base class that wraps any audio source, such as Pandora, Spotify, or local music. More...
 
class  Media::SplitId
 Mechanism to split MusicThingie IDs into source identifier, type and inner ID. More...
 

Namespaces

 Parsnip
 Serialization and parsing library.
 
 Media
 Media source, source parameters and player interfaces.
 
 Media::Key
 

Typedefs

using Media::SourcePtr = std::unique_ptr< Source >
 

Enumerations

enum class  Media::SelectionMethod {
  Media::Song , Media::Album , Media::Artist , Media::Playlist ,
  Media::Random
}
 The manner in which shuffling is performed. More...
 

Variables

const char * Media::Key::Source = KEY_SOURCE
 
const char * Media::Key::SourceId = "id"
 
const char * Media::Key::SourceKind = "type"
 
const char * Media::Key::SourceName = "name"
 

Detailed Description

Public interface for sources, which provide an interface interfaces to select available music, adjust playlists, etc.