File indexing completed on 2024-05-05 04:22:00
0001 /* SPDX-FileCopyrightText: 2003-2020 The KPhotoAlbum Development Team 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #include "PreloadRequest.h" 0007 0008 #include <kpathumbnails/ThumbnailCache.h> 0009 0010 ImageManager::PreloadRequest::PreloadRequest(const DB::FileName &fileName, const QSize &size, int angle, ImageClientInterface *client, const ThumbnailCache *thumbnailCache) 0011 : ImageRequest(fileName, size, angle, client) 0012 , m_thumbnailCache(thumbnailCache) 0013 { 0014 } 0015 0016 bool ImageManager::PreloadRequest::stillNeeded() const 0017 { 0018 return !m_thumbnailCache->contains(databaseFileName()); 0019 } 0020 // vi:expandtab:tabstop=4 shiftwidth=4: