xref: /haiku/src/apps/haikudepot/packagemodel/PublisherInfo.cpp (revision 4c07199d8201fcf267e90be0d24b76799d03cea6)
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 "PublisherInfo.h"
10 
11 
12  PublisherInfo::PublisherInfo()
13  	:
14  	fName(),
15  	fEmail(),
16  	fWebsite()
17  {
18  }
19 
20 
21  PublisherInfo::PublisherInfo(const BString& name, const BString& email,
22  		const BString& website)
23  	:
24  	fName(name),
25  	fEmail(email),
26  	fWebsite(website)
27  {
28  }
29 
30 
31  PublisherInfo::PublisherInfo(const PublisherInfo& other)
32  	:
33  	fName(other.fName),
34  	fEmail(other.fEmail),
35  	fWebsite(other.fWebsite)
36  {
37  }
38 
39 
40  PublisherInfo&
41  PublisherInfo::operator=(const PublisherInfo& other)
42  {
43  	fName = other.fName;
44  	fEmail = other.fEmail;
45  	fWebsite = other.fWebsite;
46  	return *this;
47  }
48 
49 
50  bool
51  PublisherInfo::operator==(const PublisherInfo& other) const
52  {
53  	return fName == other.fName
54  		&& fEmail == other.fEmail
55  		&& fWebsite == other.fWebsite;
56  }
57 
58 
59  bool
60  PublisherInfo::operator!=(const PublisherInfo& other) const
61  {
62  	return !(*this == other);
63  }
64