PNPkurs-PIbd-31-Alekseev-I-S/service/filterparams.h
Иван Алексеев f522412382 готово
2025-01-15 22:57:00 +04:00

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