ACF $AcfVersion:0$
CComponentMetaDescriptionEncoder.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7#include <QtCore/QStringList>
8#include <QtCore/QMap>
9
10
11namespace icomp
12{
13
14
19{
20public:
21 explicit CComponentMetaDescriptionEncoder(const QString& metaDescription);
22
26 const QStringList& GetMetaKeys() const;
27
31 const QStringList& GetValues(const QString& key = QString()) const;
32
36 const QStringList& GetUnassignedKeywords() const;
37
38private:
39 typedef QMap<QString, QStringList> MetaValuesMap;
40
41 MetaValuesMap m_metaValuesMap;
42 QStringList m_metaKeys;
43 QStringList m_keywords;
44 QStringList m_unassignedKeywords;
45};
46
47
48} // namespace icomp
49
50
51
52
Class to decode/encode the component category into human readable text.
const QStringList & GetValues(const QString &key=QString()) const
Get value list for the given key.
const QStringList & GetMetaKeys() const
Get meta keys using in the meta-description.
CComponentMetaDescriptionEncoder(const QString &metaDescription)
const QStringList & GetUnassignedKeywords() const
Get the keyword list.
Package with interfaces and class used for components concept.