diff options
| author | Peter Penz <[email protected]> | 2010-03-04 16:24:20 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-04 16:24:20 +0000 |
| commit | 2b286a9f04268c56333d334af54beb8039992273 (patch) | |
| tree | b1f6aaa23e0e7aa79e20e4798b0b6a3e60385143 /src/panels/information/knfotranslator_p.h | |
| parent | a0b010bb00fe10f2b3e927ff0c465839d6993b84 (diff) | |
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
Diffstat (limited to 'src/panels/information/knfotranslator_p.h')
| -rw-r--r-- | src/panels/information/knfotranslator_p.h | 47 |
1 files changed, 47 insertions, 0 deletions
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 <[email protected]> * + * * + * 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 <QHash> +#include <QString> + +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<QString, QString> m_hash; +}; + +#endif // KNFO_TRANSLATOR_H |
