xref: /haiku/headers/os/package/solver/SolverPackage.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2013, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _PACKAGE__SOLVER_PACKAGE_H_
6 #define _PACKAGE__SOLVER_PACKAGE_H_
7 
8 
9 #include <package/PackageInfo.h>
10 
11 
12 namespace BPackageKit {
13 
14 
15 class BSolverRepository;
16 
17 
18 class BSolverPackage {
19 public:
20 								BSolverPackage(BSolverRepository* repository,
21 									const BPackageInfo& packageInfo);
22 								BSolverPackage(const BSolverPackage& other);
23 								~BSolverPackage();
24 
25 			BSolverRepository*	Repository() const;
26 			const BPackageInfo&	Info() const;
27 
28 			BString				Name() const;
29 			BString				VersionedName() const;
30 			const BPackageVersion& Version() const;
31 
32 			BSolverPackage&		operator=(const BSolverPackage& other);
33 
34 private:
35 			BSolverRepository*	fRepository;
36 			BPackageInfo		fInfo;
37 };
38 
39 
40 }	// namespace BPackageKit
41 
42 
43 #endif // _PACKAGE__SOLVER_PACKAGE_H_
44