xref: /haiku/src/add-ons/kernel/file_systems/packagefs/nodes/UnpackingAttributeDirectoryCookie.h (revision 4c61288e73ab85766ae2709a38809384cd7ed489)
1 /*
2  * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
6 #define UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
7 
8 
9 #include "AutoPackageAttributeDirectoryCookie.h"
10 
11 
12 class PackageNode;
13 class PackageNodeAttribute;
14 
15 
16 class UnpackingAttributeDirectoryCookie
17 	: public AutoPackageAttributeDirectoryCookie {
18 public:
19 								UnpackingAttributeDirectoryCookie(
20 									PackageNode* packageNode);
21 	virtual						~UnpackingAttributeDirectoryCookie();
22 
23 	static	status_t			Open(PackageNode* packageNode,
24 									AttributeDirectoryCookie*& _cookie);
25 
26 	virtual	status_t			Rewind();
27 
28 protected:
29 	virtual	String				CurrentCustomAttributeName();
30 	virtual	String				NextCustomAttributeName();
31 
32 private:
33 			PackageNode*		fPackageNode;
34 			PackageNodeAttribute* fAttribute;
35 };
36 
37 
38 #endif	// UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
39