xref: /haiku/src/apps/haikudepot/packagemodel/PublisherInfo.cpp (revision 984f843b917a1c4e077915c5961a6ef1cf8dabc7)
1 /*
2  * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>.
3  * Copyright 2013, Rene Gollent <rene@gollent.com>.
4  * Copyright 2016-2024, Andrew Lindesay <apl@lindesay.co.nz>.
5  * All rights reserved. Distributed under the terms of the MIT License.
6  */
7 
8 
9 #include "PublisherInfo.h"
10 
11 
12 PublisherInfo::PublisherInfo()
13 	:
14 	fName(),
15 	fWebsite()
16 {
17 }
18 
19 
20 PublisherInfo::PublisherInfo(const BString& name, const BString& website)
21 	:
22 	fName(name),
23 	fWebsite(website)
24 {
25 }
26 
27 
28 PublisherInfo::PublisherInfo(const PublisherInfo& other)
29 	:
30 	fName(other.fName),
31 	fWebsite(other.fWebsite)
32 {
33 }
34 
35 
36 PublisherInfo&
37 PublisherInfo::operator=(const PublisherInfo& other)
38 {
39 	fName = other.fName;
40 	fWebsite = other.fWebsite;
41 	return *this;
42 }
43 
44 
45 bool
46 PublisherInfo::operator==(const PublisherInfo& other) const
47 {
48 	return fName == other.fName && fWebsite == other.fWebsite;
49 }
50 
51 
52 bool
53 PublisherInfo::operator!=(const PublisherInfo& other) const
54 {
55 	return !(*this == other);
56 }
57