-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathRepoItem.h
80 lines (71 loc) · 2.13 KB
/
RepoItem.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//----------------------------------------------------------------------------------------
// RepoItem.h - A file or folder in a Subversion repository.
//
// Copyright © Chris, 2008 - 2010. All rights reserved.
//----------------------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import "SvnInterface.h"
extern ConstString kTypeRepoItem;
@class MyRepository;
@interface RepoItem : NSObject
{
NSString* fName;
NSString* fAuthor;
NSString* fPath;
NSString* fFileType;
NSURL* fURL;
UTCTime fTime;
SInt64 fSize;
SvnRevNum fRevision,
fModRev;
BOOL fIsRoot, fIsDir,
fIsLog, fGettingInfo;
}
+ (id) repoItem: (NSDictionary*) dict
revision: (SvnRevNum) revision;
+ (id) repoItem: (BOOL) isDir;
+ (id) repoItem: (BOOL) isDir
name: (NSString*) name
author: (NSString*) author
revision: (SvnRevNum) revision
modRev: (SvnRevNum) modRev
time: (UTCTime) time
size: (SInt64) size;
+ (id) repoRoot: (BOOL) isDir
name: (NSString*) name
revision: (SvnRevNum) revision
url: (NSURL*) url;
+ (id) repoPath: (NSString*) path
revision: (SvnRevNum) revision
url: (NSURL*) url;
- (void) svnInfo: (MyRepository*) document;
- (BOOL) isRoot;
- (BOOL) isDir;
- (BOOL) isLog;
- (void) setName: (NSString*) name;
- (NSString*) name;
- (void) setAuthor: (NSString*) author;
- (NSString*) author;
- (NSString*) path;
- (NSString*) fileType;
- (void) setRevision: (SvnRevNum) revision;
- (SvnRevNum) revisionNum;
- (NSString*) revision;
- (void) setModRev: (SvnRevNum) modRev;
- (SvnRevNum) modRevNum;
- (NSString*) modRev;
- (void) setSize: (SInt64) size;
- (SInt64) size;
- (void) setTime: (UTCTime) time;
- (UTCTime) time;
- (NSURL*) url;
- (BOOL) setUp: (NSString*) pathToColumn
url: (NSURL*) url;
- (IconRef) icon;
- (NSString*) toolTip;
- (NSString*) pathWithRevision;
- (NSString*) pathPegRevision;
- (NSDictionary*) dictionary;
@end // RepoItem
//----------------------------------------------------------------------------------------
// End of RepoItem.h