QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
C:/Users/max/ti/qt5/qvisu/qvitem.h
1 /* QVisu (c) 2015 Maximilian Gauger mgauger@kalassi.de
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12 
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef QVITEM_H
18 #define QVITEM_H
19 
20 #include <QtXml>
21 #include <QString>
22 #include <QMap>
23 
24 class QVItem {
25 public:
26  QVItem(QDomElement item_elem, int index = 0);
27  QVItem();
28 
29  QString getItemName();
30  QString getAction();
31  QString getAttribute(QString attribute);
32  QString toString();
33  int getIndex() { return action_index; }
34 
35 private:
36  QString item;
37  QString action;
38  QMap<QString,QString> attributes;
39 
40  int action_index;
41 };
42 
43 #endif // QVITEM_H
Definition: qvitem.h:24