aka RedditBar, Mac OS X menu bar reddit client
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Reddit.h 978B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Reddit.h
  3. // RedditBar
  4. //
  5. // Created by Thomas Buck on 01.12.13.
  6. // Copyright (c) 2013 xythobuz. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RedditItem.h"
  10. @interface Reddit : NSObject
  11. @property (atomic, retain) NSString *username;
  12. @property (atomic, retain) NSString *modhash;
  13. @property (atomic, retain) NSString *password;
  14. @property (atomic) NSInteger length;
  15. @property (atomic, retain) NSArray *subreddits;
  16. // Used by Pref Window, unthreaded
  17. -(id)initWithUsername:(NSString *)name Password:(NSString *)pass;
  18. -(NSString *)queryModhash;
  19. // Used by MainMenu
  20. -(id)initWithUsername:(NSString *)name Modhash:(NSString *)hash Length:(NSInteger)leng;
  21. // Use Threaded!
  22. -(void)isAuthenticatedNewModhash:(id)parent;
  23. -(void)readFrontpage:(id)parent;
  24. -(void)readSubreddits:(id)parent;
  25. // Internal
  26. -(NSData *)queryAPI:(NSString *)api withData:(NSString *)string andResponse:(NSHTTPURLResponse **)res;
  27. -(NSString *)urlencode:(NSString *)string;
  28. @end