20#include "pugixml/src/pugixml.hpp"
47 void addName(
const QString &,
const QString &);
50 QList<QString>
langs()
const;
54 const QString
operator[](
const QString &)
const;
57 QString
name(
const QString & = QString())
const;
60 void fromXml(
const QDomElement &,
const QHash<QString, QString> & = QHash<QString, QString>());
61 void fromXml(
const pugi::xml_node &xml_element,
const QHash<QString, QString> &xml_options = QHash<QString, QString>());
62 QDomElement
toXml(QDomDocument &,
const QHash<QString, QString> & = QHash<QString, QString>())
const;
65 QHash<QString, QString>
getXmlOptions(
const QHash<QString, QString> & = QHash<QString, QString>())
const;
Definition nameslist.h:31
int count() const
Definition nameslist.cpp:87
virtual ~NamesList()
Definition nameslist.cpp:35
QHash< QString, QString > hash_names
Definition nameslist.h:39
QString & operator[](const QString &)
Definition nameslist.cpp:97
QString name(const QString &=QString()) const
NamesList::name Return the adequate name regarding the current system locale. By order of preference,...
Definition nameslist.cpp:246
static int MetaTypeId
Definition nameslist.h:42
bool isEmpty() const
Definition nameslist.cpp:79
QDomElement toXml(QDomDocument &, const QHash< QString, QString > &=QHash< QString, QString >()) const
Definition nameslist.cpp:178
void clearNames()
Definition nameslist.cpp:63
bool operator==(const NamesList &) const
Definition nameslist.cpp:228
QList< QString > langs() const
Definition nameslist.cpp:71
void fromXml(const QDomElement &, const QHash< QString, QString > &=QHash< QString, QString >())
Definition nameslist.cpp:122
bool operator!=(const NamesList &) const
Definition nameslist.cpp:219
QHash< QString, QString > getXmlOptions(const QHash< QString, QString > &=QHash< QString, QString >()) const
Definition nameslist.cpp:200
void addName(const QString &, const QString &)
Definition nameslist.cpp:46
void removeName(const QString &)
Definition nameslist.cpp:56
NamesList()
Definition nameslist.cpp:28
Q_DECLARE_METATYPE(NamesList)