]> Dogcows Code - chaz/thecheat/blobdiff - AppController.h
update contact information and project URL
[chaz/thecheat] / AppController.h
index af9c6549edbd4a0b03bdfdb72b4a91bb9f8ae919..5c5d2ca490d835e1f0a4f0e82cb4da7d6028bab2 100644 (file)
@@ -1,60 +1,43 @@
 
-// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-// Project:   The Cheat
-//
-// File:      AppController.h
-// Created:   Wed Aug 13 2003
-//
-// Copyright: 2003 Chaz McGarvey.  All rights reserved.
-// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+/*
+ * The Cheat - The legendary universal game trainer for Mac OS X.
+ * http://www.brokenzipper.com/trac/wiki/TheCheat
+ *
+ * Copyright (c) 2003-2011, Charles McGarvey et al.
+ *
+ * Distributable under the terms and conditions of the 2-clause BSD
+ * license; see the file COPYING for the legal text of the license.
+ */
 
 #import <Cocoa/Cocoa.h>
-#import <Chaz/Chaz.h>
+#import "ChazLog.h"
+#include "cheat_global.h"
 
-#import "PreferenceControlling.h"
-#import "NetTrafficControlling.h"
-#import "ListenerDelegate.h"
-#import "ServerDelegate.h"
+#import "ChazUpdate.h"
 
-#include "cheat_globals.h"
+#import "CheatServer.h"
 
 
 @class AboutBoxController;
+@class HelpController;
 @class PreferenceController;
-@class NetTrafficController;
 
 
-@interface AppController : NSApplication < PreferenceControlling, NetTrafficControlling, ListenerDelegate, ServerDelegate >
+@interface AppController : NSApplication
 {
-       BOOL                                    waitingToListen;
-       NSConnection                    *connection;
-       int                                             connectionPort;
-       BOOL                                    connectionRemote;
-       int                                             sockfd;
-       NSNetService                    *service;
-
-       NSMutableArray                  *servers;
-
-       AboutBoxController              *aboutBoxController;
-       PreferenceController    *preferenceController;
-       NetTrafficController    *netTrafficController;
-       
-       // global network browser
-       NSNetServiceBrowser             *browser;
-       NSMutableArray                  *serverList;
-}
-
-- (void)listenOnPort:(int)port remote:(BOOL)remote;
-- (void)stopListener;
+       CheatServer *_server;
 
-- (void)broadcastWithName:(NSString *)name;
-- (void)stopBroadcast;
+       AboutBoxController *_aboutBoxController;
+       HelpController *_helpController;
+       PreferenceController *_preferenceController;
+}
 
-- (IBAction)newSessionWindow:(id)sender;
+// Interface Actions
+- (IBAction)newSearchWindow:(id)sender;
+- (IBAction)newBlankCheatWindow:(id)sender;
 
 - (IBAction)showAboutBoxWindow:(id)sender;
 - (IBAction)showPreferenceWindow:(id)sender;
-- (IBAction)showNetTrafficWindow:(id)sender;
 
 - (IBAction)launchHelpFile:(id)sender;
 - (IBAction)launchEmailMenu:(id)sender;
 
 - (IBAction)checkForUpdate:(id)sender;
 
-- (NSArray *)serverList;
+// Server Stuff
+- (CheatServer *)cheatServer;
+- (BOOL)startCheatServer;
+- (void)stopCheatServer;
+
+@end
+
 
-@end
\ No newline at end of file
This page took 0.018537 seconds and 4 git commands to generate.