33 lines
660 B
C
33 lines
660 B
C
|
#ifndef FILTERPARAMS_H
|
||
|
#define FILTERPARAMS_H
|
||
|
|
||
|
class FilterParams
|
||
|
{
|
||
|
public:
|
||
|
FilterParams();
|
||
|
|
||
|
bool isReady() const;
|
||
|
void setIsReady(bool newIsReady);
|
||
|
|
||
|
double priceFrom() const;
|
||
|
void setPriceFrom(double newPriceFrom);
|
||
|
|
||
|
double priceTo() const;
|
||
|
void setPriceTo(double newPriceTo);
|
||
|
|
||
|
bool getDisregardState() const;
|
||
|
void setDisregardState(bool newDisregardState);
|
||
|
|
||
|
bool getApllyFilters() const;
|
||
|
void setApllyFilters(bool newApllyFilters);
|
||
|
|
||
|
private:
|
||
|
bool _isReady = true;
|
||
|
double _priceFrom = -1;
|
||
|
double _priceTo = -1;
|
||
|
bool disregardState = false;
|
||
|
bool apllyFilters = false;
|
||
|
};
|
||
|
|
||
|
#endif // FILTERPARAMS_H
|