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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/calendar/base/public/calIDuration.idl
 */

#ifndef __gen_calIDuration_h__
#define __gen_calIDuration_h__


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

#include "js/Value.h"

#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

/* starting interface:    calIDuration */
#define CALIDURATION_IID_STR "78537f21-fd5c-4e02-ab26-8ff6a3d946cb"

#define CALIDURATION_IID \
  {0x78537f21, 0xfd5c, 0x4e02, \
    { 0xab, 0x26, 0x8f, 0xf6, 0xa3, 0xd9, 0x46, 0xcb }}

class NS_NO_VTABLE calIDuration : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIDURATION_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;

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

  /* attribute boolean isNegative; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsNegative(bool *aIsNegative) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsNegative(bool aIsNegative) = 0;

  /* attribute short weeks; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWeeks(int16_t *aWeeks) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetWeeks(int16_t aWeeks) = 0;

  /* attribute short days; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDays(int16_t *aDays) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDays(int16_t aDays) = 0;

  /* attribute short hours; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHours(int16_t *aHours) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHours(int16_t aHours) = 0;

  /* attribute short minutes; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMinutes(int16_t *aMinutes) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMinutes(int16_t aMinutes) = 0;

  /* attribute short seconds; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSeconds(int16_t *aSeconds) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSeconds(int16_t aSeconds) = 0;

  /* attribute long inSeconds; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInSeconds(int32_t *aInSeconds) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInSeconds(int32_t aInSeconds) = 0;

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

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

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

  /* void normalize (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Normalize(void) = 0;

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

  /* attribute jsval icalDuration; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIcalDuration(JS::MutableHandleValue aIcalDuration) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIcalDuration(JS::HandleValue aIcalDuration) = 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(calIDuration, CALIDURATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIDURATION \
  NS_IMETHOD GetIsMutable(bool *aIsMutable) override; \
  NS_IMETHOD MakeImmutable(void) override; \
  NS_IMETHOD Clone(calIDuration **_retval) override; \
  NS_IMETHOD GetIsNegative(bool *aIsNegative) override; \
  NS_IMETHOD SetIsNegative(bool aIsNegative) override; \
  NS_IMETHOD GetWeeks(int16_t *aWeeks) override; \
  NS_IMETHOD SetWeeks(int16_t aWeeks) override; \
  NS_IMETHOD GetDays(int16_t *aDays) override; \
  NS_IMETHOD SetDays(int16_t aDays) override; \
  NS_IMETHOD GetHours(int16_t *aHours) override; \
  NS_IMETHOD SetHours(int16_t aHours) override; \
  NS_IMETHOD GetMinutes(int16_t *aMinutes) override; \
  NS_IMETHOD SetMinutes(int16_t aMinutes) override; \
  NS_IMETHOD GetSeconds(int16_t *aSeconds) override; \
  NS_IMETHOD SetSeconds(int16_t aSeconds) override; \
  NS_IMETHOD GetInSeconds(int32_t *aInSeconds) override; \
  NS_IMETHOD SetInSeconds(int32_t aInSeconds) override; \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override; \
  NS_IMETHOD Compare(calIDuration *aOther, int32_t *_retval) override; \
  NS_IMETHOD Reset(void) override; \
  NS_IMETHOD Normalize(void) override; \
  NS_IMETHOD ToString(nsACString& _retval) override; \
  NS_IMETHOD GetIcalDuration(JS::MutableHandleValue aIcalDuration) override; \
  NS_IMETHOD SetIcalDuration(JS::HandleValue aIcalDuration) 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_CALIDURATION \
  nsresult GetIsMutable(bool *aIsMutable); \
  nsresult MakeImmutable(void); \
  nsresult Clone(calIDuration **_retval); \
  nsresult GetIsNegative(bool *aIsNegative); \
  nsresult SetIsNegative(bool aIsNegative); \
  nsresult GetWeeks(int16_t *aWeeks); \
  nsresult SetWeeks(int16_t aWeeks); \
  nsresult GetDays(int16_t *aDays); \
  nsresult SetDays(int16_t aDays); \
  nsresult GetHours(int16_t *aHours); \
  nsresult SetHours(int16_t aHours); \
  nsresult GetMinutes(int16_t *aMinutes); \
  nsresult SetMinutes(int16_t aMinutes); \
  nsresult GetSeconds(int16_t *aSeconds); \
  nsresult SetSeconds(int16_t aSeconds); \
  nsresult GetInSeconds(int32_t *aInSeconds); \
  nsresult SetInSeconds(int32_t aInSeconds); \
  nsresult AddDuration(calIDuration *aDuration); \
  nsresult Compare(calIDuration *aOther, int32_t *_retval); \
  nsresult Reset(void); \
  nsresult Normalize(void); \
  nsresult ToString(nsACString& _retval); \
  nsresult GetIcalDuration(JS::MutableHandleValue aIcalDuration); \
  nsresult SetIcalDuration(JS::HandleValue aIcalDuration); \
  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_CALIDURATION(_to) \
  NS_IMETHOD GetIsMutable(bool *aIsMutable) override { return _to GetIsMutable(aIsMutable); } \
  NS_IMETHOD MakeImmutable(void) override { return _to MakeImmutable(); } \
  NS_IMETHOD Clone(calIDuration **_retval) override { return _to Clone(_retval); } \
  NS_IMETHOD GetIsNegative(bool *aIsNegative) override { return _to GetIsNegative(aIsNegative); } \
  NS_IMETHOD SetIsNegative(bool aIsNegative) override { return _to SetIsNegative(aIsNegative); } \
  NS_IMETHOD GetWeeks(int16_t *aWeeks) override { return _to GetWeeks(aWeeks); } \
  NS_IMETHOD SetWeeks(int16_t aWeeks) override { return _to SetWeeks(aWeeks); } \
  NS_IMETHOD GetDays(int16_t *aDays) override { return _to GetDays(aDays); } \
  NS_IMETHOD SetDays(int16_t aDays) override { return _to SetDays(aDays); } \
  NS_IMETHOD GetHours(int16_t *aHours) override { return _to GetHours(aHours); } \
  NS_IMETHOD SetHours(int16_t aHours) override { return _to SetHours(aHours); } \
  NS_IMETHOD GetMinutes(int16_t *aMinutes) override { return _to GetMinutes(aMinutes); } \
  NS_IMETHOD SetMinutes(int16_t aMinutes) override { return _to SetMinutes(aMinutes); } \
  NS_IMETHOD GetSeconds(int16_t *aSeconds) override { return _to GetSeconds(aSeconds); } \
  NS_IMETHOD SetSeconds(int16_t aSeconds) override { return _to SetSeconds(aSeconds); } \
  NS_IMETHOD GetInSeconds(int32_t *aInSeconds) override { return _to GetInSeconds(aInSeconds); } \
  NS_IMETHOD SetInSeconds(int32_t aInSeconds) override { return _to SetInSeconds(aInSeconds); } \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override { return _to AddDuration(aDuration); } \
  NS_IMETHOD Compare(calIDuration *aOther, int32_t *_retval) override { return _to Compare(aOther, _retval); } \
  NS_IMETHOD Reset(void) override { return _to Reset(); } \
  NS_IMETHOD Normalize(void) override { return _to Normalize(); } \
  NS_IMETHOD ToString(nsACString& _retval) override { return _to ToString(_retval); } \
  NS_IMETHOD GetIcalDuration(JS::MutableHandleValue aIcalDuration) override { return _to GetIcalDuration(aIcalDuration); } \
  NS_IMETHOD SetIcalDuration(JS::HandleValue aIcalDuration) override { return _to SetIcalDuration(aIcalDuration); } \
  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_CALIDURATION(_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(calIDuration **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  NS_IMETHOD GetIsNegative(bool *aIsNegative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsNegative(aIsNegative); } \
  NS_IMETHOD SetIsNegative(bool aIsNegative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsNegative(aIsNegative); } \
  NS_IMETHOD GetWeeks(int16_t *aWeeks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWeeks(aWeeks); } \
  NS_IMETHOD SetWeeks(int16_t aWeeks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWeeks(aWeeks); } \
  NS_IMETHOD GetDays(int16_t *aDays) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDays(aDays); } \
  NS_IMETHOD SetDays(int16_t aDays) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDays(aDays); } \
  NS_IMETHOD GetHours(int16_t *aHours) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHours(aHours); } \
  NS_IMETHOD SetHours(int16_t aHours) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHours(aHours); } \
  NS_IMETHOD GetMinutes(int16_t *aMinutes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinutes(aMinutes); } \
  NS_IMETHOD SetMinutes(int16_t aMinutes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinutes(aMinutes); } \
  NS_IMETHOD GetSeconds(int16_t *aSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSeconds(aSeconds); } \
  NS_IMETHOD SetSeconds(int16_t aSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSeconds(aSeconds); } \
  NS_IMETHOD GetInSeconds(int32_t *aInSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInSeconds(aInSeconds); } \
  NS_IMETHOD SetInSeconds(int32_t aInSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInSeconds(aInSeconds); } \
  NS_IMETHOD AddDuration(calIDuration *aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDuration(aDuration); } \
  NS_IMETHOD Compare(calIDuration *aOther, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Compare(aOther, _retval); } \
  NS_IMETHOD Reset(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
  NS_IMETHOD Normalize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Normalize(); } \
  NS_IMETHOD ToString(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
  NS_IMETHOD GetIcalDuration(JS::MutableHandleValue aIcalDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalDuration(aIcalDuration); } \
  NS_IMETHOD SetIcalDuration(JS::HandleValue aIcalDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalDuration(aIcalDuration); } \
  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:    calIDurationLibical */
#define CALIDURATIONLIBICAL_IID_STR "f5e1c987-e722-4dec-bf91-93d4062b504a"

#define CALIDURATIONLIBICAL_IID \
  {0xf5e1c987, 0xe722, 0x4dec, \
    { 0xbf, 0x91, 0x93, 0xd4, 0x06, 0x2b, 0x50, 0x4a }}

class NS_NO_VTABLE calIDurationLibical : public calIDuration {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIDURATIONLIBICAL_IID)

  /* [noscript,notxpcom] void toIcalDuration (in icaldurationtypeptr idt); */
  NS_IMETHOD_(void) ToIcalDuration(struct icaldurationtype * idt) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIDurationLibical, CALIDURATIONLIBICAL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIDURATIONLIBICAL \
  NS_IMETHOD_(void) ToIcalDuration(struct icaldurationtype * idt) 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_CALIDURATIONLIBICAL \
  nsresult_(void) ToIcalDuration(struct icaldurationtype * idt); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIDURATIONLIBICAL(_to) \
  NS_IMETHOD_(void) ToIcalDuration(struct icaldurationtype * idt) override { return _to ToIcalDuration(idt); } 

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


#endif /* __gen_calIDuration_h__ */