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.

231 lines
5.8KB

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