From 2b286a9f04268c56333d334af54beb8039992273 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 4 Mar 2010 16:24:20 +0000 Subject: Rename NfoTranslator to KNfoTranslator, so that KMetaDataWidget can be moved to kdelibs for KDE SC 4.5 (some interfaces of KMetaDataWidget need to be cleaned up first). KNfoTranslator is marked as private class, as it is not clear yet whether it should be used by other classes like KFileMetaInfo. svn path=/trunk/KDE/kdebase/apps/; revision=1098897 --- src/panels/information/knfotranslator_p.h | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/panels/information/knfotranslator_p.h (limited to 'src/panels/information/knfotranslator_p.h') diff --git a/src/panels/information/knfotranslator_p.h b/src/panels/information/knfotranslator_p.h new file mode 100644 index 000000000..293eda4c6 --- /dev/null +++ b/src/panels/information/knfotranslator_p.h @@ -0,0 +1,47 @@ +/***************************************************************************** + * Copyright (C) 2010 by Peter Penz * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License version 2 as published by the Free Software Foundation. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public License * + * along with this library; see the file COPYING.LIB. If not, write to * + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * + * Boston, MA 02110-1301, USA. * + *****************************************************************************/ + +#ifndef KNFOTRANSLATOR_H +#define KNFOTRANSLATOR_H + +#include +#include + +class QUrl; + +/** + * @brief Returns translations for Nepomuk File Ontology URIs. + * + * See http://www.semanticdesktop.org/ontologies/nfo/. + */ +class KNfoTranslator +{ +public: + static KNfoTranslator& instance(); + QString translation(const QUrl& uri) const; + +protected: + KNfoTranslator(); + virtual ~KNfoTranslator(); + friend class KNfoTranslatorSingleton; + +private: + QHash m_hash; +}; + +#endif // KNFO_TRANSLATOR_H -- cgit v1.3