Mobile API Reference  MicroStrategy 2019
CacheInfo.h
Go to the documentation of this file.
1 //
2 // CacheInfo.h
3 // MSTR Foundation
4 //
5 // Created by Amirali Charania on 2/20/09.
6 // Copyright 2009 MicroStrategy. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "MSISerializable.h"
11 #import "MSTRHandler.h"
12 #import "SAXSupport.h"
13 
14 #define DRILL_CACHE_ROOT_ID @"Drill"
15 
16 @class CacheIDMap;
17 
18 @interface CacheInfo : NSObject <MSISerializable, MSTRHandler>{
19 @private
20  NSInteger size;
21  NSString* subscriptionID;
22  NSString *cacheSetID;
23  NSString* cacheID;
24  NSDate* lastTimeRead; // lazily cached
25  NSInteger status;
26  NSString* projectID;
27  NSDate* creationTime;
28 }
29 
30 @property NSInteger size;
31 @property (nonatomic, copy) NSString *subscriptionID;
32 @property (nonatomic, copy) NSString *cacheSetID;
33 @property (nonatomic, copy) NSString *cacheID;
34 @property NSInteger status;
35 @property (nonatomic, copy) NSString *projectID;
36 @property (nonatomic, copy) NSDate *creationTime;
37 -(NSString*)cacheSetPath;
38 -(NSString*)cachePath:(CacheIDMap*) cacheIDMap;
39 -(NSString*)cachePath:(CacheIDMap*) cacheIDMap createDirectory:(BOOL)create;
40 -(NSString*)cachePath:(CacheIDMap*) cacheIDMap createDirectory:(BOOL)create locked:(BOOL)locked;
41 -(NSString*)cachePath:(CacheIDMap*) cacheIDMap inDirectory:(NSString*)cacheDir createDirectory:(BOOL)create;
42 -(NSString*)cachePath:(CacheIDMap*) cacheIDMap inDirectory:(NSString*)cacheDir createDirectory:(BOOL)create locked:(BOOL)locked;
43 
44 -(BOOL)cacheExistsOnDisk:(CacheIDMap*) cacheIDMap;
45 -(BOOL)isSpecial;
46 -(NSDate*) lastTimeRead:(CacheIDMap*)ownerMap;
47 -(void) updateLastTimeRead:(CacheIDMap*) ownerMap;
48 -(void)populate:(NSData*) data;
49 -(NSString*)getXML;
50 -(void) initializeCreationTime:(CacheIDMap*) ownerMap;
51 /*
52  * Move contents from updated folder to main report cache folder, delete the updated folder
53  */
54 -(void) mergeDataFromUpdatedFolder;
55 
56 @end
signed char BOOL
Definition: PDCwtypes.h:101
Definition: MSTRHandler.h:12
Definition: CacheInfo.h:18
Definition: MSISerializable.h:13