Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions
nsIScriptableDateFormat.idl File Reference
import "nsISupports.idl";

Go to the source code of this file.

Classes

interface  nsIScriptableDateFormat

Defines

#define NS_SCRIPTABLEDATEFORMAT_CID   { 0x2ea2e7d0, 0x4095, 0x11d3, { 0x91, 0x44, 0x0, 0x60, 0x8, 0xa6, 0xed, 0xf6 } }
#define NS_SCRIPTABLEDATEFORMAT_CONTRACTID   "@mozilla.org/intl/scriptabledateformat;1"

Typedefs

typedef long nsDateFormatSelector
typedef long nsTimeFormatSelector

Enumerations

enum  {
  kDateFormatNone = 0, kDateFormatLong, kDateFormatShort, kDateFormatYearMonth,
  kDateFormatWeekday
}
enum  {
  kTimeFormatNone = 0, kTimeFormatSeconds, kTimeFormatNoSeconds, kTimeFormatSecondsForce24Hour,
  kTimeFormatNoSecondsForce24Hour
}

Functions

NS_IMETHODIMP NS_NewScriptableDateFormat (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Define Documentation

#define NS_SCRIPTABLEDATEFORMAT_CID   { 0x2ea2e7d0, 0x4095, 0x11d3, { 0x91, 0x44, 0x0, 0x60, 0x8, 0xa6, 0xed, 0xf6 } }

Definition at line 67 of file nsIScriptableDateFormat.idl.

#define NS_SCRIPTABLEDATEFORMAT_CONTRACTID   "@mozilla.org/intl/scriptabledateformat;1"

Definition at line 70 of file nsIScriptableDateFormat.idl.


Typedef Documentation

Definition at line 40 of file nsIScriptableDateFormat.idl.

Definition at line 52 of file nsIScriptableDateFormat.idl.


Enumeration Type Documentation

anonymous enum
Enumerator:
kDateFormatNone 
kDateFormatLong 
kDateFormatShort 
kDateFormatYearMonth 
kDateFormatWeekday 

Definition at line 42 of file nsIScriptableDateFormat.idl.

{
    kDateFormatNone = 0,            // do not include the date  in the format string
    kDateFormatLong,                // provides the long date format for the given locale
    kDateFormatShort,               // provides the short date format for the given locale
    kDateFormatYearMonth,           // formats using only the year and month 
    kDateFormatWeekday              // week day (e.g. Mon, Tue)
};
anonymous enum
Enumerator:
kTimeFormatNone 
kTimeFormatSeconds 
kTimeFormatNoSeconds 
kTimeFormatSecondsForce24Hour 
kTimeFormatNoSecondsForce24Hour 

Definition at line 54 of file nsIScriptableDateFormat.idl.

{
    kTimeFormatNone = 0,            // don't include the time in the format string
    kTimeFormatSeconds,             // provides the time format with seconds in the  given locale 
    kTimeFormatNoSeconds,           // provides the time format without seconds in the given locale 
    kTimeFormatSecondsForce24Hour,  // forces the time format to use the 24 clock, regardless of the locale conventions
    kTimeFormatNoSecondsForce24Hour // forces the time format to use the 24 clock, regardless of the locale conventions
};

Function Documentation

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: