     let settingsRequest = UIUserNotificationSettings(forTypes: requestedTypes, categories: categories)
     UIApplication.sharedApplication().registerUserNotificationSettings(settingsRequest)
   }
-  
   
   private func timerFiredNotificationCategory() -> UIUserNotificationCategory {
     let restartAction = UIMutableUserNotificationAction()

}

class TimerNotificationManager: Printable {
  var timerRunning = false
  var delegate: TimerNotificationManagerDelegate?
  var timerDuration: Float {
    didSet {
      delegate?.timerStatusChanged()

  }

  init() {
    timerRunning = false
    timerDuration = 30.0
    registerForNotifications()
    checkForPreExistingTimer()
  }
  
  func startTimer() {
    if !timerRunning {
      // Create the notification...
      let timer = createTimer()
      UIApplication.sharedApplication().scheduleLocalNotification(timer)
      timerRunning = true
    }
  }
  
  func stopTimer() {
    if timerRunning {
      // Kill all local notifications
      UIApplication.sharedApplication().cancelAllLocalNotifications()
      timerRunning = false
    }
  }
  
