Files
MacPass/MacPass/MPIconHelper.h
2013-07-07 14:04:43 +02:00

58 lines
1.1 KiB
Objective-C

//
// MPIconHelper.h
// MacPass
//
// Created by Michael Starke on 17.02.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, MPIconType) {
MPIconPassword,
MPIconPackageNetwork,
MPIconWarning,
MPIconServer,
MPIconKlipper,
MPIconLanguages,
MPIconBlockDevice,
MPIconNotepad,
MPIconSocket,
MPIconIdentity,
MPIconContact,
MPIconCamera,
MPIconRemote,
MPIconKeys,
MPIconDisplay = 18,
MPIconFileSave = 26,
MPIconTrash = 43,
MPIconFolder = 48,
MPIconPhone = 68,
/* Custom Icons not used in Database */
MPIconInfo = 1000,
MPIconAddFolder,
MPIconHardDisk,
};
@interface MPIconHelper : NSObject
/*
@param type Icon identifier typ MPIconTyp
@returns Icon for given identifier
*/
+ (NSImage *)icon:(MPIconType)type;
/*
Available Icons, Use the MPDatabaseIconType to access a individual icon;
@returns all availble Icons
*/
+ (NSDictionary *)availableIconNames;
+ (NSArray *)availableIcons;
/*
@returns a random Icon image
*/
+ (NSImage *)randomIcon;
@end