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 
25 namespace core
26 {
27 namespace ubuntu
28 {
29 namespace media
30 {
31 // Functional modelling a helper to resolve artist/album names to
32 // cover art.
33 typedef 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 
Definition: player.h:32
CoverArtResolver always_missing_cover_art_resolver()
std::function< std::string(const std::string &, const std::string &, const std::string &)> CoverArtResolver