#import "OnOffTableCell.h"

@implementation OnOffTableCell

@synthesize label;
@synthesize switchControl;
@synthesize notification;

- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier];
	if (self) {
		switchControl = [[UISwitch alloc] initWithFrame:CGRectMake(195.0, 8.0, 60.0, 110.0)];
		[[self contentView] addSubview:switchControl];
		
		label = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 2.0, 150.0, 40.0)];
        label.backgroundColor = [UIColor clearColor];
		[[self contentView] addSubview:label];
		self.selectionStyle = UITableViewCellSelectionStyleNone;
	}
	return self;
}

- (void)switchToggled:(UISwitch*)control {
//	[[NSNotificationCenter defaultCenter] postNotificationName:self.notification object:control];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
	[super setSelected:selected animated:animated];
}

@end
