root/trunk/Models/JVChatEvent.h

Revision 3247, 1.2 kB (checked in by timothy, 2 years ago)

One step closer to allowing SQL only transcripts.

Line 
1 #import "JVChatTranscript.h"
2
3 @interface JVChatEvent : NSObject <JVChatTranscriptElement> {
4         @protected
5         /* xmlNode */ void *_node;
6         /* xmlDoc */ void *_doc;
7         NSString *_eventIdentifier;
8         NSScriptObjectSpecifier *_objectSpecifier;
9         JVChatTranscript *_transcript;
10         NSDate *_date;
11         NSString *_name;
12         NSTextStorage *_message;
13         NSDictionary *_attributes;
14         BOOL _loadedMessage;
15         BOOL _loadedAttributes;
16         BOOL _loadedSmall;
17 }
18 - (/* xmlNode */ void *) node;
19
20 - (JVChatTranscript *) transcript;
21 - (NSString *) eventIdentifier;
22
23 - (NSDate *) date;
24 - (NSString *) name;
25
26 - (NSTextStorage *) message;
27 - (NSString *) messageAsPlainText;
28 - (NSString *) messageAsHTML;
29
30 - (NSDictionary *) attributes;
31 @end
32
33 @interface JVMutableChatEvent : JVChatEvent
34 + (id) chatEventWithName:(NSString *) name andMessage:(id) message;
35 - (id) initWithName:(NSString *) name andMessage:(id) message;
36
37 - (void) setDate:(NSDate *) date;
38 - (void) setName:(NSString *) name;
39
40 - (void) setMessage:(id) message;
41 - (void) setMessageAsPlainText:(NSString *) message;
42 - (void) setMessageAsHTML:(NSString *) message;
43
44 - (void) setAttributes:(NSDictionary *) attributes;
45
46 - (void) setEventIdentifier:(NSString *) identifier;
47 @end
Note: See TracBrowser for help on using the browser.