forked from ViennaRSS/vienna-rss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved FolderImageCache out of Folder class
Also re-added the db migration alert dialog.
- Loading branch information
Showing
5 changed files
with
222 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// FolderImageCache.h | ||
// Vienna | ||
// | ||
// Created by Joshua Pore on 8/03/2015. | ||
// Copyright (c) 2015 The Vienna Project. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface FolderImageCache : NSObject { | ||
NSString * imagesCacheFolder; | ||
NSMutableDictionary * folderImagesArray; | ||
BOOL initializedFolderImagesArray; | ||
} | ||
|
||
// Indexes into folder image array | ||
enum { | ||
MA_FolderIcon = 0, | ||
MA_SmartFolderIcon, | ||
MA_RSSFolderIcon, | ||
MA_RSSFeedIcon, | ||
MA_TrashFolderIcon, | ||
MA_SearchFolderIcon, | ||
MA_GoogleReaderFolderIcon, | ||
MA_Max_Icons | ||
}; | ||
|
||
+(FolderImageCache *)defaultCache; | ||
-(void)addImage:(NSImage *)image forURL:(NSString *)baseURL; | ||
-(NSImage *)retrieveImage:(NSString *)baseURL; | ||
|
||
@end |
Oops, something went wrong.