]> Dogcows Code - chaz/thecheat/blobdiff - AppController.h
The Cheat 1.2.2
[chaz/thecheat] / AppController.h
index fb222b3ac0305fa64ece1cf1dc1678ea0379941b..7eb651fcbf4b00d5a8e33b770ca51369c8fd3bfe 100644 (file)
@@ -1,56 +1,70 @@
 
-// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-// Project:   The Cheat
-//
-// File:      AppController.h
-// Created:   Wed Aug 13 2003
-//
-// Copyright: 2003 Chaz McGarvey.  All rights reserved.
-// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// **********************************************************************
+// The Cheat - A universal game cheater for Mac OS X
+// (C) 2003-2005 Chaz McGarvey (BrokenZipper)
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 1, or (at your option)
+// any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// 
 
 #import <Cocoa/Cocoa.h>
+#import "ChazLog.h"
+#include "cheat_global.h"
 
-#import "PreferenceControlling.h"
-#import "NetTrafficControlling.h"
-#import "ListenerDelegate.h"
-#import "ServerDelegate.h"
-
-#include "cheat_globals.h"
+#import "ChazUpdate.h"
 
+#import "CheatServer.h"
 
 @class AboutBoxController;
+@class HelpController;
 @class PreferenceController;
-@class NetTrafficController;
 
 
-@interface AppController : NSObject < PreferenceControlling, NetTrafficControlling, ListenerDelegate, ServerDelegate >
+@interface AppController : NSApplication
 {
-       BOOL                                    waitingToListen;
-       NSConnection                    *connection;
-       int                                             connectionPort;
-       BOOL                                    connectionRemote;
-       int                                             sockfd;
-       NSNetService                    *service, *oldService;
-
-       NSMutableArray                  *servers;
-
-       AboutBoxController              *aboutBoxController;
-       PreferenceController    *preferenceController;
-       NetTrafficController    *netTrafficController;
-}
+       CheatServer *_server;
 
-- (void)listenOnPort:(int)port remote:(BOOL)remote;
-- (void)stopListener;
+       AboutBoxController *_aboutBoxController;
+       HelpController *_helpController;
+       PreferenceController *_preferenceController;
+}
 
-- (void)broadcastWithName:(NSString *)name;
-- (void)stopBroadcast;
+// 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)launchWebsiteMenu:(id)sender;
-- (IBAction)launchDebugEmailMenu:(id)sender;
 
-@end
\ No newline at end of file
+- (IBAction)checkForUpdate:(id)sender;
+
+// Privilage elevation stuff
+AuthorizationRef _authRef;
+AuthorizationItem _authItem;
+AuthorizationRights _authRights;
+- (int) preAuthorize;
+- (int) launchAuthPrgm;
+
+// Server Stuff
+- (CheatServer *)cheatServer;
+- (BOOL)startCheatServer;
+- (void)stopCheatServer;
+
+@end
+
+
This page took 0.025289 seconds and 4 git commands to generate.