2013-04-01 04:25:37 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2013, Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_
|
|
|
|
#define _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_
|
|
|
|
|
|
|
|
|
2013-04-12 02:21:49 +04:00
|
|
|
#include <String.h>
|
2013-04-01 04:25:37 +04:00
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
|
2013-04-12 02:21:49 +04:00
|
|
|
class BSolverPackage;
|
2013-04-01 04:25:37 +04:00
|
|
|
|
|
|
|
|
|
|
|
class BSolverPackageSpecifier {
|
2013-04-12 02:21:49 +04:00
|
|
|
public:
|
|
|
|
enum BType {
|
|
|
|
B_UNSPECIFIED,
|
|
|
|
B_PACKAGE,
|
|
|
|
B_SELECT_STRING
|
|
|
|
};
|
|
|
|
|
2013-04-01 04:25:37 +04:00
|
|
|
public:
|
|
|
|
BSolverPackageSpecifier();
|
2013-04-12 02:21:49 +04:00
|
|
|
explicit BSolverPackageSpecifier(
|
|
|
|
BSolverPackage* package);
|
|
|
|
explicit BSolverPackageSpecifier(
|
|
|
|
const BString& selectString);
|
2013-04-01 04:25:37 +04:00
|
|
|
BSolverPackageSpecifier(
|
|
|
|
const BSolverPackageSpecifier& other);
|
|
|
|
~BSolverPackageSpecifier();
|
|
|
|
|
2013-04-12 02:21:49 +04:00
|
|
|
BType Type() const;
|
|
|
|
BSolverPackage* Package() const;
|
|
|
|
const BString& SelectString() const;
|
2013-04-01 04:25:37 +04:00
|
|
|
|
|
|
|
BSolverPackageSpecifier& operator=(
|
|
|
|
const BSolverPackageSpecifier& other);
|
|
|
|
|
|
|
|
private:
|
2013-04-12 02:21:49 +04:00
|
|
|
BType fType;
|
|
|
|
BSolverPackage* fPackage;
|
|
|
|
BString fSelectString;
|
2013-04-01 04:25:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__SOLVER_PACKAGE_SPECIFIER_H_
|