Changeset View
Changeset View
Standalone View
Standalone View
src/terms.h
Show All 25 Lines | |||||
26 | #include <qcompilerdetection.h> | 26 | #include <qcompilerdetection.h> | ||
27 | 27 | | |||
28 | #ifdef Q_COMPILER_INITIALIZER_LISTS | 28 | #ifdef Q_COMPILER_INITIALIZER_LISTS | ||
29 | #include <initializer_list> | 29 | #include <initializer_list> | ||
30 | #endif | 30 | #endif | ||
31 | 31 | | |||
32 | #include <QString> | 32 | #include <QString> | ||
33 | #include <QStringList> | 33 | #include <QStringList> | ||
34 | #include <QDate> | ||||
34 | 35 | | |||
35 | #include "kactivitiesstats_export.h" | 36 | #include "kactivitiesstats_export.h" | ||
36 | 37 | | |||
37 | namespace KActivities { | 38 | namespace KActivities { | ||
38 | namespace Stats { | 39 | namespace Stats { | ||
39 | 40 | | |||
40 | namespace Terms { | 41 | namespace Terms { | ||
41 | /** | 42 | /** | ||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 172 | struct KACTIVITIESSTATS_EXPORT Url { | |||
197 | #endif | 198 | #endif | ||
198 | 199 | | |||
199 | Url(QStringList urlPatterns); | 200 | Url(QStringList urlPatterns); | ||
200 | Url(QString urlPattern); | 201 | Url(QString urlPattern); | ||
201 | 202 | | |||
202 | const QStringList values; | 203 | const QStringList values; | ||
203 | 204 | | |||
204 | }; | 205 | }; | ||
206 | | ||||
207 | /** | ||||
208 | * On which start access date do you want to filter ? | ||||
209 | */ | ||||
210 | struct KACTIVITIESSTATS_EXPORT Date { | ||||
211 | Date(QDate value); | ||||
212 | static Date today(); | ||||
213 | static Date yesterday(); | ||||
214 | static Date fromString(QString); | ||||
215 | QDate value; | ||||
216 | }; | ||||
217 | | ||||
205 | } // namespace Terms | 218 | } // namespace Terms | ||
206 | 219 | | |||
207 | } // namespace Stats | 220 | } // namespace Stats | ||
208 | } // namespace KActivities | 221 | } // namespace KActivities | ||
209 | 222 | | |||
210 | KACTIVITIESSTATS_EXPORT | 223 | KACTIVITIESSTATS_EXPORT | ||
211 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Order &order); | 224 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Order &order); | ||
212 | 225 | | |||
Show All 13 Lines | |||||
226 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Url &url); | 239 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Url &url); | ||
227 | 240 | | |||
228 | KACTIVITIESSTATS_EXPORT | 241 | KACTIVITIESSTATS_EXPORT | ||
229 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Limit &limit); | 242 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Limit &limit); | ||
230 | 243 | | |||
231 | KACTIVITIESSTATS_EXPORT | 244 | KACTIVITIESSTATS_EXPORT | ||
232 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Offset &offset); | 245 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Offset &offset); | ||
233 | 246 | | |||
247 | KACTIVITIESSTATS_EXPORT | ||||
248 | QDebug operator<<(QDebug dbg, const KActivities::Stats::Terms::Date &date); | ||||
249 | | ||||
234 | #endif // KACTIVITIES_STATS_TERMS_H | 250 | #endif // KACTIVITIES_STATS_TERMS_H | ||
235 | 251 | |