[EventManager]update EventManager(tizen_2.1)
[samples/web/EventManager.git] / js / app.config.js
1 /*global tizen  */
2
3 /**
4  * @class Config
5  */
6 function Config() {
7     'use strict';
8 }
9
10 (function () { // strict mode wrapper
11     'use strict';
12     Config.prototype = {
13
14         properties: {
15             'systemContactImageDirPath': '/opt/data/contacts-svc/img/',
16             'defaultAvatarUrl': 'images/default.jpg',
17             'templateDir': 'templates',
18             'localstorageConfigKey': 'configData',
19             'templateExtension': '.tpl',
20             'convertedPhotoUrl': 'file:///opt/media/Images/output.png'
21         },
22
23         /**
24          * Returns config value
25          */
26         get: function (value, defaultValue) {
27             defaultValue = defaultValue || '';
28
29             if (this.properties.hasOwnProperty(value)) {
30                 return this.properties[value];
31             } else {
32                 return defaultValue;
33             }
34         }
35     };
36 }());