//
//  HistoryDetailsViewController.h
//  DrivoMeter
//
//  Created by Triin Uudam on 3/17/12.
//  Copyright (c) 2012 Mobi Solutions OÜ. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Trip;
@class Database;
@interface HistoryDetailsViewController : UITableViewController <UITextFieldDelegate, UIActionSheetDelegate> {
  Database *database_;
  Trip *trip_;
  UITextField *dateField_;
  UITextField *distanceField_;
  UITextField *odomBeginField_;
  UITextField *odomEndField_;
  UIView *pickerView_;
  UIDatePicker *datePicker_;
  UITextField *purposeField_;
  UIBarButtonItem *doneButton_;
  BOOL isBusiness_;
  UITableViewCell *businessCell_;
  
}

@property (nonatomic, strong) Trip *trip;
@property (nonatomic, strong) Database *database;
@property (nonatomic, strong) UITextField *dateField;
@property (nonatomic, strong) UITextField *distanceField;
@property (nonatomic, strong) UITextField *odomBeginField;
@property (nonatomic, strong) UITextField *odomEndField;
@property (nonatomic, strong) UITextField *purposeField;
@property (nonatomic, strong) IBOutlet UIView *pickerView;
@property (nonatomic, strong) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *doneButton;
@property (nonatomic) BOOL isBusiness;
@property (nonatomic, strong) UITableViewCell *businessCell;

- (IBAction)doneButtonPressed:(id)sender;

@end
