-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGSGist.h
60 lines (51 loc) · 1.65 KB
/
GSGist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Gist.h
// Gisties
//
// Created by Michael Schrag on 2/13/09.
// Copyright 2009 m Dimension Technology. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GSAuthDelegate.h"
@interface GSGist : NSObject {
id<GSAuthDelegate> _authDelegate;
NSString *_gistyFolder;
NSString *_gistID;
NSString *_originalName;
NSString *_name;
NSAttributedString *_content;
BOOL _private;
BOOL _loaded;
BOOL _temporary;
BOOL _saving;
BOOL _syncing;
BOOL _saveDuringSync;
BOOL _syncDuringSave;
NSRect _frame;
}
@property (readwrite, retain) NSString *gistyFolder;
@property (readwrite, retain) NSString *gistID;
@property (readwrite, retain) NSString *name;
@property (readwrite, retain) NSAttributedString *content;
@property (readwrite, assign) BOOL private;
@property (readwrite, assign) BOOL loaded;
@property (readwrite, assign) BOOL temporary;
@property (readwrite, assign) BOOL saving;
@property (readwrite, assign) BOOL syncing;
@property (readwrite, assign) NSRect frame;
@property (readwrite, retain) NSString *originalName;
- (id)initWithAuthDelegate:(id<GSAuthDelegate>)delegate;
- (id)initWithID:(NSString *)gistID authDelegate:(id<GSAuthDelegate>)delegate;
- (id)initWithFolder:(NSString *)gistyFolder authDelegate:(id<GSAuthDelegate>)delegate;
- (void)load:(NSError **)error;
- (void)loadFromDisk:(NSError **)error;
- (void)loadFromGitHub:(NSError **)error;
- (void)saveToDisk:(NSError **)error;
- (void)saveToGitHub:(NSError **)error;
- (void)deleteFromDisk:(NSError **)error;
- (void)deleteFromGitHub:(NSError **)error;
- (NSString *)gistyFolder;
- (NSString *)gistyFile;
- (void)updateFolderAttributes:(NSError **)error;
+ (NSString *)gistiesFolder;
@end