xref: /haiku/headers/os/package/solver/SolverPackage.h (revision ecd7a82e0d5f1eb41152fca68695b3410a5c78de)
11a4d020dSIngo Weinhold /*
21a4d020dSIngo Weinhold  * Copyright 2013, Haiku, Inc. All Rights Reserved.
31a4d020dSIngo Weinhold  * Distributed under the terms of the MIT License.
41a4d020dSIngo Weinhold  */
51a4d020dSIngo Weinhold #ifndef _PACKAGE__SOLVER_PACKAGE_H_
61a4d020dSIngo Weinhold #define _PACKAGE__SOLVER_PACKAGE_H_
71a4d020dSIngo Weinhold 
81a4d020dSIngo Weinhold 
91a4d020dSIngo Weinhold #include <package/PackageInfo.h>
101a4d020dSIngo Weinhold 
111a4d020dSIngo Weinhold 
121a4d020dSIngo Weinhold namespace BPackageKit {
131a4d020dSIngo Weinhold 
141a4d020dSIngo Weinhold 
151a4d020dSIngo Weinhold class BSolverRepository;
161a4d020dSIngo Weinhold 
171a4d020dSIngo Weinhold 
181a4d020dSIngo Weinhold class BSolverPackage {
191a4d020dSIngo Weinhold public:
201a4d020dSIngo Weinhold 								BSolverPackage(BSolverRepository* repository,
211a4d020dSIngo Weinhold 									const BPackageInfo& packageInfo);
221a4d020dSIngo Weinhold 								BSolverPackage(const BSolverPackage& other);
231a4d020dSIngo Weinhold 								~BSolverPackage();
241a4d020dSIngo Weinhold 
251a4d020dSIngo Weinhold 			BSolverRepository*	Repository() const;
261a4d020dSIngo Weinhold 			const BPackageInfo&	Info() const;
271a4d020dSIngo Weinhold 
281a4d020dSIngo Weinhold 			BString				Name() const;
291a4d020dSIngo Weinhold 			BString				VersionedName() const;
30*ecd7a82eSIngo Weinhold 			const BPackageVersion& Version() const;
311a4d020dSIngo Weinhold 
321a4d020dSIngo Weinhold 			BSolverPackage&		operator=(const BSolverPackage& other);
331a4d020dSIngo Weinhold 
341a4d020dSIngo Weinhold private:
351a4d020dSIngo Weinhold 			BSolverRepository*	fRepository;
361a4d020dSIngo Weinhold 			BPackageInfo		fInfo;
371a4d020dSIngo Weinhold };
381a4d020dSIngo Weinhold 
391a4d020dSIngo Weinhold 
401a4d020dSIngo Weinhold }	// namespace BPackageKit
411a4d020dSIngo Weinhold 
421a4d020dSIngo Weinhold 
431a4d020dSIngo Weinhold #endif // _PACKAGE__SOLVER_PACKAGE_H_
44