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