xref: /haiku/src/apps/haikudepot/packagemodel/ScreenshotInfo.h (revision 344ded80d400028c8f561b4b876257b94c12db4a)
1 /*
2  * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>.
3  * Copyright 2016-2023, Andrew Lindesay <apl@lindesay.co.nz>.
4  * All rights reserved. Distributed under the terms of the MIT License.
5  */
6 #ifndef SCREENSHOT_INFO_H
7 #define SCREENSHOT_INFO_H
8 
9 
10 #include <Referenceable.h>
11 #include <String.h>
12 
13 
14 class ScreenshotInfo : public BReferenceable
15 {
16 public:
17 								ScreenshotInfo();
18 								ScreenshotInfo(const BString& code,
19 									int32 width, int32 height, int32 dataSize);
20 								ScreenshotInfo(const ScreenshotInfo& other);
21 
22 			ScreenshotInfo&		operator=(const ScreenshotInfo& other);
23 			bool				operator==(const ScreenshotInfo& other) const;
24 			bool				operator!=(const ScreenshotInfo& other) const;
25 
26 			const BString&		Code() const
27 									{ return fCode; }
28 			int32				Width() const
29 									{ return fWidth; }
30 			int32				Height() const
31 									{ return fHeight; }
32 			int32				DataSize() const
33 									{ return fDataSize; }
34 
35 private:
36 			BString				fCode;
37 			int32				fWidth;
38 			int32				fHeight;
39 			int32				fDataSize;
40 };
41 
42 
43 typedef BReference<ScreenshotInfo> ScreenshotInfoRef;
44 
45 
46 #endif // SCREENSHOT_INFO_H
47