1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <package/hpkg/PackageEntry.h> 8 9 10 namespace BPackageKit { 11 12 namespace BHPKG { 13 14 15 BPackageEntry::BPackageEntry(BPackageEntry* parent, const char* name) 16 : 17 fParent(parent), 18 fName(name), 19 fUserToken(NULL), 20 fMode(S_IFREG | S_IRUSR | S_IRGRP | S_IROTH), 21 fSymlinkPath(NULL) 22 { 23 fAccessTime.tv_sec = 0; 24 fAccessTime.tv_nsec = 0; 25 fModifiedTime.tv_sec = 0; 26 fModifiedTime.tv_nsec = 0; 27 fCreationTime.tv_sec = 0; 28 fCreationTime.tv_nsec = 0; 29 } 30 31 32 } // namespace BHPKG 33 34 } // namespace BPackageKit 35