1/*
2 * Copyright 2013-2014, Stephan A��mus <superstippi@gmx.de>.
3 * Copyright 2013, Rene Gollent <rene@gollent.com>.
4 * Copyright 2016-2023, Andrew Lindesay <apl@lindesay.co.nz>.
5 * All rights reserved. Distributed under the terms of the MIT License.
6 */
7
8
9#include "ScreenshotInfo.h"
10
11
12ScreenshotInfo::ScreenshotInfo()
13	:
14	fCode(),
15	fWidth(),
16	fHeight(),
17	fDataSize()
18{
19}
20
21
22ScreenshotInfo::ScreenshotInfo(const BString& code,
23		int32 width, int32 height, int32 dataSize)
24	:
25	fCode(code),
26	fWidth(width),
27	fHeight(height),
28	fDataSize(dataSize)
29{
30}
31
32
33ScreenshotInfo::ScreenshotInfo(const ScreenshotInfo& other)
34	:
35	fCode(other.fCode),
36	fWidth(other.fWidth),
37	fHeight(other.fHeight),
38	fDataSize(other.fDataSize)
39{
40}
41
42
43ScreenshotInfo&
44ScreenshotInfo::operator=(const ScreenshotInfo& other)
45{
46	fCode = other.fCode;
47	fWidth = other.fWidth;
48	fHeight = other.fHeight;
49	fDataSize = other.fDataSize;
50	return *this;
51}
52
53
54bool
55ScreenshotInfo::operator==(const ScreenshotInfo& other) const
56{
57	return fCode == other.fCode
58		&& fWidth == other.fWidth
59		&& fHeight == other.fHeight
60		&& fDataSize == other.fDataSize;
61}
62
63
64bool
65ScreenshotInfo::operator!=(const ScreenshotInfo& other) const
66{
67	return !(*this == other);
68}
69