RMTileCacheDAO.h 603 Bytes
//
//  DAO.h
//  CatchMe
//
//  Created by Joseph Gentle on 21/07/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FMDatabase;

@interface RMTileCacheDAO : NSObject {
	FMDatabase* db;	
}

-(id) initWithDatabase: (NSString*)path;

-(NSUInteger) count;
-(NSData*) dataForTile: (uint64_t) tileHash;
-(void) touchTile: (uint64_t) tileHash withDate: (NSDate*) date;
-(void) addData: (NSData*) data LastUsed: (NSDate*)date ForTile: (uint64_t) tileHash;
-(void) purgeTiles: (NSUInteger) count;

//-(NSArray*) getLocalTimetableInformationAt: (int)stopId;

@end