summaryrefslogtreecommitdiffstats
path: root/Liaison/ServerManager.h
blob: 1c4da97f52ee90e6c994c62c74f4487df2838db0 (plain)
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
//
//  ServerManager.h
//  Liaison
//
//  Created by Brian Cully on Sun Feb 16 2003.
//  Copyright (c) 2003 Brian Cully. All rights reserved.
//

@class DownloadStatusView;

@interface ServerManager : NSObject
{
    NSFileHandle *theFile;
    NSNetService *theService;
    NSMutableData *theBuffer;

    LiFileStore *theFileStore;
}
- (id)initWithNetService: (NSNetService *)aService;

- (void)startup;
- (void)shutdown;
@property (retain,getter=service) NSNetService *theService;
@property (retain,getter=buffer) NSMutableData *theBuffer;
@property (retain,getter=fileStore) LiFileStore *theFileStore;
@property (retain,getter=file) NSFileHandle *theFile;
@end

@interface ServerManager (Accessors)
- (NSFileHandle *)file;
- (void)setFile: (NSFileHandle *)aFile;
- (NSNetService *)service;
- (void)setService: (NSNetService *)aService;
- (NSMutableData *)buffer;
- (void)setBuffer: (NSMutableData *)aBuffer;
- (LiFileStore *)fileStore;
- (void)setFileStore: (LiFileStore *)aFileStore;
@end

@interface ServerManager (LiFileStore) <LiFileStoreDelegate>
@end