root/tags/2D9/JVChatEvent.h

Revision 2401, 1.2 kB (checked in by timothy, 3 years ago)

Many changes mostly related to AppleScripting.

  • Scripting should be mostly restored now. The iTunes script fully functions, and the most common scripts should.
  • Many Chat Core level scripting things have been reworked and will not be backwards compat.
  • Some Colloquy level scripting commands are missing awaiting better counterparts.
  • Fixes all the remaining Tiger GCC 4 "differ in signedness" compile warnings.
Line 
1 #import "JVChatTranscript.h"
2
3 @interface JVChatEvent : NSObject <JVChatTranscriptElement> {
4         @protected
5         /* xmlNode */ void *_node;
6         NSString *_eventIdentifier;
7         NSScriptObjectSpecifier *_objectSpecifier;
8         JVChatTranscript *_transcript;
9         NSDate *_date;
10         NSString *_name;
11         NSTextStorage *_message;
12         NSDictionary *_attributes;
13         BOOL _loadedMessage;
14         BOOL _loadedAttributes;
15         BOOL _loadedSmall;
16 }
17 - (/* xmlNode */ void *) node;
18
19 - (JVChatTranscript *) transcript;
20 - (NSString *) eventIdentifier;
21
22 - (NSDate *) date;
23 - (NSString *) name;
24
25 - (NSTextStorage *) message;
26 - (NSString *) messageAsPlainText;
27 - (NSString *) messageAsHTML;
28
29 - (NSDictionary *) attributes;
30 @end
31
32 @interface JVMutableChatEvent : JVChatEvent {
33         @protected
34         /* xmlDoc */ void *_doc;
35 }
36 + (id) chatEventWithName:(NSString *) name andMessage:(id) message;
37 - (id) initWithName:(NSString *) name andMessage:(id) message;
38
39 - (void) setDate:(NSDate *) date;
40 - (void) setName:(NSString *) name;
41
42 - (void) setMessage:(id) message;
43 - (void) setMessageAsPlainText:(NSString *) message;
44 - (void) setMessageAsHTML:(NSString *) message;
45
46 - (void) setAttributes:(NSDictionary *) attributes;
47
48 - (void) setEventIdentifier:(NSString *) identifier;
49 @end
Note: See TracBrowser for help on using the browser.