2
Gwenview: an image viewer
3
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef SEMANTICINFOBACKENDTEST_H
21
#define SEMANTICINFOBACKENDTEST_H
31
#include <lib/semanticinfo/abstractsemanticinfobackend.h>
37
* Helper class which gathers the metadata retrieved when
38
* AbstractSemanticInfoBackEnd::retrieveSemanticInfo() is called.
40
class SemanticInfoBackEndClient : public QObject
44
SemanticInfoBackEndClient(AbstractSemanticInfoBackEnd*);
46
SemanticInfo semanticInfoForUrl(const KUrl& url) const {
47
return mSemanticInfoForUrl.value(url);
51
void slotSemanticInfoRetrieved(const KUrl&, const SemanticInfo&);
54
QHash<KUrl, SemanticInfo> mSemanticInfoForUrl;
55
AbstractSemanticInfoBackEnd* mBackEnd;
58
class SemanticInfoBackEndTest : public QObject
67
void testTagForLabel();
70
AbstractSemanticInfoBackEnd* mBackEnd;
75
#endif // SEMANTICINFOBACKENDTEST_H