var syncHandler = function (handlerRunner) {

	var that = this;
	
	//id of item for handler that is currently active
	var activeId;
	
	//id of item that should be active according to sync time
	var syncId;
	
	//index of data item for handler that is currently active
	var dataIndex;

	that.run = function(seconds, record){ 
		handlerRunner.run(seconds, record); 
	}
	
	that.setDataIndex = function(indexData){
		dataIndex = indexData;
	}

	that.getDataIndex = function(){
		return dataIndex;
	}	

	that.getDataLabel = function(){
		//Label used to retrieve data for handler
		return handlerRunner.HANDLER_TYPE_NAME;
	}
	
	that.getActiveId = function(){
		return activeId;
	}
	
	that.setActiveId = function(idActive){
		activeId = idActive;
	}
	
	that.getSyncId = function(){
		return syncId;
	}
	
	that.setSyncId = function(idSync){
		syncId = idSync;
	}
		
	return that;
	
};
