diff options
Diffstat (limited to 'src/panels/information/nfotranslator.h')
| -rw-r--r-- | src/panels/information/nfotranslator.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/panels/information/nfotranslator.h b/src/panels/information/nfotranslator.h new file mode 100644 index 000000000..4a51c60f3 --- /dev/null +++ b/src/panels/information/nfotranslator.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 NFOTRANSLATOR_H +#define NFOTRANSLATOR_H + +#include <QHash> +#include <QString> + +class QUrl; + +/** + * @brief Returns translations for Nepomuk File Ontology URIs. + * + * See http://www.semanticdesktop.org/ontologies/nfo/. + */ +class NfoTranslator +{ +public: + static NfoTranslator& instance(); + QString translation(const QUrl& uri) const; + +protected: + NfoTranslator(); + virtual ~NfoTranslator(); + friend class NfoTranslatorSingleton; + +private: + QHash<QString, QString> m_hash; +}; + +#endif // NFO_TRANSLATOR_H |
