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.

220 line
5.5KB

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