Music Hub  ..
A session-wide music playback service
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
track_list_skeleton.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 CORE_UBUNTU_MEDIA_TRACK_LIST_SKELETON_H_
19 #define CORE_UBUNTU_MEDIA_TRACK_LIST_SKELETON_H_
20 
21 #include <core/media/track_list.h>
22 
23 #include <core/media/player.h>
24 
25 #include <core/dbus/skeleton.h>
26 
27 namespace core
28 {
29 namespace ubuntu
30 {
31 namespace media
32 {
33 class TrackListSkeleton : public core::dbus::Skeleton<core::ubuntu::media::TrackList>
34 {
35 public:
37  const core::dbus::types::ObjectPath& op);
39 
40  bool has_next() const;
41  const Track::Id& next();
42 
43  const core::Property<bool>& can_edit_tracks() const;
44  const core::Property<Container>& tracks() const;
45 
46  const core::Signal<void>& on_track_list_replaced() const;
47  const core::Signal<Track::Id>& on_track_added() const;
48  const core::Signal<Track::Id>& on_track_removed() const;
49  const core::Signal<Track::Id>& on_track_changed() const;
50 
51  core::Property<Container>& tracks();
52 
53 protected:
54  core::Property<bool>& can_edit_tracks();
55 
56  core::Signal<void>& on_track_list_replaced();
57  core::Signal<Track::Id>& on_track_added();
58  core::Signal<Track::Id>& on_track_removed();
59  core::Signal<Track::Id>& on_track_changed();
60 
61 private:
62  struct Private;
63  std::unique_ptr<Private> d;
64 };
65 }
66 }
67 }
68 #endif // CORE_UBUNTU_MEDIA_PROPERTY_H_
const core::Property< Container > & tracks() const
const core::Signal< Track::Id > & on_track_changed() const
const core::Signal< Track::Id > & on_track_removed() const
const core::Signal< void > & on_track_list_replaced() const
const core::Signal< Track::Id > & on_track_added() const
TrackListSkeleton(const core::dbus::types::ObjectPath &op)
const core::Property< bool > & can_edit_tracks() const