2 * Copyright 2013, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold <ingo_weinhold@gmx.de>
10 #include <package/solver/SolverPackageSpecifier.h>
13 namespace BPackageKit
{
16 BSolverPackageSpecifier::BSolverPackageSpecifier()
25 BSolverPackageSpecifier::BSolverPackageSpecifier(BSolverPackage
* package
)
34 BSolverPackageSpecifier::BSolverPackageSpecifier(const BString
& selectString
)
36 fType(B_SELECT_STRING
),
38 fSelectString(selectString
)
43 BSolverPackageSpecifier::BSolverPackageSpecifier(
44 const BSolverPackageSpecifier
& other
)
47 fPackage(other
.fPackage
),
48 fSelectString(other
.fSelectString
)
53 BSolverPackageSpecifier::~BSolverPackageSpecifier()
58 BSolverPackageSpecifier::BType
59 BSolverPackageSpecifier::Type() const
66 BSolverPackageSpecifier::Package() const
73 BSolverPackageSpecifier::SelectString() const
79 BSolverPackageSpecifier
&
80 BSolverPackageSpecifier::operator=(const BSolverPackageSpecifier
& other
)
83 fPackage
= other
.fPackage
;
84 fSelectString
= other
.fSelectString
;
89 } // namespace BPackageKit