Changeset View
Changeset View
Standalone View
Standalone View
autotests/server/fakecollectionscheduler.h
Show All 31 Lines | 31 | { | |||
---|---|---|---|---|---|
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | public: | 33 | public: | ||
34 | FakeCollectionScheduler(QObject *parent = nullptr); | 34 | FakeCollectionScheduler(QObject *parent = nullptr); | ||
35 | void waitForInit(); | 35 | void waitForInit(); | ||
36 | 36 | | |||
37 | protected: | 37 | protected: | ||
38 | void init() override; | 38 | void init() override; | ||
39 | 39 | | |||
40 | bool shouldScheduleCollection(const Collection &) override { return true; } | 40 | bool shouldScheduleCollection(const Collection &) override; | ||
41 | bool hasChanged(const Collection &collection, const Collection &changed) override; | 41 | bool hasChanged(const Collection &collection, const Collection &changed) override; | ||
42 | int collectionScheduleInterval(const Collection &collection) override; | 42 | int collectionScheduleInterval(const Collection &collection) override; | ||
43 | void collectionExpired(const Collection &collection) override; | 43 | void collectionExpired(const Collection &collection) override; | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | QSemaphore m_initCalled; | 46 | QSemaphore m_initCalled; | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | } // namespace Server | 49 | } // namespace Server | ||
50 | } // namespace Akonadi | 50 | } // namespace Akonadi | ||
51 | 51 | | |||
52 | #endif | 52 | #endif |