2014-07-09 14:45:53 +04:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface ContentManager : NSObject
|
|
|
|
{
|
|
|
|
NSMutableDictionary* _fileNamesCache;
|
2015-05-06 13:54:18 +03:00
|
|
|
NSMutableDictionary* _oldFileNamesCache;
|
2014-07-09 14:45:53 +04:00
|
|
|
BOOL _fileIconsEnabled;
|
2014-08-27 21:05:26 +04:00
|
|
|
BOOL _hasChangedContent;
|
2014-07-11 18:39:39 +04:00
|
|
|
|
|
|
|
NSNumber *_icnOk;
|
|
|
|
NSNumber *_icnSync;
|
|
|
|
NSNumber *_icnWarn;
|
|
|
|
NSNumber *_icnErr;
|
|
|
|
NSNumber *_icnOkSwm;
|
|
|
|
NSNumber *_icnSyncSwm;
|
|
|
|
NSNumber *_icnWarnSwm;
|
|
|
|
NSNumber *_icnErrSwm;
|
2014-07-09 14:45:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (ContentManager*)sharedInstance;
|
|
|
|
|
|
|
|
- (void)enableFileIcons:(BOOL)enable;
|
2014-08-04 14:03:01 +04:00
|
|
|
- (NSNumber*)iconByPath:(NSString*)path isDirectory:(BOOL)isDir;
|
2014-07-09 14:45:53 +04:00
|
|
|
- (void)removeAllIcons;
|
|
|
|
- (void)setIcons:(NSDictionary*)iconDictionary filterByFolder:(NSString*)filterFolder;
|
|
|
|
- (void)setResultForPath:(NSString*)path result:(NSString*)result;
|
2015-05-06 13:49:04 +03:00
|
|
|
- (void)clearFileNameCache;
|
2014-09-06 00:25:20 +04:00
|
|
|
- (void)reFetchFileNameCacheForPath:(NSString*)path;
|
2014-07-18 19:08:49 +04:00
|
|
|
- (void)repaintAllWindows;
|
2014-07-09 14:45:53 +04:00
|
|
|
|
2014-09-12 17:06:51 +04:00
|
|
|
- (void)loadIconResourcePath:(NSString*)path;
|
|
|
|
|
2014-07-09 14:45:53 +04:00
|
|
|
@end
|