/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM calIErrors.idl
 */

#ifndef __gen_calIErrors_h__
#define __gen_calIErrors_h__


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

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    calIErrors */
#define CALIERRORS_IID_STR "404c7d78-bec7-474c-aa2a-82c0d0563bb6"

#define CALIERRORS_IID \
  {0x404c7d78, 0xbec7, 0x474c, \
    { 0xaa, 0x2a, 0x82, 0xc0, 0xd0, 0x56, 0x3b, 0xb6 }}

class NS_NO_VTABLE calIErrors : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(CALIERRORS_IID)

  /**
   * The first two constants are copied from nsError.h, but named slightly
   * differently, because if they're named the same, the names collide and
   * the compiler can't deal.
   */
  enum { CAL_ERROR_MODULE_CALENDAR = 5U };

  enum { CAL_ERROR_MODULE_BASE_OFFSET = 69U };

  /**
   * The beginning of this set of error codes, also copied from the macros
   * in nsError.h.
   */
  enum { ERROR_BASE = 2152333312U };

  /**
   * An invalid or nonexistent timezone was encountered.
   */
  enum { INVALID_TIMEZONE = 2152333313U };

  /**
   * Attempted to modify a readOnly calendar.
   */
  enum { CAL_IS_READONLY = 2152333314U };

  /**
   * Error while decoding an (ics) file from utf8
   */
  enum { CAL_UTF8_DECODING_FAILED = 2152333315U };

  /**
   * Tried to add an item to a calendar in which an item with the
   * same ID already existed
   */
  enum { DUPLICATE_ID = 2152333316U };

  /**
   * Operation has been cancelled.
   */
  enum { OPERATION_CANCELLED = 2152333317U };

  /**
   * Creation of calendar object failed
   */
  enum { PROVIDER_CREATION_FAILED = 2152333318U };

  /**
   * Profile data has newer schema than we know in this calendar version.
   */
  enum { STORAGE_UNKNOWN_SCHEMA_ERROR = 2152333319U };

  /**
   * Profile data may refer to newer timezones than we know.
   */
  enum { STORAGE_UNKNOWN_TIMEZONES_ERROR = 2152333320U };

  /**
   * The calendar could not be accessed for reading.
   */
  enum { READ_FAILED = 2152333321U };

  /**
   * The calendar could not be accessed for modification.
   */
  enum { MODIFICATION_FAILED = 2152333322U };

  enum { ICS_ERROR_BASE = 2152333568U };

  /**
   * ICS errors, copied from icalerror.h.
   * The numbers (minus ICS_ERROR_BASE) should match with the enum
   * values from icalerror.h
   */
  enum { ICS_NO_ERROR = 2152333568U };

  enum { ICS_BADARG = 2152333569U };

  enum { ICS_NEWFAILED = 2152333570U };

  enum { ICS_ALLOCATION = 2152333571U };

  enum { ICS_MALFORMEDDATA = 2152333572U };

  enum { ICS_PARSE = 2152333573U };

  enum { ICS_INTERNAL = 2152333574U };

  enum { ICS_FILE = 2152333575U };

  enum { ICS_USAGE = 2152333576U };

  enum { ICS_UNIMPLEMENTED = 2152333577U };

  enum { ICS_UNKNOWN = 2152333578U };

  /**
   * WCAP specific errors, defined in
   * calendar/providers/wcap/public/calIWcapErrors.idl
   * Range claimed is [ERROR_BASE + 0x200, ERROR_BASE + 0x300)
   */
  enum { WCAP_ERROR_BASE = 2152333824U };

  /**
   * (Cal)DAV specific errors
   * Range is [ERROR_BASE + 0x301, ERROR_BASE + 0x399]
   */
  enum { DAV_ERROR_BASE = 2152334081U };

  enum { DAV_NOT_DAV = 2152334081U };

  enum { DAV_DAV_NOT_CALDAV = 2152334082U };

  enum { DAV_NO_PROPS = 2152334083U };

  enum { DAV_PUT_ERROR = 2152334084U };

  enum { DAV_REMOVE_ERROR = 2152334085U };

  enum { DAV_REPORT_ERROR = 2152334086U };

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIERRORS \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIERRORS(_to) \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIERRORS(_to) \

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public calIErrors
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIERRORS

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, calIErrors)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* End of implementation class template. */
#endif


#endif /* __gen_calIErrors_h__ */
