xref: /haiku/src/apps/haikudepot/packagemodel/PublisherInfo.h (revision 82bfaa954dcfd90582fb2c1a0e918971eea57091)
1 /*
2  * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>.
3  * Copyright 2016-2023, Andrew Lindesay <apl@lindesay.co.nz>.
4  * All rights reserved. Distributed under the terms of the MIT License.
5  */
6  #ifndef PUBLISHER_INFO_H
7  #define PUBLISHER_INFO_H
8 
9 
10  #include <String.h>
11 
12 
13  class PublisherInfo {
14  public:
15  								PublisherInfo();
16  								PublisherInfo(const BString& name,
17  									const BString& email,
18  									const BString& website);
19  								PublisherInfo(const PublisherInfo& other);
20 
21  			PublisherInfo&		operator=(const PublisherInfo& other);
22  			bool				operator==(const PublisherInfo& other) const;
23  			bool				operator!=(const PublisherInfo& other) const;
24 
25  			const BString&		Name() const
26  									{ return fName; }
27  			const BString&		Email() const
28  									{ return fEmail; }
29  			const BString&		Website() const
30  									{ return fWebsite; }
31 
32  private:
33  			BString				fName;
34  			BString				fEmail;
35  			BString				fWebsite;
36  };
37 
38  #endif // PUBLISHER_INFO_H
39