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