| 1 |
#import "KAIgnoreRule.h" |
|---|
| 2 |
|
|---|
| 3 |
@class MVChatConnection; |
|---|
| 4 |
@class JVChatWindowController; |
|---|
| 5 |
@class JVChatRoom; |
|---|
| 6 |
@class JVDirectChat; |
|---|
| 7 |
@class JVChatTranscript; |
|---|
| 8 |
@class JVChatConsole; |
|---|
| 9 |
@class KAInternalIgnoreRule; |
|---|
| 10 |
|
|---|
| 11 |
@protocol JVChatViewController; |
|---|
| 12 |
|
|---|
| 13 |
@interface JVChatController : NSObject { |
|---|
| 14 |
@private |
|---|
| 15 |
NSMutableArray *_chatWindows; |
|---|
| 16 |
NSMutableArray *_chatControllers; |
|---|
| 17 |
NSMutableArray *_ignoreRules; |
|---|
| 18 |
} |
|---|
| 19 |
+ (JVChatController *) defaultManager; |
|---|
| 20 |
|
|---|
| 21 |
- (NSSet *) allChatWindowControllers; |
|---|
| 22 |
- (JVChatWindowController *) newChatWindowController; |
|---|
| 23 |
- (void) disposeChatWindowController:(JVChatWindowController *) controller; |
|---|
| 24 |
|
|---|
| 25 |
- (NSSet *) allChatViewControllers; |
|---|
| 26 |
- (NSSet *) chatViewControllersWithConnection:(MVChatConnection *) connection; |
|---|
| 27 |
- (NSSet *) chatViewControllersOfClass:(Class) class; |
|---|
| 28 |
- (NSSet *) chatViewControllersKindOfClass:(Class) class; |
|---|
| 29 |
- (JVChatRoom *) chatViewControllerForRoom:(NSString *) room withConnection:(MVChatConnection *) connection ifExists:(BOOL) exists; |
|---|
| 30 |
- (JVDirectChat *) chatViewControllerForUser:(NSString *) user withConnection:(MVChatConnection *) connection ifExists:(BOOL) exists; |
|---|
| 31 |
- (JVDirectChat *) chatViewControllerForUser:(NSString *) user withConnection:(MVChatConnection *) connection ifExists:(BOOL) exists userInitiated:(BOOL) requested; |
|---|
| 32 |
- (JVChatTranscript *) chatViewControllerForTranscript:(NSString *) filename; |
|---|
| 33 |
- (JVChatConsole *) chatConsoleForConnection:(MVChatConnection *) connection ifExists:(BOOL) exists; |
|---|
| 34 |
|
|---|
| 35 |
- (void) disposeViewController:(id <JVChatViewController>) controller; |
|---|
| 36 |
- (void) detachViewController:(id <JVChatViewController>) controller; |
|---|
| 37 |
|
|---|
| 38 |
- (IBAction) detachView:(id) sender; |
|---|
| 39 |
|
|---|
| 40 |
- (JVIgnoreMatchResult) shouldIgnoreUser:(NSString *) name withMessage:(NSAttributedString *) message inView:(id <JVChatViewController>) view; |
|---|
| 41 |
@end |
|---|
| 42 |
|
|---|
| 43 |
@interface NSObject (MVChatPluginCommandSupport) |
|---|
| 44 |
- (BOOL) processUserCommand:(NSString *) command withArguments:(NSAttributedString *) arguments toConnection:(MVChatConnection *) connection inView:(id <JVChatViewController>) view; |
|---|
| 45 |
@end |
|---|