Music Hub ..
A session-wide music playback service
cover_art_resolver.h
Go to the documentation of this file.
1
19#ifndef CORE_UBUNTU_MEDIA_COVER_ART_RESOLVER_H_
20#define CORE_UBUNTU_MEDIA_COVER_ART_RESOLVER_H_
21
22#include <functional>
23#include <string>
24
25namespace core
26{
27namespace ubuntu
28{
29namespace media
30{
31// Functional modelling a helper to resolve artist/album names to
32// cover art.
33typedef std::function
34<
35 std::string // Returns a URL pointing to the album art
36 (
37 const std::string&, // The title of the track
38 const std::string&, // The name of the album
39 const std::string& // The name of the artist
40 )
42
43// Return a CoverArtResolver that always resolves to
44// file:///usr/share/unity/icons/album_missing.png
46}
47}
48}
49
50#endif // CORE_UBUNTU_MEDIA_COVER_ART_RESOLVER_H_
51
CoverArtResolver always_missing_cover_art_resolver()
std::function< std::string(const std::string &, const std::string &, const std::string &)> CoverArtResolver
Definition: player.h:34