TreeFrogFramework  1.18
thtmlattribute.h
Go to the documentation of this file.
1 #ifndef THTMLATTRIBUTE_H
2 #define THTMLATTRIBUTE_H
3 
4 #include <QStringList>
5 #include <QPair>
6 #include <TGlobal>
7 
8 
9 class T_CORE_EXPORT THtmlAttribute : public QList<QPair<QString, QString>>
10 {
11 public:
13  THtmlAttribute(const QString &key, const QString &value);
14  THtmlAttribute(const THtmlAttribute &other);
15  THtmlAttribute(const QList<QPair<QString, QString>> &list);
16 
17  bool contains(const QString &key) const;
18  void prepend(const QString &key, const QString &value);
19  void append(const QString &key, const QString &value);
20  THtmlAttribute &operator()(const QString &key, const QString &value);
21  THtmlAttribute &operator=(const THtmlAttribute &other);
22  THtmlAttribute operator|(const THtmlAttribute &other) const;
23  QString toString(bool escape = true) const;
24 };
25 
26 Q_DECLARE_METATYPE(THtmlAttribute)
27 
28 #endif // TVIEWHELPER_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
TOption operator|(const TOption &o1, const TOption &o2)
Definition: toption.cpp:11
The THtmlAttribute class represents HTML attributes for customizing web elements. ...
Definition: thtmlattribute.h:9
THtmlAttribute()
Constructor.
Definition: thtmlattribute.h:12