Dependency: Add Package() getter
This commit is contained in:
parent
9320567ed2
commit
5e972a60c3
@ -12,7 +12,7 @@
|
||||
#include "Version.h"
|
||||
|
||||
|
||||
Dependency::Dependency(Package* package)
|
||||
Dependency::Dependency(::Package* package)
|
||||
:
|
||||
fPackage(package),
|
||||
fFamily(NULL),
|
||||
|
@ -25,7 +25,7 @@ using BPackageKit::BPackageResolvableOperator;
|
||||
class Dependency : public BReferenceable,
|
||||
public DoublyLinkedListLinkImpl<Dependency> {
|
||||
public:
|
||||
Dependency(Package* package);
|
||||
Dependency(::Package* package);
|
||||
virtual ~Dependency();
|
||||
|
||||
status_t Init(const char* name);
|
||||
@ -35,6 +35,9 @@ public:
|
||||
// version is optional; object takes over
|
||||
// ownership
|
||||
|
||||
::Package* Package() const
|
||||
{ return fPackage; }
|
||||
|
||||
void SetFamily(DependencyFamily* family)
|
||||
{ fFamily = family; }
|
||||
DependencyFamily* Family() const
|
||||
@ -48,7 +51,7 @@ public:
|
||||
const char* Name() const { return fName; }
|
||||
|
||||
private:
|
||||
Package* fPackage;
|
||||
::Package* fPackage;
|
||||
DependencyFamily* fFamily;
|
||||
::Resolvable* fResolvable;
|
||||
char* fName;
|
||||
|
Loading…
Reference in New Issue
Block a user