You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

242 lines
6.1KB

  1. #import <UIKit/UIKit.h>
  2. /* ---- Reddit v3 & v4 & v2020 & v2021 ---- */
  3. /* -- Comment Interfaces -- */
  4. @interface Comment
  5. //v4
  6. @property(strong, nonatomic) id pk;
  7. @property(strong, nonatomic) NSString *bodyText;
  8. @property(strong, nonatomic) NSString *author;
  9. @property(strong, nonatomic) id bodyRichTextAttributed;
  10. @property(strong, nonatomic) id bodyAttributedText;
  11. //v3
  12. -(id)pkWithoutPrefix;
  13. @end
  14. @interface CommentsViewController : NSObject
  15. @property(strong, nonatomic) id postData;
  16. - (void)reloadCommentsWithNewCommentsHighlight:(BOOL)arg1 autoScroll:(BOOL)arg2 animated:(BOOL)arg3;
  17. - (void)reloadCommentsSection:(BOOL)arg1;
  18. - (void)reloadPostSection:(BOOL)arg1;
  19. - (void)feedPostViewDidUpdatePost:(id)arg1 shouldReloadFeed:(BOOL)arg2;
  20. - (void)updateFloatingViews;
  21. //custom elements
  22. - (void)updateComments;
  23. - (void)updatePostText;
  24. @end
  25. @interface CommentActionSheetViewController : UIViewController
  26. @property(strong, nonatomic) Comment *comment;
  27. @property(strong, nonatomic) id commentTreeNode;
  28. @property(strong, nonatomic) CommentsViewController *commentActionSheetDelegate;
  29. - (id)animationControllerForDismissedController:(id)arg1;
  30. @end
  31. /* ---- Reddit v4+ ---- */
  32. @interface ASDisplayNode
  33. - (id)supernode;
  34. @end
  35. /* -- Comment Interfaces -- */
  36. @interface CommentTreeNode
  37. @property(strong, nonatomic) Comment *comment;
  38. //custom elements
  39. @property(strong, nonatomic) id commentTreeHeaderNode;
  40. @property(strong, nonatomic) id commentTreeCommandBarNode;
  41. @end
  42. @interface CommentTreeDisplayNode
  43. @property(strong, nonatomic) id commentNode;
  44. @end
  45. @interface CommentTreeHeaderNode : ASDisplayNode
  46. @property(strong, nonatomic) id commentTreeNode;
  47. - (void)updateContentViewsForData:(id)arg1;
  48. - (void)configureNodes;
  49. @end
  50. @interface CommentTreeCommandBarNode
  51. @property(strong, nonatomic) id commentTreeNode;
  52. @property(strong, nonatomic) id delegate;
  53. @property(strong, nonatomic) UIView *view;
  54. @property(strong, nonatomic) id overflowButtonNode;
  55. @property(assign, nonatomic) CGRect frame;
  56. @end
  57. @interface CommentTreeHeaderView
  58. @property(strong, nonatomic) id commentTreeNode;
  59. - (void)updateContentViewsForData:(id)arg1;
  60. @end
  61. @interface CommentTreeTextNode
  62. - (void)configureTextNode;
  63. @end
  64. @interface CommentTreeContentNode
  65. @property(strong, nonatomic) CommentTreeTextNode *textNode;
  66. @end
  67. /* -- Post Interfaces -- */
  68. @interface Post
  69. @property(strong, nonatomic) NSString *author;
  70. @property(strong, nonatomic) NSString *selfText;
  71. @property(strong, nonatomic) id selfTextAttributed;
  72. @property(strong, nonatomic) id selfPostRichTextAttributed;
  73. @property(strong, nonatomic) id previewFeedPostTextString;
  74. @property(assign, nonatomic) BOOL isSelfPost;
  75. @property(strong, nonatomic) NSString *pk;
  76. @end
  77. @interface PostDetailViewController
  78. @property(strong, nonatomic) id selfTextNode;
  79. - (void)configureSelfTextNode;
  80. //custom elements
  81. @property(strong, nonatomic) id feedPostTextWithThumbnailNode;
  82. @property(strong, nonatomic) id feedPostDetailCellNode;
  83. @end
  84. @interface PostActionSheetViewController : UIViewController
  85. @property(strong, nonatomic) Post *post;
  86. @property(strong, nonatomic) id postActionSheetDelegate;
  87. @end
  88. @interface PostDetailNavigationItemHandler
  89. @property(strong, nonatomic) id controller;
  90. @property(strong, nonatomic) id presenter;
  91. @end
  92. @interface FeedPostDetailCellNode
  93. @property(strong, nonatomic) id textNode;
  94. @property(strong, nonatomic) id delegate;
  95. @property(strong, nonatomic) id contentNode;
  96. @property(strong, nonatomic) id titleNode;
  97. @end
  98. @interface FeedPostTitleNode
  99. @property(strong, nonatomic) Post *post;
  100. @property(strong, nonatomic) id delegate;
  101. - (void)configureNodes;
  102. @end
  103. @interface FeedPostDetailDelegator
  104. @property(strong, nonatomic) id viewController;
  105. @end
  106. @interface FeedPostContentNode
  107. - (void)configureSelfTextNode;
  108. @end
  109. /* -- Other Interfaces -- */
  110. @interface RichTextDisplayNode
  111. @property(strong, nonatomic) NSAttributedString *attributedText;
  112. - (void)configureDisplayNodes;
  113. @end
  114. @interface RUIActionSheetItem : NSObject
  115. @property(strong, nonatomic) id leftIconImage;
  116. - (id)initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
  117. @end
  118. @interface ActionSheetItem : NSObject
  119. // <= 4.17
  120. @property(strong, nonatomic) id leftIconImage;
  121. - (id) initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
  122. @end
  123. @interface RUITheme
  124. @property(strong, nonatomic) id bodyTextColor;
  125. @end
  126. @interface NSAttributedStringMarkdownParser
  127. + (id)currentConfig;
  128. + (id)attributedStringUsingCurrentConfig:(id)arg1;
  129. - (id)attributedStringFromMarkdownString:(id)arg1;
  130. - (id)initWithConfig:(id)arg1;
  131. @end
  132. @interface ThemeManager : NSObject
  133. + (id)sharedManager;
  134. // >= 4.45.0
  135. @property(strong, nonatomic) id darkTheme;
  136. @property(strong, nonatomic) id lightTheme;
  137. - (id)initWithAppSettings:(id)arg1;
  138. // < 4.45.0
  139. @property(strong, nonatomic) id dayTheme;
  140. @property(strong, nonatomic) id nightTheme;
  141. - (id)initWithTraitCollection:(id)arg1 appSettings:(id)arg2;
  142. @end
  143. // >= 2020.41.0
  144. @interface RUIThemeGuidance : NSObject
  145. @property(strong, nonatomic) RUITheme *currentTheme;
  146. + (id)sharedGuidance;
  147. @end
  148. @interface AppSettings
  149. + (id)sharedSettings;
  150. - (BOOL)useDarkMode;
  151. - (BOOL)isAutoDarkModeEnabled;
  152. @end
  153. @interface AccountManager
  154. @property(assign, nonatomic) id defaults;
  155. + (id)sharedManager;
  156. @end
  157. @interface AppDelegate : UIResponder
  158. @property(strong, nonatomic) AccountManager *accountManager;
  159. @end
  160. /* ---- Reddit v3 ---- */
  161. /* -- Comment Interfaces -- */
  162. @interface CommentCell : UIView
  163. - (id)delegate;
  164. - (id)comment;
  165. - (id)commentView;
  166. @end
  167. @interface CommentView
  168. - (void)configureSubviews;
  169. - (void)layoutSubviews;
  170. - (id)commandView;
  171. - (id)comment;
  172. - (id)delegate;
  173. @end
  174. @interface CommentCommandView
  175. @property (strong, nonatomic) id undeleteButton;
  176. - (id)overflowButton;
  177. - (id)comment;
  178. - (id)delegate;
  179. @end
  180. /* -- Other Interfaces -- */
  181. @interface MarkDownParser
  182. + (id)attributedStringFromMarkdownString:(id)arg1;
  183. @end
  184. @interface UITraitCollection ()
  185. + (id)_currentTraitCollection;
  186. @end