DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/calendar/base/public/calIDateTimeFormatter.idl
 */

#ifndef __gen_calIDateTimeFormatter_h__
#define __gen_calIDateTimeFormatter_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class calIDateTime; /* forward declaration */

class calIItemBase; /* forward declaration */


/* starting interface:    calIDateTimeFormatter */
#define CALIDATETIMEFORMATTER_IID_STR "69741510-5f5d-11e4-9803-0800200c9a66"

#define CALIDATETIMEFORMATTER_IID \
  {0x69741510, 0x5f5d, 0x11e4, \
    { 0x98, 0x03, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE calIDateTimeFormatter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIDATETIMEFORMATTER_IID)

  /* AString formatDate (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDate(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AString formatDateShort (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDateShort(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AString formatDateLong (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDateLong(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AString formatDateWithoutYear (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDateWithoutYear(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AString formatTime (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatTime(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AString formatDateTime (in calIDateTime aDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDateTime(calIDateTime *aDate, nsAString& _retval) = 0;

  /* AUTF8String formatItemInterval (in calIItemBase aItem); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatItemInterval(calIItemBase *aItem, nsACString& _retval) = 0;

  /* AUTF8String formatItemTimeInterval (in calIItemBase aItem); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatItemTimeInterval(calIItemBase *aItem, nsACString& _retval) = 0;

  /* AUTF8String formatInterval (in calIDateTime aStartDate, in calIDateTime aEndDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatInterval(calIDateTime *aStartDate, calIDateTime *aEndDate, nsACString& _retval) = 0;

  /* AUTF8String formatTimeInterval (in calIDateTime aStartTime, in calIDateTime aEndTime); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatTimeInterval(calIDateTime *aStartTime, calIDateTime *aEndTime, nsACString& _retval) = 0;

  /* AUTF8String formatDayWithOrdinal (in unsigned long aMonthdayIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FormatDayWithOrdinal(uint32_t aMonthdayIndex, nsACString& _retval) = 0;

  /* AString monthName (in unsigned long aMonthIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MonthName(uint32_t aMonthIndex, nsAString& _retval) = 0;

  /* AString shortMonthName (in unsigned long aMonthIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShortMonthName(uint32_t aMonthIndex, nsAString& _retval) = 0;

  /* AString dayName (in unsigned long aDayIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DayName(uint32_t aDayIndex, nsAString& _retval) = 0;

  /* AString shortDayName (in unsigned long aDayIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShortDayName(uint32_t aDayIndex, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIDateTimeFormatter, CALIDATETIMEFORMATTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIDATETIMEFORMATTER \
  NS_IMETHOD FormatDate(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatDateShort(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatDateLong(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatDateWithoutYear(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatTime(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatDateTime(calIDateTime *aDate, nsAString& _retval) override; \
  NS_IMETHOD FormatItemInterval(calIItemBase *aItem, nsACString& _retval) override; \
  NS_IMETHOD FormatItemTimeInterval(calIItemBase *aItem, nsACString& _retval) override; \
  NS_IMETHOD FormatInterval(calIDateTime *aStartDate, calIDateTime *aEndDate, nsACString& _retval) override; \
  NS_IMETHOD FormatTimeInterval(calIDateTime *aStartTime, calIDateTime *aEndTime, nsACString& _retval) override; \
  NS_IMETHOD FormatDayWithOrdinal(uint32_t aMonthdayIndex, nsACString& _retval) override; \
  NS_IMETHOD MonthName(uint32_t aMonthIndex, nsAString& _retval) override; \
  NS_IMETHOD ShortMonthName(uint32_t aMonthIndex, nsAString& _retval) override; \
  NS_IMETHOD DayName(uint32_t aDayIndex, nsAString& _retval) override; \
  NS_IMETHOD ShortDayName(uint32_t aDayIndex, nsAString& _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_CALIDATETIMEFORMATTER \
  nsresult FormatDate(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatDateShort(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatDateLong(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatDateWithoutYear(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatTime(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatDateTime(calIDateTime *aDate, nsAString& _retval); \
  nsresult FormatItemInterval(calIItemBase *aItem, nsACString& _retval); \
  nsresult FormatItemTimeInterval(calIItemBase *aItem, nsACString& _retval); \
  nsresult FormatInterval(calIDateTime *aStartDate, calIDateTime *aEndDate, nsACString& _retval); \
  nsresult FormatTimeInterval(calIDateTime *aStartTime, calIDateTime *aEndTime, nsACString& _retval); \
  nsresult FormatDayWithOrdinal(uint32_t aMonthdayIndex, nsACString& _retval); \
  nsresult MonthName(uint32_t aMonthIndex, nsAString& _retval); \
  nsresult ShortMonthName(uint32_t aMonthIndex, nsAString& _retval); \
  nsresult DayName(uint32_t aDayIndex, nsAString& _retval); \
  nsresult ShortDayName(uint32_t aDayIndex, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIDATETIMEFORMATTER(_to) \
  NS_IMETHOD FormatDate(calIDateTime *aDate, nsAString& _retval) override { return _to FormatDate(aDate, _retval); } \
  NS_IMETHOD FormatDateShort(calIDateTime *aDate, nsAString& _retval) override { return _to FormatDateShort(aDate, _retval); } \
  NS_IMETHOD FormatDateLong(calIDateTime *aDate, nsAString& _retval) override { return _to FormatDateLong(aDate, _retval); } \
  NS_IMETHOD FormatDateWithoutYear(calIDateTime *aDate, nsAString& _retval) override { return _to FormatDateWithoutYear(aDate, _retval); } \
  NS_IMETHOD FormatTime(calIDateTime *aDate, nsAString& _retval) override { return _to FormatTime(aDate, _retval); } \
  NS_IMETHOD FormatDateTime(calIDateTime *aDate, nsAString& _retval) override { return _to FormatDateTime(aDate, _retval); } \
  NS_IMETHOD FormatItemInterval(calIItemBase *aItem, nsACString& _retval) override { return _to FormatItemInterval(aItem, _retval); } \
  NS_IMETHOD FormatItemTimeInterval(calIItemBase *aItem, nsACString& _retval) override { return _to FormatItemTimeInterval(aItem, _retval); } \
  NS_IMETHOD FormatInterval(calIDateTime *aStartDate, calIDateTime *aEndDate, nsACString& _retval) override { return _to FormatInterval(aStartDate, aEndDate, _retval); } \
  NS_IMETHOD FormatTimeInterval(calIDateTime *aStartTime, calIDateTime *aEndTime, nsACString& _retval) override { return _to FormatTimeInterval(aStartTime, aEndTime, _retval); } \
  NS_IMETHOD FormatDayWithOrdinal(uint32_t aMonthdayIndex, nsACString& _retval) override { return _to FormatDayWithOrdinal(aMonthdayIndex, _retval); } \
  NS_IMETHOD MonthName(uint32_t aMonthIndex, nsAString& _retval) override { return _to MonthName(aMonthIndex, _retval); } \
  NS_IMETHOD ShortMonthName(uint32_t aMonthIndex, nsAString& _retval) override { return _to ShortMonthName(aMonthIndex, _retval); } \
  NS_IMETHOD DayName(uint32_t aDayIndex, nsAString& _retval) override { return _to DayName(aDayIndex, _retval); } \
  NS_IMETHOD ShortDayName(uint32_t aDayIndex, nsAString& _retval) override { return _to ShortDayName(aDayIndex, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIDATETIMEFORMATTER(_to) \
  NS_IMETHOD FormatDate(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDate(aDate, _retval); } \
  NS_IMETHOD FormatDateShort(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDateShort(aDate, _retval); } \
  NS_IMETHOD FormatDateLong(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDateLong(aDate, _retval); } \
  NS_IMETHOD FormatDateWithoutYear(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDateWithoutYear(aDate, _retval); } \
  NS_IMETHOD FormatTime(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatTime(aDate, _retval); } \
  NS_IMETHOD FormatDateTime(calIDateTime *aDate, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDateTime(aDate, _retval); } \
  NS_IMETHOD FormatItemInterval(calIItemBase *aItem, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatItemInterval(aItem, _retval); } \
  NS_IMETHOD FormatItemTimeInterval(calIItemBase *aItem, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatItemTimeInterval(aItem, _retval); } \
  NS_IMETHOD FormatInterval(calIDateTime *aStartDate, calIDateTime *aEndDate, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatInterval(aStartDate, aEndDate, _retval); } \
  NS_IMETHOD FormatTimeInterval(calIDateTime *aStartTime, calIDateTime *aEndTime, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatTimeInterval(aStartTime, aEndTime, _retval); } \
  NS_IMETHOD FormatDayWithOrdinal(uint32_t aMonthdayIndex, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatDayWithOrdinal(aMonthdayIndex, _retval); } \
  NS_IMETHOD MonthName(uint32_t aMonthIndex, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MonthName(aMonthIndex, _retval); } \
  NS_IMETHOD ShortMonthName(uint32_t aMonthIndex, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShortMonthName(aMonthIndex, _retval); } \
  NS_IMETHOD DayName(uint32_t aDayIndex, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DayName(aDayIndex, _retval); } \
  NS_IMETHOD ShortDayName(uint32_t aDayIndex, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShortDayName(aDayIndex, _retval); } 


#endif /* __gen_calIDateTimeFormatter_h__ */