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

#import <UIKit/UIKit.h>

typedef enum {
  currentWeek,
  currentMonth,
  previousWeek,
  previousMonth,
  all,
  custom
} PeriodType;

@interface Period : NSObject {
  
  PeriodType periodType_;
  NSDate *beginningDate_;
  NSDate *endDate_;
  NSString *periodName_;
  
}

@property (nonatomic, retain) NSDate *beginningDate;
@property (nonatomic, retain) NSDate *endDate;
@property (nonatomic, retain) NSString *periodName;
@property (nonatomic, assign) PeriodType periodType;

- (id)initWithPeriod:(PeriodType)periodType;

- (void)setPeriodDates;

@end
