Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsCommandLine.cpp File Reference
#include "nsICommandLineRunner.h"
#include "nsICategoryManager.h"
#include "nsICommandLineHandler.h"
#include "nsICommandLineValidator.h"
#include "nsIDOMWindow.h"
#include "nsIFile.h"
#include "nsISimpleEnumerator.h"
#include "nsIStringEnumerator.h"
#include "nsCOMPtr.h"
#include "nsIGenericFactory.h"
#include "nsISupportsImpl.h"
#include "nsNativeCharsetUtils.h"
#include "nsNetUtil.h"
#include "nsUnicharUtils.h"
#include "nsVoidArray.h"
#include "nsXPCOMCID.h"
#include "plstr.h"

Go to the source code of this file.


class  nsCommandLine


 NS_IMPL_ISUPPORTS2 (nsCommandLine, nsICommandLine, nsICommandLineRunner) NS_IMETHODIMP nsCommandLine
static nsresult EnumValidate (nsICommandLineValidator *aValidator, nsICommandLine *aThis, void *)
static nsresult EnumRun (nsICommandLineHandler *aHandler, nsICommandLine *aThis, void *)
static nsresult EnumHelp (nsICommandLineHandler *aHandler, nsICommandLine *aThis, void *aClosure)


static const nsModuleComponentInfo components []

Function Documentation

static nsresult EnumHelp ( nsICommandLineHandler aHandler,
nsICommandLine aThis,
void aClosure 
) [static]

Definition at line 684 of file nsCommandLine.cpp.

  nsresult rv;

  nsCString text;
  rv = aHandler->GetHelpInfo(text);
  if (NS_SUCCEEDED(rv)) {
    NS_ASSERTION(text.Length() == 0 || text.Last() == '\n',
                 "Help text from command line handlers should end in a newline.");

    nsACString* totalText = NS_REINTERPRET_CAST(nsACString*, aClosure);

  return NS_OK;
static nsresult EnumRun ( nsICommandLineHandler aHandler,
nsICommandLine aThis,
) [static]

Definition at line 662 of file nsCommandLine.cpp.

  return aHandler->Handle(aThis);
static nsresult EnumValidate ( nsICommandLineValidator aValidator,
nsICommandLine aThis,
) [static]

Definition at line 656 of file nsCommandLine.cpp.

  return aValidator->Validate(aThis);

Definition at line 116 of file nsCommandLine.cpp.

  *aResult = mArgs.Count();
  return NS_OK;

Variable Documentation

Initial value:
  { "nsCommandLine",
    { 0x23bcc750, 0xdc20, 0x460b, { 0xb2, 0xd4, 0x74, 0xd8, 0xf5, 0x8d, 0x36, 0x15 } },

Definition at line 711 of file nsCommandLine.cpp.