root/trunk/TypePad.h @ 41

Revision 41, 1.6 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//  TypePad.h
3//  TypePad-Uploader
4//
5//  Created by Nicholas Gerakines on 5/1/06.
6//  Copyright 2006 __MyCompanyName__. All rights reserved.
7//
8
9#import <Cocoa/Cocoa.h>
10#import <Growl/Growl.h>
11#import "TypePadWeblog.h"
12#import "TypePadGallery.h"
13
14//! The TypePad Class
15/*!
16 This is the core TypePad class.
17*/
18@interface TypePad : NSObject {
19        int actionType;
20        NSMutableDictionary *ntypes;
21        NSMutableDictionary *accounts;
22        NSString *defaultaccount;
23}
24
25// accessors //
26- (int) actionType;
27- (void) setActionType: (int) ActionType;
28
29- (NSMutableDictionary *) ntypes;
30- (void) setNtypes: (NSMutableDictionary *) Ntypes;
31
32- (NSMutableDictionary *) accounts;
33- (void) setAccounts: (NSMutableDictionary *) Accounts;
34
35- (NSString *) defaultaccount;
36- (void) setDefaultaccount: (NSString *) Defaultaccount;
37
38// --- //
39- (void) weblog_newpost: (NSString *) text dest:(NSString *) dest;
40- (void) weblog_upload: (NSArray *) files dest:(NSString *) dest;
41- (void) gallery_upload: (NSArray *) files dest:(NSString *) dest;
42
43- (void) appNotify: (NSString *) message title: (NSString *) title;
44
45- (void) dispatchAction: (NSPasteboard *) pb;
46
47- (void) handleTypeOne: (NSString *) text;
48- (void) handleTypeThree: (NSArray *) list;
49
50- (int) handleTypes: (NSPasteboard *) pb;
51
52- (NSArray *) allowTypes;
53
54/*
55- (NSString *) parseId:(NSString *)tmp;
56- (void) save_blogs;
57- (void) save_galleries;
58- (void) load_blogs;
59- (void) load_galleries;
60*/
61
62- (void) gotoDonate;
63
64- (BOOL) addAccount: (NSString *) login pass: (NSString *) pass;
65
66- (void) saveAccounts;
67
68- (NSArray *) defaultAccountWeblogs;
69- (NSArray *) defaultAccountGalleries;
70- (NSString *) defaultAccountPass;
71
72@end
Note: See TracBrowser for help on using the browser.