//
//  FavoritesViewController.h
//  DrivoMeter
//
//  Created by Triin Uudam on 4/26/12.
//  Copyright (c) 2012 Mobi Solutions OÜ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@class Database;
@class Favorite;
@protocol FavoritesDelegate <NSObject>

- (void)updateWithFavorite:(Favorite *)favoriteTrip;

@end
@interface FavoritesViewController : UITableViewController <NSFetchedResultsControllerDelegate> {
  Database *database_;
  NSFetchedResultsController *favoritesFetchedResultsController_;
  BOOL selectFavoriteMode_;
  id<FavoritesDelegate> delegate_;
  UITableViewCell *addFavoriteCell_;
}

@property (nonatomic, strong) Database *database;
@property (nonatomic, strong) NSFetchedResultsController *favoritesFetchedResultsController;
@property (nonatomic, strong) IBOutlet UITableViewCell *addFavoriteCell;
@property (nonatomic) BOOL selectFavoriteMode;
@property (nonatomic) id<FavoritesDelegate> delegate;

@end
