source: XmlTools2/trunk/xmlfilter.cpp@ 1060

Last change on this file since 1060 was 920, checked in by s10k, 11 years ago

more fixes and updated examples

File size: 1.3 KB
RevLine 
[906]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}
[920]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.