TSContactViewController.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 <UIKit/UIKit.h>
  11. @class TSLinkInstruction;
  12. @class TSPackage;
  13. @interface TSContactViewController : UIViewController
  14. /**
  15. * The string that is displayed when there is not input from the user.
  16. *
  17. * This value is _nil_ by default. When nil, a default placeholder string will
  18. * be displayed. The default string is localized.
  19. */
  20. @property(nonatomic, copy) NSString *detailEntryPlaceholderText;
  21. /**
  22. * The string used for the subject of the generated email.
  23. *
  24. * This value is _nil_ by default.
  25. */
  26. @property(nonatomic, copy) NSString *subject;
  27. /**
  28. * The string displayed in the generated email, below the device details and
  29. * above the user-entered details.
  30. *
  31. * This value is _nil_ by default.
  32. */
  33. @property(nonatomic, copy) NSString *messageBody;
  34. /**
  35. * A string used for formatting the details input by the user.
  36. *
  37. * This value is _nil_ by default. Any set value *must* include a "%@" to
  38. * represent where the user input will be inserted.
  39. */
  40. @property(nonatomic, copy) NSString *detailFormat;
  41. /**
  42. * A string representing the generator of this email.
  43. *
  44. * This value is _nil_ by default.
  45. */
  46. @property(nonatomic, copy) NSString *byline;
  47. /**
  48. * A Boolean value that determines whether a user must enter details.
  49. *
  50. * This value is NO by default. When YES, the user will not be able to generate
  51. * the email without entering text into the detail area.
  52. */
  53. @property(nonatomic, assign) BOOL requiresDetailsFromUser;
  54. /**
  55. * Initializer.
  56. *
  57. * @param package The package to generate an email for.
  58. * @param linkInstruction The instruction containing the email command.
  59. * @param includeInstructions Array of TSIncludeInstruction objects specifying
  60. * what to attach to the generated email.
  61. *
  62. * @return A new TSContactViewController instance.
  63. */
  64. - (id)initWithPackage:(TSPackage *)package linkInstruction:(TSLinkInstruction *)linkInstruction includeInstructions:(NSArray *)includeInstructions;
  65. /**
  66. * Initializer.
  67. *
  68. * @param package The package to generate an email for.
  69. * @param instructions Array of TSInstruction objects specifying
  70. * to whom to send and what to attach to the generated email.
  71. *
  72. * @return A new TSContactViewController instance.
  73. */
  74. - (id)initWithPackage:(TSPackage *)package instructions:(NSArray *)instructions;
  75. @end
  76. /* vim: set ft=objc ff=unix sw=4 ts=4 tw=80 expandtab: */