Debian Codegraph @

src/core/capabilities/BoundedPlaybackCapability.h

raw
1 /****************************************************************************************
2 * Copyright (c) 2009 Nikolaj Hald Nielsen <[email protected]> *
3 * *
4 * This program is free software; you can redistribute it and/or modify it under *
5 * the terms of the GNU General Public License as published by the Free Software *
6 * Foundation; either version 2 of the License, or (at your option) any later *
7 * version. *
8 * *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY *
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
11 * PARTICULAR PURPOSE. See the GNU General Public License for more details. *
12 * *
13 * You should have received a copy of the GNU General Public License along with *
14 * this program. If not, see <http://www.gnu.org/licenses/>. *
15 ****************************************************************************************/
16
17 #ifndef METABOUNDEDPLAYBACKCAPABILITY_H
18 #define METABOUNDEDPLAYBACKCAPABILITY_H
19
20 #include "core/capabilities/Capability.h"
21
22 namespace Capabilities {
23
24 /**
25 A capability for tracks that represents a given, bounded, interval of a url, for instance a single track in a long podcast.
26
27 @author Nikolaj Hald Nielsen <[email protected]>
28 */
29 class AMAROKCORE_EXPORT BoundedPlaybackCapability : public Capability
30 {
31 Q_OBJECT
32 public:
33 BoundedPlaybackCapability();
34 ~BoundedPlaybackCapability() override;
35
36 virtual qint64 startPosition() = 0;
37 virtual qint64 endPosition() = 0;
38
39 /**
40 * Get the capabilityInterfaceType of this capability
41 * @return The capabilityInterfaceType ( always Capabilities::Capability::BoundedPlayback; )
42 */
43 static Type capabilityInterfaceType() { return Capability::BoundedPlayback; }
44
45 };
46
47 }
48
49 #endif