Debian Codegraph @

src/core/capabilities/ReadLabelCapability.h

raw
1 /****************************************************************************************
2 * Copyright (C) 2009 Dan Meltzer <[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 READLABELCAPABILITY_H
18 #define READLABELCAPABILITY_H
19
20 #include "core/amarokcore_export.h"
21 #include "core/capabilities/Capability.h"
22 #include "core/meta/forward_declarations.h"
23
24 #include <QStringList>
25
26 namespace Capabilities
27 {
28
29 class AMAROKCORE_EXPORT ReadLabelCapability : public Capabilities::Capability
30 {
31 Q_OBJECT
32 public:
33 static Type capabilityInterfaceType() { return Capabilities::Capability::ReadLabel; }
34
35 //Implementors
36 virtual void fetchLabels() = 0;
37 virtual void fetchGlobalLabels() = 0;
38 virtual QStringList labels() = 0;
39
40 Q_SIGNALS:
41 void labelsFetched( const QStringList &);
42
43 };
44
45 }
46 #endif // READLABELCAPABILITY_H