mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 15:19:58 +01:00
Introduction de la nouvelle classe NamesList
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@88 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
31
nameslist.h
Normal file
31
nameslist.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef NAMES_LIST_H
|
||||
#define NAMES_LIST_H
|
||||
#include <QtXml>
|
||||
class NamesList {
|
||||
// constructeurs, destructeur
|
||||
public:
|
||||
NamesList();
|
||||
NamesList(const NamesList &);
|
||||
virtual ~NamesList();
|
||||
|
||||
// attributs
|
||||
private:
|
||||
QHash<QString, QString> hash_names;
|
||||
|
||||
// methodes
|
||||
public:
|
||||
// methodes relatives a la gestion de la liste
|
||||
void addName(const QString &, const QString &);
|
||||
void removeName(const QString &);
|
||||
void clearNames();
|
||||
QList<QString> langs() const;
|
||||
bool isEmpty() const;
|
||||
int count() const;
|
||||
QString &operator[](const QString &);
|
||||
const QString operator[](const QString &) const;
|
||||
|
||||
// methodes relatives a XML
|
||||
void fromXml(const QDomElement &);
|
||||
QDomElement toXml(QDomDocument &) const;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user