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 public: 16 ScreenshotInfo(); 17 ScreenshotInfo(const BString& code, 18 int32 width, int32 height, int32 dataSize); 19 ScreenshotInfo(const ScreenshotInfo& other); 20 21 ScreenshotInfo& operator=(const ScreenshotInfo& other); 22 bool operator==(const ScreenshotInfo& other) const; 23 bool operator!=(const ScreenshotInfo& other) const; 24 25 const BString& Code() const 26 { return fCode; } 27 int32 Width() const 28 { return fWidth; } 29 int32 Height() const 30 { return fHeight; } 31 int32 DataSize() const 32 { return fDataSize; } 33 34 private: 35 BString fCode; 36 int32 fWidth; 37 int32 fHeight; 38 int32 fDataSize; 39 }; 40 41 42 typedef BReference<ScreenshotInfo> ScreenshotInfoRef; 43 44 45 #endif // SCREENSHOT_INFO_H 46