Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsScriptableDateFormat.cpp File Reference
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsLocaleCID.h"
#include "nsILocaleService.h"
#include "nsDateTimeFormatCID.h"
#include "nsIDateTimeFormat.h"
#include "nsIScriptableDateFormat.h"
#include "nsCRT.h"
#include "nsReadableUtils.h"

Go to the source code of this file.

Classes

class  nsScriptableDateFormat

Functions

static NS_DEFINE_CID (kLocaleServiceCID, NS_LOCALESERVICE_CID)
static NS_DEFINE_CID (kDateTimeFormatCID, NS_DATETIMEFORMAT_CID)
NS_IMETHODIMP NS_NewScriptableDateFormat (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Function Documentation

static NS_DEFINE_CID ( kLocaleServiceCID  ,
NS_LOCALESERVICE_CID   
) [static]
static NS_DEFINE_CID ( kDateTimeFormatCID  ,
NS_DATETIMEFORMAT_CID   
) [static]
NS_IMETHODIMP NS_NewScriptableDateFormat ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
)

Definition at line 160 of file nsScriptableDateFormat.cpp.

{
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;

  nsScriptableDateFormat* result = new nsScriptableDateFormat();
  if (! result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(result);
  nsresult rv = result->QueryInterface(aIID, aResult);
  NS_RELEASE(result);

  return rv;
}

Here is the call graph for this function: