Changeset View
Changeset View
Standalone View
Standalone View
krusader/Filter/filtersettings.h
Show All 33 Lines | |||||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | FilterSettings(); | 36 | FilterSettings(); | ||
37 | FilterSettings& operator=(const FilterSettings& other); | 37 | FilterSettings& operator=(const FilterSettings& other); | ||
38 | 38 | | |||
39 | bool isValid() const { | 39 | bool isValid() const { | ||
40 | return valid; | 40 | return valid; | ||
41 | } | 41 | } | ||
42 | void load(KConfigGroup cfg); | 42 | void load(const KConfigGroup& cfg); | ||
43 | void save(KConfigGroup cfg) const; | 43 | void save(KConfigGroup cfg) const; | ||
44 | KRQuery toQuery() const; | 44 | KRQuery toQuery() const; | ||
45 | 45 | | |||
46 | private: | 46 | private: | ||
47 | enum SizeUnit { | 47 | enum SizeUnit { | ||
48 | Byte = 0, KiloByte, MegaByte, GigaByte | 48 | Byte = 0, KiloByte, MegaByte, GigaByte | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
Show All 20 Lines | 69 | public: | |||
71 | TimeSpan& operator=(const TimeSpan &other); | 71 | TimeSpan& operator=(const TimeSpan &other); | ||
72 | 72 | | |||
73 | int days() const; | 73 | int days() const; | ||
74 | 74 | | |||
75 | int amount; | 75 | int amount; | ||
76 | TimeUnit unit; | 76 | TimeUnit unit; | ||
77 | }; | 77 | }; | ||
78 | 78 | | |||
79 | static void saveDate(QString key, const QDate &date, KConfigGroup &cfg); | 79 | static void saveDate(const QString& key, const QDate &date, KConfigGroup &cfg); | ||
80 | static time_t qdate2time_t(QDate d, bool start); | 80 | static time_t qdate2time_t(QDate d, bool start); | ||
81 | 81 | | |||
82 | bool valid; | 82 | bool valid; | ||
83 | QString searchFor; | 83 | QString searchFor; | ||
84 | bool searchForCase; | 84 | bool searchForCase; | ||
85 | QString mimeType; | 85 | QString mimeType; | ||
86 | bool searchInArchives; | 86 | bool searchInArchives; | ||
87 | bool recursive; | 87 | bool recursive; | ||
Show All 30 Lines |