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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/calendar/base/public/calIDateTime.idl
 */

#ifndef __gen_calIDateTime_h__
#define __gen_calIDateTime_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 calIDuration; /* forward declaration */

class calITimezone; /* forward declaration */


/* starting interface:    calIDateTime */
#define CALIDATETIME_IID_STR "fe3e9a58-2938-4b2c-9085-4989d5f7244f"

#define CALIDATETIME_IID \
  {0xfe3e9a58, 0x2938, 0x4b2c, \
    { 0x90, 0x85, 0x49, 0x89, 0xd5, 0xf7, 0x24, 0x4f }}

class NS_NO_VTABLE calIDateTime : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIDATETIME_IID)

  /* readonly attribute boolean isMutable; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsMutable(bool *aIsMutable) = 0;

  /* void makeImmutable (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MakeImmutable(void) = 0;

  /* calIDateTime clone (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Clone(calIDateTime **_retval) = 0;

  /* readonly attribute boolean isValid; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsValid(bool *aIsValid) = 0;

  /* attribute PRTime nativeTime; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNativeTime(PRTime *aNativeTime) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNativeTime(PRTime aNativeTime) = 0;

  /* attribute short year; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetYear(int16_t *aYear) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetYear(int16_t aYear) = 0;

  /* attribute short month; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMonth(int16_t *aMonth) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMonth(int16_t aMonth) = 0;

  /* attribute short day; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDay(int16_t *aDay) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDay(int16_t aDay) = 0;

  /* attribute short hour; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHour(int16_t *aHour) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHour(int16_t aHour) = 0;

  /* attribute short minute; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMinute(int16_t *aMinute) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMinute(int16_t aMinute) = 0;

  /* attribute short second; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSecond(int16_t *aSecond) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSecond(int16_t aSecond) = 0;

  /* attribute calITimezone timezone; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimezone(calITimezone **aTimezone) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTimezone(calITimezone *aTimezone) = 0;

  /* void resetTo (in short year, in short month, in short day, in short hour, in short minute, in short second, in calITimezone timezone); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetTo(int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, calITimezone *timezone) = 0;

  /* readonly attribute long timezoneOffset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimezoneOffset(int32_t *aTimezoneOffset) = 0;

  /* attribute boolean isDate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsDate(bool *aIsDate) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsDate(bool aIsDate) = 0;

  /* readonly attribute short weekday; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWeekday(int16_t *aWeekday) = 0;

  /* readonly attribute short yearday; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetYearday(int16_t *aYearday) = 0;

  /* void reset (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Reset(void) = 0;

  /* AUTF8String toString (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ToString(nsACString& _retval) = 0;

  /* calIDateTime getInTimezone (in calITimezone aTimezone); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInTimezone(calITimezone *aTimezone, calIDateTime **_retval) = 0;

  /* void addDuration (in calIDuration aDuration); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddDuration(calIDuration *aDuration) = 0;

  /* calIDuration subtractDate (in calIDateTime aOtherDate); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SubtractDate(calIDateTime *aOtherDate, calIDuration **_retval) = 0;

  /* long compare (in calIDateTime aOther); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Compare(calIDateTime *aOther, int32_t *_retval) = 0;

  /* readonly attribute calIDateTime startOfWeek; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStartOfWeek(calIDateTime **aStartOfWeek) = 0;

  /* readonly attribute calIDateTime endOfWeek; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEndOfWeek(calIDateTime **aEndOfWeek) = 0;

  /* readonly attribute calIDateTime startOfMonth; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStartOfMonth(calIDateTime **aStartOfMonth) = 0;

  /* readonly attribute calIDateTime endOfMonth; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEndOfMonth(calIDateTime **aEndOfMonth) = 0;

  /* readonly attribute calIDateTime startOfYear; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStartOfYear(calIDateTime **aStartOfYear) = 0;

  /* readonly attribute calIDateTime endOfYear; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEndOfYear(calIDateTime **aEndOfYear) = 0;

  /* attribute ACString icalString; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIcalString(nsACString& aIcalString) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIcalString(const nsACString& aIcalString) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIDateTime, CALIDATETIME_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIDATETIME \
  NS_IMETHOD GetIsMutable(bool *aIsMutable) override; \
  NS_IMETHOD MakeImmutable(void) override; \
  NS_IMETHOD Clone(calIDateTime **_retval) override; \
  NS_IMETHOD GetIsValid(bool *aIsValid) override; \
  NS_IMETHOD GetNativeTime(PRTime *aNativeTime) override; \
  NS_IMETHOD SetNativeTime(PRTime aNativeTime) override; \
  NS_IMETHOD GetYear(int16_t *aYear) override; \
  NS_IMETHOD SetYear(int16_t aYear) override; \
  NS_IMETHOD GetMonth(int16_t *aMonth) override; \
  NS_IMETHOD SetMonth(int16_t aMonth) override; \
  NS_IMETHOD GetDay(int16_t *aDay) override; \
  NS_IMETHOD SetDay(int16_t aDay) override; \
  NS_IMETHOD GetHour(int16_t *aHour) override; \
  NS_IMETHOD SetHour(int16_t aHour) override; \
  NS_IMETHOD GetMinute(int16_t *aMinute) override; \
  NS_IMETHOD SetMinute(int16_t aMinute) override; \
  NS_IMETHOD GetSecond(int16_t *aSecond) override; \
  NS_IMETHOD SetSecond(int16_t aSecond) override; \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override; \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override; \
  NS_IMETHOD ResetTo(int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, calITimezone *timezone) override; \
  NS_IMETHOD GetTimezoneOffset(int32_t *aTimezoneOffset) override; \
  NS_IMETHOD GetIsDate(bool *aIsDate) override; \
  NS_IMETHOD SetIsDate(bool aIsDate) override; \
  NS_IMETHOD GetWeekday(int16_t *aWeekday) override; \
  NS_IMETHOD GetYearday(int16_t *aYearday) override; \
  NS_IMETHOD Reset(void) override; \
  NS_IMETHOD ToString(nsACString& _retval) override; \
  NS_IMETHOD GetInTimezone(calITimezone *aTimezone, calIDateTime **_retval) override; \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override; \
  NS_IMETHOD SubtractDate(calIDateTime *aOtherDate, calIDuration **_retval) override; \
  NS_IMETHOD Compare(calIDateTime *aOther, int32_t *_retval) override; \
  NS_IMETHOD GetStartOfWeek(calIDateTime **aStartOfWeek) override; \
  NS_IMETHOD GetEndOfWeek(calIDateTime **aEndOfWeek) override; \
  NS_IMETHOD GetStartOfMonth(calIDateTime **aStartOfMonth) override; \
  NS_IMETHOD GetEndOfMonth(calIDateTime **aEndOfMonth) override; \
  NS_IMETHOD GetStartOfYear(calIDateTime **aStartOfYear) override; \
  NS_IMETHOD GetEndOfYear(calIDateTime **aEndOfYear) override; \
  NS_IMETHOD GetIcalString(nsACString& aIcalString) override; \
  NS_IMETHOD SetIcalString(const nsACString& aIcalString) 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_CALIDATETIME \
  nsresult GetIsMutable(bool *aIsMutable); \
  nsresult MakeImmutable(void); \
  nsresult Clone(calIDateTime **_retval); \
  nsresult GetIsValid(bool *aIsValid); \
  nsresult GetNativeTime(PRTime *aNativeTime); \
  nsresult SetNativeTime(PRTime aNativeTime); \
  nsresult GetYear(int16_t *aYear); \
  nsresult SetYear(int16_t aYear); \
  nsresult GetMonth(int16_t *aMonth); \
  nsresult SetMonth(int16_t aMonth); \
  nsresult GetDay(int16_t *aDay); \
  nsresult SetDay(int16_t aDay); \
  nsresult GetHour(int16_t *aHour); \
  nsresult SetHour(int16_t aHour); \
  nsresult GetMinute(int16_t *aMinute); \
  nsresult SetMinute(int16_t aMinute); \
  nsresult GetSecond(int16_t *aSecond); \
  nsresult SetSecond(int16_t aSecond); \
  nsresult GetTimezone(calITimezone **aTimezone); \
  nsresult SetTimezone(calITimezone *aTimezone); \
  nsresult ResetTo(int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, calITimezone *timezone); \
  nsresult GetTimezoneOffset(int32_t *aTimezoneOffset); \
  nsresult GetIsDate(bool *aIsDate); \
  nsresult SetIsDate(bool aIsDate); \
  nsresult GetWeekday(int16_t *aWeekday); \
  nsresult GetYearday(int16_t *aYearday); \
  nsresult Reset(void); \
  nsresult ToString(nsACString& _retval); \
  nsresult GetInTimezone(calITimezone *aTimezone, calIDateTime **_retval); \
  nsresult AddDuration(calIDuration *aDuration); \
  nsresult SubtractDate(calIDateTime *aOtherDate, calIDuration **_retval); \
  nsresult Compare(calIDateTime *aOther, int32_t *_retval); \
  nsresult GetStartOfWeek(calIDateTime **aStartOfWeek); \
  nsresult GetEndOfWeek(calIDateTime **aEndOfWeek); \
  nsresult GetStartOfMonth(calIDateTime **aStartOfMonth); \
  nsresult GetEndOfMonth(calIDateTime **aEndOfMonth); \
  nsresult GetStartOfYear(calIDateTime **aStartOfYear); \
  nsresult GetEndOfYear(calIDateTime **aEndOfYear); \
  nsresult GetIcalString(nsACString& aIcalString); \
  nsresult SetIcalString(const nsACString& aIcalString); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIDATETIME(_to) \
  NS_IMETHOD GetIsMutable(bool *aIsMutable) override { return _to GetIsMutable(aIsMutable); } \
  NS_IMETHOD MakeImmutable(void) override { return _to MakeImmutable(); } \
  NS_IMETHOD Clone(calIDateTime **_retval) override { return _to Clone(_retval); } \
  NS_IMETHOD GetIsValid(bool *aIsValid) override { return _to GetIsValid(aIsValid); } \
  NS_IMETHOD GetNativeTime(PRTime *aNativeTime) override { return _to GetNativeTime(aNativeTime); } \
  NS_IMETHOD SetNativeTime(PRTime aNativeTime) override { return _to SetNativeTime(aNativeTime); } \
  NS_IMETHOD GetYear(int16_t *aYear) override { return _to GetYear(aYear); } \
  NS_IMETHOD SetYear(int16_t aYear) override { return _to SetYear(aYear); } \
  NS_IMETHOD GetMonth(int16_t *aMonth) override { return _to GetMonth(aMonth); } \
  NS_IMETHOD SetMonth(int16_t aMonth) override { return _to SetMonth(aMonth); } \
  NS_IMETHOD GetDay(int16_t *aDay) override { return _to GetDay(aDay); } \
  NS_IMETHOD SetDay(int16_t aDay) override { return _to SetDay(aDay); } \
  NS_IMETHOD GetHour(int16_t *aHour) override { return _to GetHour(aHour); } \
  NS_IMETHOD SetHour(int16_t aHour) override { return _to SetHour(aHour); } \
  NS_IMETHOD GetMinute(int16_t *aMinute) override { return _to GetMinute(aMinute); } \
  NS_IMETHOD SetMinute(int16_t aMinute) override { return _to SetMinute(aMinute); } \
  NS_IMETHOD GetSecond(int16_t *aSecond) override { return _to GetSecond(aSecond); } \
  NS_IMETHOD SetSecond(int16_t aSecond) override { return _to SetSecond(aSecond); } \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override { return _to GetTimezone(aTimezone); } \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override { return _to SetTimezone(aTimezone); } \
  NS_IMETHOD ResetTo(int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, calITimezone *timezone) override { return _to ResetTo(year, month, day, hour, minute, second, timezone); } \
  NS_IMETHOD GetTimezoneOffset(int32_t *aTimezoneOffset) override { return _to GetTimezoneOffset(aTimezoneOffset); } \
  NS_IMETHOD GetIsDate(bool *aIsDate) override { return _to GetIsDate(aIsDate); } \
  NS_IMETHOD SetIsDate(bool aIsDate) override { return _to SetIsDate(aIsDate); } \
  NS_IMETHOD GetWeekday(int16_t *aWeekday) override { return _to GetWeekday(aWeekday); } \
  NS_IMETHOD GetYearday(int16_t *aYearday) override { return _to GetYearday(aYearday); } \
  NS_IMETHOD Reset(void) override { return _to Reset(); } \
  NS_IMETHOD ToString(nsACString& _retval) override { return _to ToString(_retval); } \
  NS_IMETHOD GetInTimezone(calITimezone *aTimezone, calIDateTime **_retval) override { return _to GetInTimezone(aTimezone, _retval); } \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override { return _to AddDuration(aDuration); } \
  NS_IMETHOD SubtractDate(calIDateTime *aOtherDate, calIDuration **_retval) override { return _to SubtractDate(aOtherDate, _retval); } \
  NS_IMETHOD Compare(calIDateTime *aOther, int32_t *_retval) override { return _to Compare(aOther, _retval); } \
  NS_IMETHOD GetStartOfWeek(calIDateTime **aStartOfWeek) override { return _to GetStartOfWeek(aStartOfWeek); } \
  NS_IMETHOD GetEndOfWeek(calIDateTime **aEndOfWeek) override { return _to GetEndOfWeek(aEndOfWeek); } \
  NS_IMETHOD GetStartOfMonth(calIDateTime **aStartOfMonth) override { return _to GetStartOfMonth(aStartOfMonth); } \
  NS_IMETHOD GetEndOfMonth(calIDateTime **aEndOfMonth) override { return _to GetEndOfMonth(aEndOfMonth); } \
  NS_IMETHOD GetStartOfYear(calIDateTime **aStartOfYear) override { return _to GetStartOfYear(aStartOfYear); } \
  NS_IMETHOD GetEndOfYear(calIDateTime **aEndOfYear) override { return _to GetEndOfYear(aEndOfYear); } \
  NS_IMETHOD GetIcalString(nsACString& aIcalString) override { return _to GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString& aIcalString) override { return _to SetIcalString(aIcalString); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIDATETIME(_to) \
  NS_IMETHOD GetIsMutable(bool *aIsMutable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMutable(aIsMutable); } \
  NS_IMETHOD MakeImmutable(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeImmutable(); } \
  NS_IMETHOD Clone(calIDateTime **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  NS_IMETHOD GetIsValid(bool *aIsValid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsValid(aIsValid); } \
  NS_IMETHOD GetNativeTime(PRTime *aNativeTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeTime(aNativeTime); } \
  NS_IMETHOD SetNativeTime(PRTime aNativeTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNativeTime(aNativeTime); } \
  NS_IMETHOD GetYear(int16_t *aYear) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetYear(aYear); } \
  NS_IMETHOD SetYear(int16_t aYear) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetYear(aYear); } \
  NS_IMETHOD GetMonth(int16_t *aMonth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMonth(aMonth); } \
  NS_IMETHOD SetMonth(int16_t aMonth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMonth(aMonth); } \
  NS_IMETHOD GetDay(int16_t *aDay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDay(aDay); } \
  NS_IMETHOD SetDay(int16_t aDay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDay(aDay); } \
  NS_IMETHOD GetHour(int16_t *aHour) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHour(aHour); } \
  NS_IMETHOD SetHour(int16_t aHour) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHour(aHour); } \
  NS_IMETHOD GetMinute(int16_t *aMinute) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinute(aMinute); } \
  NS_IMETHOD SetMinute(int16_t aMinute) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinute(aMinute); } \
  NS_IMETHOD GetSecond(int16_t *aSecond) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecond(aSecond); } \
  NS_IMETHOD SetSecond(int16_t aSecond) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecond(aSecond); } \
  NS_IMETHOD GetTimezone(calITimezone **aTimezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimezone(aTimezone); } \
  NS_IMETHOD SetTimezone(calITimezone *aTimezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimezone(aTimezone); } \
  NS_IMETHOD ResetTo(int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, calITimezone *timezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetTo(year, month, day, hour, minute, second, timezone); } \
  NS_IMETHOD GetTimezoneOffset(int32_t *aTimezoneOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimezoneOffset(aTimezoneOffset); } \
  NS_IMETHOD GetIsDate(bool *aIsDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDate(aIsDate); } \
  NS_IMETHOD SetIsDate(bool aIsDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDate(aIsDate); } \
  NS_IMETHOD GetWeekday(int16_t *aWeekday) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWeekday(aWeekday); } \
  NS_IMETHOD GetYearday(int16_t *aYearday) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetYearday(aYearday); } \
  NS_IMETHOD Reset(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
  NS_IMETHOD ToString(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
  NS_IMETHOD GetInTimezone(calITimezone *aTimezone, calIDateTime **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInTimezone(aTimezone, _retval); } \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDuration(aDuration); } \
  NS_IMETHOD SubtractDate(calIDateTime *aOtherDate, calIDuration **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractDate(aOtherDate, _retval); } \
  NS_IMETHOD Compare(calIDateTime *aOther, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Compare(aOther, _retval); } \
  NS_IMETHOD GetStartOfWeek(calIDateTime **aStartOfWeek) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOfWeek(aStartOfWeek); } \
  NS_IMETHOD GetEndOfWeek(calIDateTime **aEndOfWeek) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndOfWeek(aEndOfWeek); } \
  NS_IMETHOD GetStartOfMonth(calIDateTime **aStartOfMonth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOfMonth(aStartOfMonth); } \
  NS_IMETHOD GetEndOfMonth(calIDateTime **aEndOfMonth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndOfMonth(aEndOfMonth); } \
  NS_IMETHOD GetStartOfYear(calIDateTime **aStartOfYear) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartOfYear(aStartOfYear); } \
  NS_IMETHOD GetEndOfYear(calIDateTime **aEndOfYear) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndOfYear(aEndOfYear); } \
  NS_IMETHOD GetIcalString(nsACString& aIcalString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString& aIcalString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalString(aIcalString); } 


/* starting interface:    calIDateTimeLibical */
#define CALIDATETIMELIBICAL_IID_STR "04139dff-a6f0-446d-9aec-2062df887ef2"

#define CALIDATETIMELIBICAL_IID \
  {0x04139dff, 0xa6f0, 0x446d, \
    { 0x9a, 0xec, 0x20, 0x62, 0xdf, 0x88, 0x7e, 0xf2 }}

class NS_NO_VTABLE calIDateTimeLibical : public calIDateTime {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIDATETIMELIBICAL_IID)

  /* [noscript,notxpcom] void toIcalTime (in icaltimetypeptr itt); */
  NS_IMETHOD_(void) ToIcalTime(struct icaltimetype * itt) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIDateTimeLibical, CALIDATETIMELIBICAL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIDATETIMELIBICAL \
  NS_IMETHOD_(void) ToIcalTime(struct icaltimetype * itt) 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_CALIDATETIMELIBICAL \
  nsresult_(void) ToIcalTime(struct icaltimetype * itt); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIDATETIMELIBICAL(_to) \
  NS_IMETHOD_(void) ToIcalTime(struct icaltimetype * itt) override { return _to ToIcalTime(itt); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIDATETIMELIBICAL(_to) \
  NS_IMETHOD_(void) ToIcalTime(struct icaltimetype * itt) override; 


#endif /* __gen_calIDateTime_h__ */