Music Hub
..
A session-wide music playback service
metadata.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2014 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by: Thomas Voß <thomas.voss@canonical.com>
17
*/
18
19
#ifndef MPRIS_METADATA_H_
20
#define MPRIS_METADATA_H_
21
22
#include <core/dbus/types/object_path.h>
23
24
#include <cstdint>
25
26
#include <string>
27
28
namespace
mpris
29
{
30
namespace
metadata
31
{
32
// D-Bus path: A unique identity for this track within the context of an MPRIS object (eg: tracklist).
33
struct
TrackId
34
{
35
static
constexpr
const
char
*
name
{
"mpris:trackid"
};
36
typedef
core::dbus::types::ObjectPath
ValueType
;
37
};
38
// 64-bit integer: The duration of the track in microseconds.
39
struct
Length
40
{
41
static
constexpr
const
char
*
name
{
"mpris:length"
};
42
typedef
std::int64_t
ValueType
;
43
};
44
// URI: The location of an image representing the track or album.
45
// Clients should not assume this will continue to exist when the media player
46
// stops giving out the URL.
47
struct
ArtUrl
48
{
49
static
constexpr
const
char
*
name
{
"mpris:artUrl"
};
50
typedef
std::string
ValueType
;
51
};
52
}
53
}
54
55
#endif // MPRIS_METADATA_H_
mpris::metadata::Length::ValueType
std::int64_t ValueType
Definition:
metadata.h:42
mpris
Definition:
media_player2.h:31
mpris::metadata::ArtUrl
Definition:
metadata.h:47
mpris::metadata::TrackId::name
static constexpr const char * name
Definition:
metadata.h:35
mpris::metadata::Length
Definition:
metadata.h:39
mpris::metadata::TrackId::ValueType
core::dbus::types::ObjectPath ValueType
Definition:
metadata.h:36
mpris::metadata::TrackId
Definition:
metadata.h:33
mpris::metadata::ArtUrl::ValueType
std::string ValueType
Definition:
metadata.h:50
src
core
media
mpris
metadata.h
Generated on Tue Mar 8 2016 19:36:07 for Music Hub by
1.8.11