BLowLevelPackageContentHandler interface extension

HandleAttributeDone(): Add parentToken parameter.
This commit is contained in:
Ingo Weinhold
2011-11-25 06:18:50 +01:00
parent 37880dd0a7
commit 2fce201893
4 changed files with 12 additions and 8 deletions
@@ -32,7 +32,7 @@ public:
virtual status_t HandleAttributeDone(
BHPKGAttributeID attributeID,
const BPackageAttributeValue& value,
void* token) = 0;
void* parentToken, void* token) = 0;
virtual void HandleErrorOccurred() = 0;
@@ -145,7 +145,8 @@ protected:
struct LowLevelAttributeHandler : AttributeHandler {
LowLevelAttributeHandler();
LowLevelAttributeHandler(uint8 id,
const BPackageAttributeValue& value, void* token);
const BPackageAttributeValue& value, void* parentToken,
void* token);
virtual status_t HandleAttribute(
AttributeHandlerContext* context, uint8 id,
@@ -153,6 +154,7 @@ protected:
virtual status_t Delete(AttributeHandlerContext* context);
private:
void* fParentToken;
void* fToken;
uint8 fID;
AttributeValue fValue;