/*************************************************************************** StandardContentController.h ------------------- begin : Tue Jan 20 22:08:40 CST 2004 copyright : (C) 2005 by Andrew Ruder email : aeruder@ksu.edu ***************************************************************************/ /*************************************************************************** * * * 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 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ @class StandardContentController; #ifndef STANDARD_CONTENT_CONTROLLER_H #define STANDARD_CONTENT_CONTROLLER_H #import "Controllers/ContentControllers/ContentController.h" #import #import @class NSMutableArray, NSMutableDictionary, NSArray, NSString, NSAttributedString; @class NSText, ConnectionController; @interface StandardContentController : NSObject < ContentController > { NSMutableArray *masterControllers; NSMutableDictionary *nameToChannel; NSMutableDictionary *nameToQuery; NSMutableDictionary *nameToBoth; NSMutableDictionary *nameToPresentation; NSMutableDictionary *nameToLabel; NSMutableDictionary *nameToMasterController; NSMutableDictionary *nameToTyping; NSMutableDictionary *nameToTitle; NSMapTable *bothToName; NSString *nickname; Class channelClass; Class queryClass; ConnectionController *connectionController; id lastSelected; } + (Class)masterClass; + (Class)queryClass; + (Class)channelClass; - initWithMasterController: (id ) aMaster; - (id )typingControllerForViewController: (id )aController; - (NSArray *)masterControllers; - (id )primaryMasterController; - (void)setPrimaryMasterController: (id )aController; - (NSString *)nameForViewController: (id )aController; - (id )masterControllerForName: (NSString *)aName; - (NSTextView *)chatViewForName: (NSString *)aName; - (id )viewControllerForName: (NSString *)aName; - (NSString *)typeForName: (NSString *)aName; - (NSArray *)allChatViews; - (NSArray *)allControllers; - (NSArray *)allNames; - (NSArray *)allChatViewsOfType: (NSString *)aType; - (NSArray *)allViewControllersOfType: (NSString *)aType; - (NSArray *)allNamesOfType: (NSString *)aType; - (void)putMessage: aMessage in: (id)aName; - (void)putMessage: aMessage in: (id)aName withEndLine: (BOOL)hasEnd; - (void)putMessageInAll: aMessage; - (void)putMessageInAll: aMessage withEndLine: (BOOL)hasEnd; - (void)putMessageInAll: aMessage ofType: (NSString *)aType; - (void)putMessageInAll: aMessage ofType: (NSString *)aType withEndLine: (BOOL)hasEnd; - (id )addViewControllerOfType: (NSString *)aType withName: (NSString *)aName withLabel: (NSAttributedString *)aLabel inMasterController: (id )aMaster; - (void)removeViewControllerWithName: (NSString *)aName; - (void)renameViewControllerWithName: (NSString *)aName to: (NSString *)newName; - (NSString *)presentationalNameForName: (NSString *)aName; - (void)setPresentationName: (NSString *)aPresentationName forName: (NSString *)aName; - (NSAttributedString *)labelForName: (NSString *)aName; - (void)setLabel: (NSAttributedString *)aLabel forName: (NSString *)aName; - (NSString *)nickname; - (void)setNickname: (NSString *)aNickname; - (NSString *)titleForViewController: (id )aController; - (void)setTitle: (NSString *)aTitle forViewController: (id )aController; - (void)bringNameToFront: (NSString *)aName; @end #endif