/* * Copyright 2013-2014, Stephan Aßmus . * Copyright 2016-2023, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef SCREENSHOT_INFO_H #define SCREENSHOT_INFO_H #include #include class ScreenshotInfo : public BReferenceable { public: ScreenshotInfo(); ScreenshotInfo(const BString& code, int32 width, int32 height, int32 dataSize); ScreenshotInfo(const ScreenshotInfo& other); ScreenshotInfo& operator=(const ScreenshotInfo& other); bool operator==(const ScreenshotInfo& other) const; bool operator!=(const ScreenshotInfo& other) const; const BString& Code() const { return fCode; } int32 Width() const { return fWidth; } int32 Height() const { return fHeight; } int32 DataSize() const { return fDataSize; } private: BString fCode; int32 fWidth; int32 fHeight; int32 fDataSize; }; typedef BReference ScreenshotInfoRef; #endif // SCREENSHOT_INFO_H