Dependency: Add Package() getter

This commit is contained in:
Ingo Weinhold 2011-06-25 17:11:08 +02:00
parent 9320567ed2
commit 5e972a60c3
2 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@
#include "Version.h"
Dependency::Dependency(Package* package)
Dependency::Dependency(::Package* package)
:
fPackage(package),
fFamily(NULL),

View File

@ -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;