root/trunk/TypePadAccount.h @ 41

Revision 41, 2.5 kB (checked in by ngerakines, 3 years ago)

* Put into place the real icons that Wiley sent over
* Fixed the prefs on login
* Removed the TypePadSuper class
* General code cleanup

Line 
1//
2//  TypePadAccount.h
3//  Fence
4//
5//  Created by Nicholas Gerakines on 6/10/06.
6//  Copyright 2006 __MyCompanyName__. All rights reserved.
7//
8
9#import <Cocoa/Cocoa.h>
10
11
12@interface TypePadAccount : NSObject {
13        NSString *username;
14        NSString *password;
15        NSString *nickname;
16        NSMutableArray *weblogs;
17        NSMutableArray *galleries;
18        NSMutableArray *typelists;
19        NSMutableArray *comments;
20        BOOL hasWeblog;
21        BOOL hasGallery;
22        BOOL hasTypeList;
23        NSString *defaultWeblog;
24        NSString *defaultGallery;
25}
26
27- (NSString *) username;
28- (void) setUsername: (NSString *) Username;
29
30- (NSString *) password;
31- (void) setPassword: (NSString *) Password;
32
33- (NSString *) nickname;
34- (void) setNickname: (NSString *) Nickname;
35
36- (BOOL) hasWeblog;
37- (void) setHasWeblog: (BOOL) flag;
38
39- (BOOL) hasGallery;
40- (void) setHasGallery: (BOOL) flag;
41
42- (BOOL) hasTypeList;
43- (void) setHasTypeList: (BOOL) flag;
44
45- (NSString *) defaultWeblog;
46- (void) setDefaultWeblog: (NSString *) DefaultWeblog;
47
48- (NSString *) defaultGallery;
49- (void) setDefaultGallery: (NSString *) DefaultGallery;
50
51///////  weblogs  ///////
52- (NSMutableArray *) weblogs;
53- (void) setWeblogs: (NSMutableArray *) Weblogs;
54- (unsigned int) countOfWeblogs;
55- (id) objectInWeblogsAtIndex: (unsigned int)index;
56- (void) insertObject: (id)anObject inWeblogsAtIndex: (unsigned int)index;
57- (void) removeObjectFromWeblogsAtIndex: (unsigned int)index;
58- (void) replaceObjectInWeblogsAtIndex: (unsigned int)index withObject: (id)anObject;
59
60///////  galleries  ///////
61- (NSMutableArray *) galleries;
62- (void) setGalleries: (NSMutableArray *) Galleries;
63- (unsigned int) countOfGalleries;
64- (id) objectInGalleriesAtIndex: (unsigned int)index;
65- (void) insertObject: (id)anObject inGalleriesAtIndex: (unsigned int)index;
66- (void) removeObjectFromGalleriesAtIndex: (unsigned int)index;
67- (void) replaceObjectInGalleriesAtIndex: (unsigned int)index withObject: (id)anObject;
68
69///////  typelists  ///////
70- (NSMutableArray *) typelists;
71- (void) setTypelists: (NSMutableArray *) Typelists;
72- (unsigned int) countOfTypelists;
73- (id) objectInTypelistsAtIndex: (unsigned int)index;
74- (void) insertObject: (id)anObject inTypelistsAtIndex: (unsigned int)index;
75- (void) removeObjectFromTypelistsAtIndex: (unsigned int)index;
76- (void) replaceObjectInTypelistsAtIndex: (unsigned int)index withObject: (id)anObject;
77
78///////  discovery  ///////
79
80- (void) discoverWeblogs;
81- (void) discoverGalleries;
82- (void) getComments:(NSString *) blogId;
83
84///////  utility  ///////
85- (NSString *) parseId:(NSString *)tmp;
86
87@end
Note: See TracBrowser for help on using the browser.