1 /* 2 * Copyright 2013, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_ 6 #define _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_ 7 8 9 #include <package/PackageResolvableExpression.h> 10 11 12 namespace BPackageKit { 13 14 15 class BSolverRepository; 16 17 18 class BSolverPackageSpecifier { 19 public: 20 BSolverPackageSpecifier(); 21 BSolverPackageSpecifier( 22 const BPackageResolvableExpression& 23 expression); 24 BSolverPackageSpecifier( 25 BSolverRepository* repository, 26 const BPackageResolvableExpression& 27 expression); 28 BSolverPackageSpecifier( 29 const BSolverPackageSpecifier& other); 30 ~BSolverPackageSpecifier(); 31 32 BSolverRepository* Repository() const; 33 const BPackageResolvableExpression& Expression() const; 34 35 BSolverPackageSpecifier& operator=( 36 const BSolverPackageSpecifier& other); 37 38 private: 39 BSolverRepository* fRepository; 40 BPackageResolvableExpression fExpression; 41 }; 42 43 44 } // namespace BPackageKit 45 46 47 #endif // _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_ 48