Changeset View
Changeset View
Standalone View
Standalone View
akonadi/tests/fakeentitycache.h
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | public: | ||||
FakeMonitorDependeciesFactory(FakeItemCache* itemCache_, FakeCollectionCache* collectionCache_) | FakeMonitorDependeciesFactory(FakeItemCache* itemCache_, FakeCollectionCache* collectionCache_) | ||||
: Akonadi::ChangeNotificationDependenciesFactory(), itemCache(itemCache_), collectionCache(collectionCache_) | : Akonadi::ChangeNotificationDependenciesFactory(), itemCache(itemCache_), collectionCache(collectionCache_) | ||||
{ | { | ||||
} | } | ||||
virtual Akonadi::NotificationSource* createNotificationSource(QObject *parent) | virtual Akonadi::NotificationSource* createNotificationSource(QObject *parent) | ||||
{ | { | ||||
return new Akonadi::NotificationSource( new FakeNotificationSource( parent ) ); | return new Akonadi::NotificationSource( new FakeNotificationSource( parent ), QString() ); | ||||
} | } | ||||
virtual Akonadi::CollectionCache* createCollectionCache(int maxCapacity, Akonadi::Session *session) | virtual Akonadi::CollectionCache* createCollectionCache(int maxCapacity, Akonadi::Session *session) | ||||
{ | { | ||||
Q_UNUSED(maxCapacity) | Q_UNUSED(maxCapacity) | ||||
Q_UNUSED(session) | Q_UNUSED(session) | ||||
return collectionCache; | return collectionCache; | ||||
} | } | ||||
Show All 15 Lines |