forked from the-kenny/AdiumChatQuickLook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChatlogRenderer.h
45 lines (34 loc) · 1.26 KB
/
ChatlogRenderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// ChatlogRenderer.h
// AdiumChatQuickLook
//
// Created by Moritz Ulrich on 11.08.11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ChatlogRenderer : NSObject {
NSURL* _url;
NSString* _account;
NSString* _service;
NSMutableDictionary *_attachments;
BOOL stripFontStyles;
BOOL debugLog;
NSBundle* rendererBundle;
NSDateFormatter *_ISO8601Formatter;
NSDateFormatter *_hoursFormatter;
}
@property(retain) NSURL* url;
@property(retain) NSString* account;
@property(retain) NSString* service;
@property (nonatomic, retain) NSMutableDictionary *attachments;
@property (nonatomic, retain) NSDateFormatter *ISO8601Formatter;
@property (nonatomic, retain) NSDateFormatter *hoursFormatter;
- (NSString *)generateHTMLForURL:(NSURL *)url attachments:(NSDictionary * __autoreleasing *)attachmentsDict;
- (NSXMLElement*)generateHead;
- (NSXMLElement*)generateTableFromChatElement:(NSXMLElement*)chatElement;
- (NSXMLElement*)generateMessageRow:(NSXMLElement*)message;
- (NSXMLElement*)generateEventRow:(NSXMLElement*)event;
- (NSXMLElement*)generateStatusRow:(NSXMLElement*)status;
- (NSString*)formatDate:(NSString*)s;
+ (void)removeStyleRecursive:(NSXMLElement*)el;
@end