/*
 * File: app.js
 *
 * This file was generated by Sencha Architect version 3.0.2.
 * http://www.sencha.com/products/architect/
 *
 * This file requires use of the Ext JS 4.2.x library, under independent license.
 * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
 * details see http://www.sencha.com/license or contact license@sencha.com.
 *
 * This file will be auto-generated each and everytime you save your project.
 *
 * Do NOT hand edit this file.
 */

// @require @packageOverrides
Ext.Loader.setConfig({
	enabled: true
});


Ext.application({
	models: [
		'Language',
		'Frequency'
	],
	stores: [
		'LanguageStore',
		'FrequencyStore'
	],
	views: [
		'Main'
	],
	controllers: [
		'NotificationSettings'
	],
	name: 'MyApp',

	message: function(title, message) {
		var s = Ext.String.format.apply(String, Array.prototype.slice.call(arguments, 1));
		var m = Ext.DomHelper.append(this.msgCt, '<div class="msg"><h3>' + title + '</h3><p>' + s + '</p></div>', true);
		m.hide();
		m.slideIn('t').ghost("t", { delay: 2500, remove: true});
	},

	launch: function() {
		Ext.create('MyApp.view.Main', {renderTo: Ext.getBody()});
		this.msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);

		Ext.override(Ext.data.Connection, {
		    timeout: 90000
		});
		Ext.Ajax.timeout = 90000;
		Ext.override(Ext.data.proxy.Ajax, { timeout: 90000 });
		Ext.override(Ext.form.action.Action, { timeout: 90 });

	}

});
