//
//  TwoLabelCell.m
//  DrivoMeter
//
//  Created by Triin Uudam on 4/17/12.
//  Copyright (c) 2012 Mobi Solutions OÜ. All rights reserved.
//

#import "TwoLabelCell.h"

@implementation TwoLabelCell

@synthesize titleLabel = titleLabel_;
@synthesize valueLabel = valueLabel_;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
  self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  if (self) {
    // Initialization code
  }
  return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
  [super setSelected:selected animated:animated];
  
  // Configure the view for the selected state
}

- (void)setValuesForTitleLabel:(NSString *)title andValueLabel:(NSString *)value {
  [self.titleLabel setText:title];
  [self.valueLabel setText:value];
}

- (void)updateValue:(NSString *)newValue {
  [self.valueLabel setText:newValue];
}

- (NSString *)getValue {
  return self.valueLabel.text;
}

@end
