/* * Copyright 2013-2014, Stephan Aßmus . * Copyright 2013, Rene Gollent . * Copyright 2016-2023, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #include "PublisherInfo.h" PublisherInfo::PublisherInfo() : fName(), fEmail(), fWebsite() { } PublisherInfo::PublisherInfo(const BString& name, const BString& email, const BString& website) : fName(name), fEmail(email), fWebsite(website) { } PublisherInfo::PublisherInfo(const PublisherInfo& other) : fName(other.fName), fEmail(other.fEmail), fWebsite(other.fWebsite) { } PublisherInfo& PublisherInfo::operator=(const PublisherInfo& other) { fName = other.fName; fEmail = other.fEmail; fWebsite = other.fWebsite; return *this; } bool PublisherInfo::operator==(const PublisherInfo& other) const { return fName == other.fName && fEmail == other.fEmail && fWebsite == other.fWebsite; } bool PublisherInfo::operator!=(const PublisherInfo& other) const { return !(*this == other); }