Go to the source code of this file.
Functions | |
Components utils | import ("resource://app/jsmodules/StringUtils.jsm") |
This script manages and decides when the Songbird feedback dialog should be shown (based on pre-defined metrics). More... | |
function | getIntPrefValue (name, value) |
function | FeedbackDelegate () |
Variables | |
const | PREF_APP_SESSIONS = "feedback.app_sessions" |
const | PREF_FIRST_OPENED_DATE = "feedback.first_opened_date" |
const | PREF_TOTAL_RUNTIME = "feedback.total_runtime" |
const | PREF_SURVEY_DATE = "feedback.survey_date" |
const | PREF_DISABLE_FEEDBACK = "feedback.disabled" |
const | PREF_DENIED_FEEDBACK = "feedback.denied" |
const | PREF_NEXT_FEEDBACK_MONTH_LAG = "feedback.next_feedback_month_lag" |
const | PREF_MIN_APP_SESSIONS = "feedback.min_app_sessions" |
const | PREF_MIN_TOTAL_RUNTIME = "feedback.min_total_runtime" |
const | SURVEY_URL_KEY = "feedback.survey.url" |
const | MIN_APP_SESSIONS = 3 |
const | MIN_TOTAL_RUNTIME = 1800000 |
const | STARTUP_DELAY = 5000 |
const | NEXT_FEEDBACK_MONTH_LAG = 6 |
var | gObserverService |
var | gAppPrefs = Application.prefs |
FeedbackDelegate | prototype |
new FeedbackDelegate | ( | ) |
Feedback survey controller:
Definition at line 69 of file feedbackDelegate.js.
function getIntPrefValue | ( | name, | |
value | |||
) |
Definition at line 61 of file feedbackDelegate.js.
Components utils import | ( | "resource://app/jsmodules/StringUtils.jsm" | ) |
This script manages and decides when the Songbird feedback dialog should be shown (based on pre-defined metrics).
var gAppPrefs = Application.prefs |
Definition at line 59 of file feedbackDelegate.js.
var gObserverService |
Global vars:
Definition at line 57 of file feedbackDelegate.js.
const MIN_APP_SESSIONS = 3 |
Definition at line 49 of file feedbackDelegate.js.
const MIN_TOTAL_RUNTIME = 1800000 |
Definition at line 50 of file feedbackDelegate.js.
const NEXT_FEEDBACK_MONTH_LAG = 6 |
Definition at line 52 of file feedbackDelegate.js.
const PREF_APP_SESSIONS = "feedback.app_sessions" |
Feedback pref constants:
Definition at line 35 of file feedbackDelegate.js.
const PREF_DENIED_FEEDBACK = "feedback.denied" |
Definition at line 40 of file feedbackDelegate.js.
const PREF_DISABLE_FEEDBACK = "feedback.disabled" |
Definition at line 39 of file feedbackDelegate.js.
const PREF_FIRST_OPENED_DATE = "feedback.first_opened_date" |
Definition at line 36 of file feedbackDelegate.js.
const PREF_MIN_APP_SESSIONS = "feedback.min_app_sessions" |
Definition at line 42 of file feedbackDelegate.js.
const PREF_MIN_TOTAL_RUNTIME = "feedback.min_total_runtime" |
Definition at line 43 of file feedbackDelegate.js.
const PREF_NEXT_FEEDBACK_MONTH_LAG = "feedback.next_feedback_month_lag" |
Definition at line 41 of file feedbackDelegate.js.
const PREF_SURVEY_DATE = "feedback.survey_date" |
Definition at line 38 of file feedbackDelegate.js.
const PREF_TOTAL_RUNTIME = "feedback.total_runtime" |
Definition at line 37 of file feedbackDelegate.js.
FeedbackDelegate prototype |
Definition at line 75 of file feedbackDelegate.js.
const STARTUP_DELAY = 5000 |
Definition at line 51 of file feedbackDelegate.js.
const SURVEY_URL_KEY = "feedback.survey.url" |
Misc. constants:
Definition at line 48 of file feedbackDelegate.js.