~thomas-voss/media-hub/fix-seek-does-not-send-reply

« back to all changes in this revision

Viewing changes to src/com/ubuntu/music/player_implementation.h

  • Committer: thomas-voss
  • Date: 2013-10-07 11:07:11 UTC
  • Revision ID: thomas.voss@canonical.com-20131007110711-a6wc1pz09jatz1g0
More refactoring of local spike.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * This program is free software: you can redistribute it and/or modify it
 
4
 * under the terms of the GNU Lesser General Public License version 3,
 
5
 * as published by the Free Software Foundation.
 
6
 *
 
7
 * This program is distributed in the hope that it will be useful,
 
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 * GNU Lesser General Public License for more details.
 
11
 *
 
12
 * You should have received a copy of the GNU Lesser General Public License
 
13
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
 *
 
15
 * Authored by: Thomas Voß <thomas.voss@canonical.com>
 
16
 */
 
17
 
 
18
#ifndef COM_UBUNTU_MUSIC_PLAYER_IMPLEMENTATION_H_
 
19
#define COM_UBUNTU_MUSIC_PLAYER_IMPLEMENTATION_H_
 
20
 
 
21
#include "player_skeleton.h"
 
22
 
 
23
#include <memory>
 
24
 
 
25
namespace com
 
26
{
 
27
namespace ubuntu
 
28
{
 
29
namespace music
 
30
{
 
31
class Engine;
 
32
class Service;
 
33
 
 
34
class PlayerImplementation : public PlayerSkeleton
 
35
{
 
36
public:
 
37
    PlayerImplementation(
 
38
            const org::freedesktop::dbus::types::ObjectPath& session_path,
 
39
            const std::shared_ptr<Service>& service,
 
40
            const std::shared_ptr<Engine>& engine);
 
41
    ~PlayerImplementation();
 
42
 
 
43
    virtual std::shared_ptr<TrackList> track_list();
 
44
 
 
45
    virtual bool open_uri(const Track::UriType& uri);
 
46
    virtual void next();
 
47
    virtual void previous();
 
48
    virtual void play();
 
49
    virtual void pause();
 
50
    virtual void stop();
 
51
    virtual void seek_to(const std::chrono::microseconds& offset);
 
52
 
 
53
private:
 
54
    struct Private;
 
55
    std::unique_ptr<Private> d;
 
56
};
 
57
}
 
58
}
 
59
}
 
60
#endif // COM_UBUNTU_MUSIC_PLAYER_IMPLEMENTATION_H_
 
61