//
//  Database+Favorites.h
//  DrivoMeter
//
//  Created by Triin Uudam on 5/3/12.
//  Copyright (c) 2012 Mobi Solutions OÜ. All rights reserved.
//

#import "Database.h"
@class Favorite;
@class Trip;
@interface Database (Favorites)

- (Favorite *)addNewFavoriteWithDistance:(double)distance purpose:(NSString *)purpose isBusiness:(BOOL)business;

- (void)deleteFavorite:(Favorite *)favorite;

- (void)deleteFavoriteWithTrip:(Trip *)trip;

- (void)addTrip:(Trip *)trip toFavorite:(Favorite *)favorite;

- (NSFetchedResultsController *)fetchedResultsControllerForFavorites;

@end
