code: function(type, title, iconType, iconTemplate, subtitle, callback) {
                  var deferred = $q.defer();
  
                  var quickAction = {
                      type: type,
                      title: title,
                      subtitle: subtitle
                  };
  
                  if (iconType) {
                      quickAction.iconType = iconType;
                  }
  
                  if (iconTemplate) {
                      quickAction.iconTemplate = iconTemplate;
                  }
  
                  this.isAvailable().then(function() {
                      quickActions.push(quickAction);
                      quickActionHandler[type] = callback;
                      window.ThreeDeeTouch.configureQuickActions(quickActions);
                      window.ThreeDeeTouch.onHomeIconPressed = createQuickActionHandler(quickActionHandler);
                      deferred.resolve(quickActions);
                  },
                  function(err) {
                      deferred.reject(err);
                  });
  
                  return deferred.promise;
              }
docs: /*
  Add a quick action to menu
  
  @param    string type
  @param    string title
  @param    string iconType (optional)
  @param    string subtitle (optional)
  @param    function callback (optional)
  @return   promise