PIPackageCache.h 702 B

123456789101112131415161718192021222324
  1. /**
  2. * Name: libpackageinfo
  3. * Type: iOS library
  4. * Desc: iOS library for retrieving information regarding installed packages.
  5. *
  6. * Author: Lance Fetters (aka. ashikase)
  7. * License: LGPL v3 (See LICENSE file for details)
  8. */
  9. #import <Foundation/Foundation.h>
  10. @class PIPackage;
  11. @interface PIPackageCache : NSObject
  12. + (instancetype)sharedCache;
  13. - (PIPackage *)packageForFile:(NSString *)filepath;
  14. - (PIPackage *)packageWithIdentifier:(NSString *)identifier;
  15. - (void)cachePackage:(PIPackage *)package forFile:(NSString *)filepath;
  16. - (void)cachePackage:(PIPackage *)package forIdentifier:(NSString *)identifier;
  17. - (void)removeAllObjects;
  18. @end
  19. /* vim: set ft=objc ff=unix sw=4 ts=4 tw=80 expandtab: */