Debian Codegraph @

src/core/capabilities/MultiPlayableCapability.h

raw
1 /****************************************************************************************
2 * Copyright (c) 2008 Shane King <[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 AMAROK_MULTIPLAYABLECAPABILITY_H
18 #define AMAROK_MULTIPLAYABLECAPABILITY_H
19
20 #include "core/capabilities/Capability.h"
21
22 #include <QUrl>
23
24 namespace Capabilities
25 {
26 class AMAROKCORE_EXPORT MultiPlayableCapability : public Capability
27 {
28 Q_OBJECT
29
30 public:
31 ~MultiPlayableCapability() override;
32
33 static Type capabilityInterfaceType()
34 { return Capabilities::Capability::MultiPlayable; }
35
36 virtual void fetchFirst() = 0;
37 virtual void fetchNext() = 0;
38
39 Q_SIGNALS:
40 void playableUrlFetched( const QUrl &url );
41 };
42 }
43
44 #endif // AMAROK_MULTIPLAYABLECAPABILITY_H