TSPackage.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Name: TechSupport
  3. * Type: iOS framework
  4. * Desc: iOS framework to assist in providing support for and receiving issue
  5. * reports and feedback from users.
  6. *
  7. * Author: Lance Fetters (aka. ashikase)
  8. * License: LGPL v3 (See LICENSE file for details)
  9. */
  10. #import <Foundation/Foundation.h>
  11. @class TSIncludeInstruction;
  12. @class TSLinkInstruction;
  13. @interface TSPackage : NSObject
  14. @property(nonatomic, readonly) NSString *identifier;
  15. @property(nonatomic, readonly) NSString *storeIdentifier;
  16. @property(nonatomic, readonly) NSString *name;
  17. @property(nonatomic, readonly) NSString *author;
  18. @property(nonatomic, readonly) NSString *version;
  19. @property(nonatomic, readonly) NSDate *installDate;
  20. @property(nonatomic, readonly) BOOL isAppStore;
  21. @property(nonatomic, readonly) TSLinkInstruction *storeLink;
  22. @property(nonatomic, readonly) TSLinkInstruction *supportLink;
  23. @property(nonatomic, readonly) NSArray *otherLinks;
  24. @property(nonatomic, readonly) TSIncludeInstruction *preferencesAttachment;
  25. @property(nonatomic, readonly) NSArray *otherAttachments;
  26. + (instancetype)packageForFile:(NSString *)path;
  27. + (instancetype)packageWithIdentifier:(NSString *)identifier;
  28. - (instancetype)initForFile:(NSString *)path;
  29. - (instancetype)initWithIdentifier:(NSString *)identifier;
  30. @end
  31. /* vim: set ft=objc ff=unix sw=4 ts=4 tw=80 expandtab: */