Music Hub
..
A session-wide music playback service
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Friends
service.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2013 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
#ifndef COM_UBUNTU_MUSIC_SERVICE_H_
19
#define COM_UBUNTU_MUSIC_SERVICE_H_
20
21
#include <memory>
22
23
namespace
com
24
{
25
namespace
ubuntu
26
{
27
namespace
music
28
{
29
class
Service
:
public
std::enable_shared_from_this<Service>
30
{
31
public
:
32
struct
Client
33
{
34
static
const
std::shared_ptr<Service>
instance
();
35
};
36
37
Service
(
const
Service
&) =
delete
;
38
~Service
();
39
40
Service
&
operator=
(
const
Service
&) =
delete
;
41
bool
operator==
(
const
Service
&)
const
=
delete
;
42
43
std::shared_ptr<Player>
create_session
();
44
45
private
:
46
friend
struct
Client
;
47
Service
();
48
};
49
}
50
}
51
}
52
53
#endif // COM_UBUNTU_MUSIC_SERVICE_H_
include
com
ubuntu
music
service.h
Generated on Fri Sep 20 2013 11:10:42 for Music Hub by
1.8.4