PIPackage.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. @interface PIPackage : NSObject {
  11. @package NSMutableDictionary *packageDetails_;
  12. }
  13. @property(nonatomic, readonly) NSString *identifier;
  14. @property(nonatomic, readonly) NSString *storeIdentifier;
  15. @property(nonatomic, readonly) NSString *name;
  16. @property(nonatomic, readonly) NSString *author;
  17. @property(nonatomic, readonly) NSString *maintainer;
  18. @property(nonatomic, readonly) NSString *version;
  19. @property(nonatomic, readonly) NSDate *installDate;
  20. @property(nonatomic, readonly) NSString *bundlePath;
  21. @property(nonatomic, readonly) NSString *libraryPath;
  22. + (instancetype)packageForFile:(NSString *)filepath;
  23. + (instancetype)packageWithIdentifier:(NSString *)identifier;
  24. - (id)initWithDetails:(NSDictionary *)details;
  25. - (id)initWithDetailsFromJSONString:(NSString *)string;
  26. - (NSDictionary *)dictionaryRepresentation;
  27. - (NSString *)JSONRepresentation;
  28. @end
  29. /* vim: set ft=objc ff=unix sw=4 ts=4 tw=80 expandtab: */