51 lines
1.2 KiB
JavaScript
51 lines
1.2 KiB
JavaScript
|
Ext.namespace('Zarafa.plugins.mdm');
|
||
|
|
||
|
/**
|
||
|
* @class Zarafa.plugins.mdm.MDM
|
||
|
* @extends Zarafa.core.Plugin
|
||
|
*
|
||
|
* Plugin which lists all devices connected to a Kopano account with Z-Push.
|
||
|
* The user can wipe, resync, remove a device using buttons in the WebApp.
|
||
|
*/
|
||
|
Zarafa.plugins.mdm.MDM = Ext.extend(Zarafa.core.Plugin, {
|
||
|
/**
|
||
|
* Constructor
|
||
|
* @param {Object} config
|
||
|
* @protected
|
||
|
*/
|
||
|
constructor : function(config) {
|
||
|
config = config || {};
|
||
|
Zarafa.plugins.mdm.MDM.superclass.constructor.call(this, config);
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* Called after constructor.
|
||
|
* Registers insertion points.
|
||
|
* @protected
|
||
|
*/
|
||
|
initPlugin : function()
|
||
|
{
|
||
|
this.registerInsertionPoint('context.settings.categories', this.createSettingCategory, this);
|
||
|
Zarafa.plugins.mdm.MDM.superclass.initPlugin.apply(this, arguments);
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* Creates a category in settings for Z-Push
|
||
|
* @return {mdmsettingscategory}
|
||
|
*/
|
||
|
createSettingCategory: function() {
|
||
|
return [{
|
||
|
xtype : 'Zarafa.plugins.mdm.mdmsettingscategory'
|
||
|
}];
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
Zarafa.onReady(function() {
|
||
|
container.registerPlugin(new Zarafa.core.PluginMetaData({
|
||
|
name : 'mdm',
|
||
|
displayName : _('Mobile device management'),
|
||
|
pluginConstructor : Zarafa.plugins.mdm.MDM
|
||
|
}));
|
||
|
});
|