root/Trunk/Adium.framework/Versions/A/Headers/AIEmoticon.h @ 2

Revision 2, 1.7 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1/*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
11 * Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15 */
16
17
18@class AIEmoticonPack;
19
20@interface AIEmoticon : NSObject {
21    NSString                *path;
22    NSString                *name;
23    NSArray                 *textEquivalents;
24        AIEmoticonPack                  *pack;
25        NSString                                *serviceClass;
26       
27    BOOL                    enabled;
28        BOOL                                    imageLoaded;
29   
30    NSAttributedString      *_cachedAttributedString;
31}
32
33+ (id)emoticonWithIconPath:(NSString *)inPath equivalents:(NSArray *)inTextEquivalents name:(NSString *)inName pack:(AIEmoticonPack *)inPack;
34- (NSArray *)textEquivalents;
35- (NSMutableAttributedString *)attributedStringWithTextEquivalent:(NSString *)textEquivalent attachImages:(BOOL)attach;
36- (BOOL)isAppropriateForServiceClass:(NSString *)inServiceClass;
37- (NSImage *)image;
38- (void)setPath:(NSString *)inPath;
39- (NSString *)path;
40- (NSString *)name;
41- (void)setEnabled:(BOOL)inEnabled;
42- (BOOL)isEnabled;
43- (void)flushEmoticonImageCache;
44
45@end
Note: See TracBrowser for help on using the browser.