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