Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL nsICommandLine.idl  Interaktion und
PortierbarkeitC


/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "nsISupports.idl"

interface nsIFile;
interface nsIURI;

/**
 * Represents the command line used to invoke a XUL application. This may be the
 * original command-line of this instance, or a command line remoted from another
 * instance of the application.
 *
 * DEFINITIONS:
 * "arguments" are any values found on the command line.
 * "flags" are switches. In normalized form they are preceded by a single dash.
 * Some flags may take "parameters", e.g. "--url <param>".
 */


[scriptable, uuid(bc3173bd-aa46-46a0-9d25-d9867a9659b6)]
interface nsICommandLine : nsISupports
{
  /**
   * Number of arguments in the command line. The application name is not
   * part of the command line.
   */

  readonly attribute long length;

  /**
   * Get an argument from the array of command-line arguments.
   *
   * On windows, flags of the form /flag are normalized to -flag. /flag:param
   * are normalized to -flag param.
   *
   * On *nix and mac flags of the form --flag are    * On *nix and mac flags ofjava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
   * are normalized to the form -flag param.
   *
      to 
   *               not include the application name.
   * @return       The indexth argument.
   t       if aIndex is out of bounds.
   */

  AString java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 38

  /**
   * Find a command-line flag.
   *
*@The nameto java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 78
*                       .
*p docase-.
   * @return               The position of the flag in the command line, or -1 if
   *                       not found.
   */
  long findFlag(in AString aFlag, in boolean java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 4

  /**
   * Remove arguments from the command line. This java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 44
   * a handler has processed the arguments.
   *
   * @param aStart  Index to begin removing.
   * @param aEnd    Index to end removing, inclusive.
   */
  void removeArguments(in long aStart, in long aEnd);

  /**
   * A helper method which will find a flag and remove it in one step.
   *
   * @param aFlag  The flag name to find and remove.
   * @param aCaseSensitive Whether to do case-sensitive comparisons.
   * @return       Whether the flag was found.
   */
  boolean handleFlag(in AString aFlag, in boolean aCaseSensitive);

  /**
   * Find a flag with a parameter and remove both. This is a helper
   * method that combines "findFlag" and "removeArguments" in one step.
   *
   * @return   null (a void astring) if the flag is not found. The parameter value
   *           if found. Note that null and the empty string are not the same.
   * @throws   NS_ERROR_INVALID_ARG if the flag exists without a parameter
   *
   * @param aFlag The flag name to find and remove.
   * @param aCaseSensitive Whether to do case-sensitive flag search.
   */
  AString handleFlagWithParam(in AString aFlag, in boolean aCaseSensitive);

  /**
   * The type of command line being processed.
   *
   * STATE_INITIAL_LAUNCH  is the first launch of the application instance.
   * STATE_REMOTE_AUTO     is a remote command line automatically redirected to
   *                       this instance.
   * STATE_REMOTE_EXPLICIT is a remote command line explicitly redirected to
   *                       this instance using xremote/windde/appleevents.
   */
  readonly attribute unsigned long state;

  const unsigned long STATE_INITIAL_LAUNCH  = 0;
  const unsigned long STATE_REMOTE_AUTO     = 1;
  const unsigned long STATE_REMOTE_EXPLICIT = 2;

  /**
   * There may be a command-line handler which performs a default action if
   * there was no explicit action on the command line (open a default browser
   * window, for example). This flag allows the default action to be prevented.
   */
  attribute boolean preventDefault;

  /**
   * The working directory for this command line. Use this property instead
   * of the working directory for the current process, since a redirected
   * command line may have had a different working directory.
   *
   * @throws NS_ERROR_NOT_INITIALIZED if the working directory was not specified.
   */
  readonly attribute nsIFile workingDirectory;

  /**
   * Resolve a file-path argument into an nsIFile. This method gracefully
   * handles relative or absolute file paths, according to the working
   * directory of this command line.
   * If the path is relative and there is no working directory available,
   * this may return null.
   *
   * @param aArgument  The path to resolve.
   *
   */
  nsIFile resolveFile(in AString aArgument);

  /**
   * Resolves a URI  

    this line.Use   
   * appropriate URI object; it gracefully handles win32 C:\ paths java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
   * confuse the ioservice if passed    * handles relative or absolute file paths,
   *
e  tojava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 5
  nsIURI resolveURIi  ;
};

Messung
CHZG
909810096

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.69Angebot  ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,041
#Domains=963,853