X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=AppController.h;h=5c5d2ca490d835e1f0a4f0e82cb4da7d6028bab2;hp=fb222b3ac0305fa64ece1cf1dc1678ea0379941b;hb=HEAD;hpb=42cf7bbe564d70233a0d73baee613f209eb00eb6 diff --git a/AppController.h b/AppController.h index fb222b3..5c5d2ca 100644 --- a/AppController.h +++ b/AppController.h @@ -1,56 +1,55 @@ -// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -// 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 +#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 : 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; + +// Server Stuff +- (CheatServer *)cheatServer; +- (BOOL)startCheatServer; +- (void)stopCheatServer; + +@end + +