root/tags/2C10/JVChatMessage.h

Revision 1823, 2.0 kB (checked in by timothy, 4 years ago)

Moved Colloquy to a pre-compiled header. Removed all #imports that are part of the Cocoa, WebKit? and AGRegex frameworks. Removed all @class declarations that are part of the Cocoa frameworks.

Line 
1 #import "KAIgnoreRule.h"
2
3 @class JVChatTranscript;
4
5 @interface JVChatMessage : NSObject <NSMutableCopying> {
6         @protected
7         /* xmlNode */ void *_node;
8         unsigned long long _messageNumber;
9         unsigned long long _envelopeNumber;
10         NSScriptObjectSpecifier *_objectSpecifier;
11         JVChatTranscript *_transcript;
12         id _sender;
13         NSString *_htmlMessage;
14         NSTextStorage *_attributedMessage;
15         NSDate *_date;
16         JVIgnoreMatchResult _ignoreStatus;
17         BOOL _action;
18         BOOL _highlighted;
19         BOOL _loaded;
20 }
21 + (id) messageWithNode:(/* xmlNode */ void *) node messageIndex:(unsigned long long) messageIndex andTranscript:(JVChatTranscript *) transcript;
22 - (id) initWithNode:(/* xmlNode */ void *) node messageIndex:(unsigned long long) messageIndex andTranscript:(JVChatTranscript *) transcript;
23
24 - (/* xmlNode */ void *) node;
25
26 - (NSDate *) date;
27 - (id) sender;
28
29 - (NSTextStorage *) body;
30 - (NSString *) bodyAsPlainText;
31 - (NSString *) bodyAsHTML;
32
33 - (BOOL) isAction;
34 - (BOOL) isHighlighted;
35 - (JVIgnoreMatchResult) ignoreStatus;
36
37 - (JVChatTranscript *) transcript;
38 - (unsigned long long) messageNumber;
39 - (unsigned long long) envelopeNumber;
40
41 - (NSScriptObjectSpecifier *) objectSpecifier;
42 - (void) setObjectSpecifier:(NSScriptObjectSpecifier *) objectSpecifier;
43 @end
44
45 @interface JVMutableChatMessage : JVChatMessage
46 + (id) messageWithText:(NSTextStorage *) body sender:(NSString *) sender andTranscript:(JVChatTranscript *) transcript;
47 - (id) initWithText:(NSTextStorage *) body sender:(NSString *) sender andTranscript:(JVChatTranscript *) transcript;
48
49 - (void) setNode:(/* xmlNode */ void *) node;
50
51 - (void) setDate:(NSDate *) date;
52 - (void) setSender:(id) sender;
53
54 - (void) setBody:(NSAttributedString *) message;
55 - (void) setBodyAsPlainText:(NSString *) message;
56 - (void) setBodyAsHTML:(NSString *) message;
57
58 - (void) setAction:(BOOL) action;
59 - (void) setHighlighted:(BOOL) highlighted;
60 - (void) setIgnoreStatus:(JVIgnoreMatchResult) ignoreStatus;
61
62 - (void) setTranscript:(JVChatTranscript *) transcript;
63 - (void) setMessageNumber:(unsigned long long) number;
64 - (void) setEnvelopeNumber:(unsigned long long) number;
65 @end
Note: See TracBrowser for help on using the browser.