1 /* 2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef PACKAGE_LINKS_DIRECTORY_H 6 #define PACKAGE_LINKS_DIRECTORY_H 7 8 9 #include "Directory.h" 10 11 12 class Package; 13 class PackageLinksListener; 14 15 16 class PackageLinksDirectory : public Directory { 17 public: 18 PackageLinksDirectory(); 19 virtual ~PackageLinksDirectory(); 20 21 virtual timespec ModifiedTime() const; 22 23 void SetListener(PackageLinksListener* listener) 24 { fListener = listener; } 25 26 status_t AddPackage(Package* package); 27 void RemovePackage(Package* package); 28 void UpdatePackageDependencies(Package* package); 29 30 private: 31 timespec fModifiedTime; 32 PackageLinksListener* fListener; 33 }; 34 35 36 #endif // PACKAGE_LINKS_DIRECTORY_H 37