source: s10k/XmlTools/xmlfilter.cpp@ 1109

Last change on this file since 1109 was 1073, checked in by s10k, 7 years ago

added XML Tools latest version (2.0d) and s10k's common libs

File size: 1.3 KB
RevLine 
[1073]1#include "xmlfilter.h"
2
3XmlFilter::XmlFilter()
4{
5
6}
7
8XmlFilter::XmlFilter(QString elementName, QString parentElementName, QString attributeName, QString attributeValue){
9 this->elementName=elementName;
10 this->parentElementName=parentElementName;
11 this->attributeName=attributeName;
12 this->attributeValue=attributeValue;
13}
14
15// QStrings
16
17QString XmlFilter::getElementName(){
18 return this->elementName;
19}
20
21QString XmlFilter::getParentElementName(){
22 return this->parentElementName;
23}
24
25QString XmlFilter::getAttributeName(){
26 return this->attributeName;
27}
28
29QString XmlFilter::getAttributeValue(){
30 return this->attributeValue;
31}
32
33void XmlFilter::setElementName(QString elementName){
34 this->elementName=elementName;
35}
36
37void XmlFilter::setParentElementName(QString parentElementName){
38 this->parentElementName=parentElementName;
39}
40
41void XmlFilter::setAttributeName(QString attributeName){
42 this->attributeName=attributeName;
43}
44
45void XmlFilter::setAttributeValue(QString attributeValue){
46 this->attributeValue=attributeValue;
47}
48
49// Clears filter
50void XmlFilter::clear(){
51 this->elementName.clear();
52 this->parentElementName.clear();
53 this->attributeName.clear();
54 this->attributeValue.clear();
55}
Note: See TracBrowser for help on using the repository browser.