summaryrefslogtreecommitdiffstats
path: root/Liaison/RenManager.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:45:08 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:45:08 -0400
commit17349a5e426dc7acf1216a3767a22f69974cbca0 (patch)
tree20029d02f07ab6257cccec36d34fb312f796e1d1 /Liaison/RenManager.h
downloadliaison-17349a5e426dc7acf1216a3767a22f69974cbca0.tar.gz
liaison-17349a5e426dc7acf1216a3767a22f69974cbca0.zip
Initial commit.
Diffstat (limited to 'Liaison/RenManager.h')
-rw-r--r--Liaison/RenManager.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/Liaison/RenManager.h b/Liaison/RenManager.h
new file mode 100644
index 0000000..e25734d
--- /dev/null
+++ b/Liaison/RenManager.h
@@ -0,0 +1,48 @@
+//
+// RenManager.h
+// Liaison
+//
+// Created by Brian Cully on Sun Feb 16 2003.
+// Copyright (c) 2003 Brian Cully. All rights reserved.
+//
+
+@interface RenManager : NSObject {
+ NSSocketPort *theListenPort;
+ NSFileHandle *theListenSocket;
+ NSNetService *theService;
+ NSNetServiceBrowser *theBrowser;
+ NSMutableDictionary *theServersByName;
+ NSMutableDictionary *theClients;
+
+ LiFileStore *theFileStore;
+
+ BOOL theShareIsEnabled;
+}
++ (RenManager *)sharedManager;
+
+- (void)startup;
+- (void)startSharing;
+- (void)stopSharing;
+- (void)updateHostname;
+@property (retain,getter=listenSocket) NSFileHandle *theListenSocket;
+@property (retain,getter=service) NSNetService *theService;
+@property (retain) NSMutableDictionary *theServersByName;
+@property (retain,getter=browser) NSNetServiceBrowser *theBrowser;
+@property (retain) NSMutableDictionary *theClients;
+@property BOOL theShareIsEnabled;
+@property (retain,getter=fileStore) LiFileStore *theFileStore;
+@property (retain,getter=listenPort) NSSocketPort *theListenPort;
+@end
+
+@interface RenManager (Accessors)
+- (NSNetServiceBrowser *)browser;
+- (void)setBrowser: (NSNetServiceBrowser *)aBrowser;
+- (LiFileStore *)fileStore;
+- (void)setFileStore: (LiFileStore *)aFileStore;
+- (NSSocketPort *)listenPort;
+- (void)setListenPort: (NSSocketPort *)aPort;
+- (NSFileHandle *)listenSocket;
+- (void)setListenSocket: (NSFileHandle *)aSocket;
+- (NSNetService *)service;
+- (void)setService: (NSNetService *)aService;
+@end \ No newline at end of file