Changeset View
Changeset View
Standalone View
Standalone View
tests/testlib/akonadifakejobs.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
42 | return m_resource; | 42 | return m_resource; | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | void AkonadiFakeCollectionFetchJob::setResource(const QString &resource) | 45 | void AkonadiFakeCollectionFetchJob::setResource(const QString &resource) | ||
46 | { | 46 | { | ||
47 | m_resource = resource; | 47 | m_resource = resource; | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | bool AkonadiFakeCollectionFetchJob::filtered() const | | |||
51 | { | | |||
52 | return m_filter; | | |||
53 | } | | |||
54 | | ||||
55 | void AkonadiFakeCollectionFetchJob::setFiltered(bool filter) | | |||
56 | { | | |||
57 | m_filter = filter; | | |||
58 | } | | |||
59 | | ||||
60 | void AkonadiFakeCollectionSearchJob::setCollections(const Akonadi::Collection::List &collections) | | |||
61 | { | | |||
62 | m_collections = collections; | | |||
63 | } | | |||
64 | | ||||
65 | Akonadi::Collection::List AkonadiFakeCollectionSearchJob::collections() const | | |||
66 | { | | |||
67 | return isDone() ? m_collections : Akonadi::Collection::List(); | | |||
68 | } | | |||
69 | | ||||
70 | void AkonadiFakeItemFetchJob::setItems(const Akonadi::Item::List &items) | 50 | void AkonadiFakeItemFetchJob::setItems(const Akonadi::Item::List &items) | ||
71 | { | 51 | { | ||
72 | m_items = items; | 52 | m_items = items; | ||
73 | } | 53 | } | ||
74 | 54 | | |||
75 | Akonadi::Item::List AkonadiFakeItemFetchJob::items() const | 55 | Akonadi::Item::List AkonadiFakeItemFetchJob::items() const | ||
76 | { | 56 | { | ||
77 | if (expectedError() != KJob::NoError) | 57 | if (expectedError() != KJob::NoError) | ||
Show All 25 Lines |