function IphonePoller() {
  this.poller = null;
  this.method = null;
}

IphonePoller.prototype  = {
  setHandler: function(method) {
    this.method = method;
  },
  
  start: function() {
    this.poller = new PeriodicalExecuter(this.method, 5);
  },
  
  stop: function() {
    this.poller.stop();
  }
}