File indexing completed on 2024-04-28 15:40:17

0001 /* SPDX-FileCopyrightText: 2014 Jesper K. Pedersen <blackie@kde.org>
0002 
0003    SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef REMOTECONTROL_REMOTEIMAGEREQUEST_H
0007 #define REMOTECONTROL_REMOTEIMAGEREQUEST_H
0008 
0009 #include "RemoteInterface.h"
0010 #include "Types.h"
0011 
0012 #include <ImageManager/ImageRequest.h>
0013 
0014 namespace RemoteControl
0015 {
0016 
0017 class RemoteImageRequest : public ImageManager::ImageRequest
0018 {
0019 public:
0020     RemoteImageRequest(const DB::FileName &fileName, const QSize &size, int angle, ViewType type, RemoteInterface *client);
0021     bool stillNeeded() const override;
0022     ViewType type() const;
0023 
0024 private:
0025     RemoteInterface *m_interface;
0026     ViewType m_type;
0027 };
0028 
0029 } // namespace RemoteControl
0030 
0031 #endif // REMOTECONTROL_REMOTEIMAGEREQUEST_H