1*88af15cfSAndrew Lindesay /* 2*88af15cfSAndrew Lindesay * Copyright 2023, Andrew Lindesay <apl@lindesay.co.nz>. 3*88af15cfSAndrew Lindesay * All rights reserved. Distributed under the terms of the MIT License. 4*88af15cfSAndrew Lindesay */ 5*88af15cfSAndrew Lindesay #ifndef CACHE_SCREENSHOT_PROCESS__H 6*88af15cfSAndrew Lindesay #define CACHE_SCREENSHOT_PROCESS__H 7*88af15cfSAndrew Lindesay 8*88af15cfSAndrew Lindesay 9*88af15cfSAndrew Lindesay #include "AbstractProcess.h" 10*88af15cfSAndrew Lindesay #include "PackageScreenshotRepository.h" 11*88af15cfSAndrew Lindesay 12*88af15cfSAndrew Lindesay 13*88af15cfSAndrew Lindesay class Model; 14*88af15cfSAndrew Lindesay 15*88af15cfSAndrew Lindesay 16*88af15cfSAndrew Lindesay class CacheScreenshotProcess : public AbstractProcess { 17*88af15cfSAndrew Lindesay public: 18*88af15cfSAndrew Lindesay CacheScreenshotProcess( 19*88af15cfSAndrew Lindesay Model* model, ScreenshotCoordinate& screenshotCoordinate); 20*88af15cfSAndrew Lindesay virtual ~CacheScreenshotProcess(); 21*88af15cfSAndrew Lindesay 22*88af15cfSAndrew Lindesay const char* Name() const; 23*88af15cfSAndrew Lindesay const char* Description() const; 24*88af15cfSAndrew Lindesay 25*88af15cfSAndrew Lindesay protected: 26*88af15cfSAndrew Lindesay virtual status_t RunInternal(); 27*88af15cfSAndrew Lindesay 28*88af15cfSAndrew Lindesay private: 29*88af15cfSAndrew Lindesay Model* fModel; 30*88af15cfSAndrew Lindesay ScreenshotCoordinate 31*88af15cfSAndrew Lindesay fScreenshotCoordinate; 32*88af15cfSAndrew Lindesay }; 33*88af15cfSAndrew Lindesay 34*88af15cfSAndrew Lindesay 35*88af15cfSAndrew Lindesay #endif // CACHE_SCREENSHOT_PROCESS__H