Music Hub
..
A session-wide music playback service
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
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
)
41
>
CoverArtResolver
;
42
43
// Return a CoverArtResolver that always resolves to
44
// file:///usr/share/unity/icons/album_missing.png
45
CoverArtResolver
always_missing_cover_art_resolver
();
46
}
47
}
48
}
49
50
#endif // CORE_UBUNTU_MEDIA_COVER_ART_RESOLVER_H_
51
core
Definition:
player.h:29
core::ubuntu::media::always_missing_cover_art_resolver
CoverArtResolver always_missing_cover_art_resolver()
Definition:
cover_art_resolver.cpp:21
core::ubuntu::media::CoverArtResolver
std::function< std::string(const std::string &, const std::string &, const std::string &)> CoverArtResolver
Definition:
cover_art_resolver.h:41
core::ubuntu::media
Definition:
player.h:33
src
core
media
cover_art_resolver.h
Generated on Fri Sep 26 2014 04:25:06 for Music Hub by
1.8.8