/*
 * 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 };

  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 };

};

/* 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__ */
