Code Viewer

./Classes/__commands.js File Size: 1.98 KB

  1. /*
  2. * -----
  3. * Screenshot Sender - __command.js
  4. * -----
  5. * Command class for Screenshot Sender
  6. * -----
  7. */
  8.  
  9. var Commands = function () {
  10.         this.Commands = '';
  11. }
  12.  
  13. Commands.prototype = {
  14.         /*
  15.                 Name:   AddCommand
  16.                 Purpose:        Adds a custom command to Plus!
  17.                 Parameters:     sCommand - The command to add
  18.                                         sDescription - A description of the command
  19.                                         sParameter - Any additional optional parameters
  20.                 Return: None
  21.         */
  22.         "AddCommand" : function (sCommand, sDescription, sParameter) {
  23.                 this.Commands += '<Command>'+
  24.                                                         '<Name>'+sCommand+'</Name>'+
  25.                                                         '<Description>'+sDescription+'</Description>'+
  26.                                                          (typeof sParameter === 'undefined' ? '' : '<Parameters>&lt;'+sParameter+'&gt;</Parameters>') +
  27.                                                  '</Command>';
  28.         },
  29.        
  30.         /*
  31.                 Name:   ExportCommands
  32.                 Purpose:        Export the Plus! commands in xml form
  33.                 Parameters:     None
  34.                 Return: XML formed Plus! commands
  35.         */
  36.         "ExportCommands" : function () {
  37.                 return '<ScriptCommands>'+this.Commands+'</ScriptCommands>';
  38.         }
  39.        
  40. }

Version

  • 5.0.0070_20100325_publicbeta1

Developers

Project Details

  • Folders8
  • Files122
  • Total Lines11,867
  • Repository Version70

User Count

  • 162