/*
* -----
* Screenshot Sender - __command.js
* -----
* Command class for Screenshot Sender
* -----
*/
var Commands = function () {
this.Commands = '';
}
Commands.prototype = {
/*
Name: AddCommand
Purpose: Adds a custom command to Plus!
Parameters: sCommand - The command to add
sDescription - A description of the command
sParameter - Any additional optional parameters
Return: None
*/
"AddCommand" : function (sCommand, sDescription, sParameter) {
this.Commands += '<Command>'+
'<Name>'+sCommand+'</Name>'+
'<Description>'+sDescription+'</Description>'+
(typeof sParameter === 'undefined' ? '' : '<Parameters><'+sParameter+'></Parameters>') +
'</Command>';
},
/*
Name: ExportCommands
Purpose: Export the Plus! commands in xml form
Parameters: None
Return: XML formed Plus! commands
*/
"ExportCommands" : function () {
return '<ScriptCommands>'+this.Commands+'</ScriptCommands>';
}
}