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

Revision 2, 1.9 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//Notifications
18#define AIServiceIconSetDidChangeNotification   @"AIServiceIconSetDidChangeNotification"
19
20typedef enum {
21        AIServiceIconSmall = 0,         //Interface small
22        AIServiceIconLarge,                     //Interface large
23        AIServiceIconList                       //Contact List
24} AIServiceIconType;
25#define NUMBER_OF_SERVICE_ICON_TYPES    3
26
27typedef enum {
28        AIIconNormal = 0,
29        AIIconFlipped
30} AIIconDirection;
31#define NUMBER_OF_ICON_DIRECTIONS               2
32
33@class AIService, AIListObject;
34
35@interface AIServiceIcons : NSObject {
36
37}
38
39+ (NSImage *)serviceIconForObject:(AIListObject *)inObject type:(AIServiceIconType)iconType direction:(AIIconDirection)iconDirection;
40+ (NSImage *)serviceIconForService:(AIService *)service type:(AIServiceIconType)iconType direction:(AIIconDirection)iconDirection;
41+ (NSImage *)serviceIconForServiceID:(NSString *)serviceID type:(AIServiceIconType)iconType direction:(AIIconDirection)iconDirection;
42+ (NSString *)pathForServiceIconForServiceID:(NSString *)serviceID type:(AIServiceIconType)iconType;
43+ (BOOL)setActiveServiceIconsFromPath:(NSString *)inPath;
44
45+ (NSImage *)previewMenuImageForIconPackAtPath:(NSString *)inPath;
46
47@end
Note: See TracBrowser for help on using the browser.