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

#ifndef __gen_calIIcsParser_h__
#define __gen_calIIcsParser_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
class calIIcalProperty; /* forward declaration */

class calIIcalComponent; /* forward declaration */

class calIItemBase; /* forward declaration */

class nsIInputStream; /* forward declaration */

class calITimezoneProvider; /* forward declaration */

class calIIcsParser; /* forward declaration */


/* starting interface:    calIIcsParsingListener */
#define CALIICSPARSINGLISTENER_IID_STR "d22527da-b0e2-41b7-b6f4-ee9c243cd285"

#define CALIICSPARSINGLISTENER_IID \
  {0xd22527da, 0xb0e2, 0x41b7, \
    { 0xb6, 0xf4, 0xee, 0x9c, 0x24, 0x3c, 0xd2, 0x85 }}

class NS_NO_VTABLE calIIcsParsingListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIICSPARSINGLISTENER_IID)

  /* void onParsingComplete (in nsresult rc, in calIIcsParser parser); */
  NS_IMETHOD OnParsingComplete(nsresult rc, calIIcsParser *parser) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIIcsParsingListener, CALIICSPARSINGLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIICSPARSINGLISTENER \
  NS_IMETHOD OnParsingComplete(nsresult rc, calIIcsParser *parser) 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_CALIICSPARSINGLISTENER \
  NS_METHOD OnParsingComplete(nsresult rc, calIIcsParser *parser); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIICSPARSINGLISTENER(_to) \
  NS_IMETHOD OnParsingComplete(nsresult rc, calIIcsParser *parser) override { return _to OnParsingComplete(rc, parser); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIICSPARSINGLISTENER(_to) \
  NS_IMETHOD OnParsingComplete(nsresult rc, calIIcsParser *parser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnParsingComplete(rc, parser); } 

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

/* Header file */
class _MYCLASS_ : public calIIcsParsingListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIICSPARSINGLISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIIcsParsingListener)

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

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

/* void onParsingComplete (in nsresult rc, in calIIcsParser parser); */
NS_IMETHODIMP _MYCLASS_::OnParsingComplete(nsresult rc, calIIcsParser *parser)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    calIIcsParser */
#define CALIICSPARSER_IID_STR "83e9befe-5e9e-49de-8bc2-d882f464f7e7"

#define CALIICSPARSER_IID \
  {0x83e9befe, 0x5e9e, 0x49de, \
    { 0x8b, 0xc2, 0xd8, 0x82, 0xf4, 0x64, 0xf7, 0xe7 }}

class NS_NO_VTABLE calIIcsParser : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIICSPARSER_IID)

  /* void parseString (in AString aICSString, [optional] in calITimezoneProvider aTzProvider, [optional] in calIIcsParsingListener aAsyncParsing); */
  NS_IMETHOD ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) = 0;

  /* void parseFromStream (in nsIInputStream aStream, [optional] in calITimezoneProvider aTzProvider, [optional] in calIIcsParsingListener aAsyncParsing); */
  NS_IMETHOD ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) = 0;

  /* void getItems (out uint32_t aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
  NS_IMETHOD GetItems(uint32_t *aCount, calIItemBase * **aItems) = 0;

  /* void getParentlessItems (out uint32_t aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
  NS_IMETHOD GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems) = 0;

  /* void getProperties (out uint32_t aCount, [array, size_is (aCount), retval] out calIIcalProperty aProperties); */
  NS_IMETHOD GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties) = 0;

  /* void getComponents (out uint32_t aCount, [array, size_is (aCount), retval] out calIIcalComponent aComponents); */
  NS_IMETHOD GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIIcsParser, CALIICSPARSER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIICSPARSER \
  NS_IMETHOD ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override; \
  NS_IMETHOD ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override; \
  NS_IMETHOD GetItems(uint32_t *aCount, calIItemBase * **aItems) override; \
  NS_IMETHOD GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems) override; \
  NS_IMETHOD GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties) override; \
  NS_IMETHOD GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents) 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_CALIICSPARSER \
  NS_METHOD ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing); \
  NS_METHOD ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing); \
  NS_METHOD GetItems(uint32_t *aCount, calIItemBase * **aItems); \
  NS_METHOD GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems); \
  NS_METHOD GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties); \
  NS_METHOD GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIICSPARSER(_to) \
  NS_IMETHOD ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override { return _to ParseString(aICSString, aTzProvider, aAsyncParsing); } \
  NS_IMETHOD ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override { return _to ParseFromStream(aStream, aTzProvider, aAsyncParsing); } \
  NS_IMETHOD GetItems(uint32_t *aCount, calIItemBase * **aItems) override { return _to GetItems(aCount, aItems); } \
  NS_IMETHOD GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems) override { return _to GetParentlessItems(aCount, aItems); } \
  NS_IMETHOD GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties) override { return _to GetProperties(aCount, aProperties); } \
  NS_IMETHOD GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents) override { return _to GetComponents(aCount, aComponents); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIICSPARSER(_to) \
  NS_IMETHOD ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseString(aICSString, aTzProvider, aAsyncParsing); } \
  NS_IMETHOD ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromStream(aStream, aTzProvider, aAsyncParsing); } \
  NS_IMETHOD GetItems(uint32_t *aCount, calIItemBase * **aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItems(aCount, aItems); } \
  NS_IMETHOD GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentlessItems(aCount, aItems); } \
  NS_IMETHOD GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperties(aCount, aProperties); } \
  NS_IMETHOD GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComponents(aCount, aComponents); } 

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

/* Header file */
class _MYCLASS_ : public calIIcsParser
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIICSPARSER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIIcsParser)

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

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

/* void parseString (in AString aICSString, [optional] in calITimezoneProvider aTzProvider, [optional] in calIIcsParsingListener aAsyncParsing); */
NS_IMETHODIMP _MYCLASS_::ParseString(const nsAString & aICSString, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void parseFromStream (in nsIInputStream aStream, [optional] in calITimezoneProvider aTzProvider, [optional] in calIIcsParsingListener aAsyncParsing); */
NS_IMETHODIMP _MYCLASS_::ParseFromStream(nsIInputStream *aStream, calITimezoneProvider *aTzProvider, calIIcsParsingListener *aAsyncParsing)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getItems (out uint32_t aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
NS_IMETHODIMP _MYCLASS_::GetItems(uint32_t *aCount, calIItemBase * **aItems)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getParentlessItems (out uint32_t aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
NS_IMETHODIMP _MYCLASS_::GetParentlessItems(uint32_t *aCount, calIItemBase * **aItems)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getProperties (out uint32_t aCount, [array, size_is (aCount), retval] out calIIcalProperty aProperties); */
NS_IMETHODIMP _MYCLASS_::GetProperties(uint32_t *aCount, calIIcalProperty * **aProperties)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getComponents (out uint32_t aCount, [array, size_is (aCount), retval] out calIIcalComponent aComponents); */
NS_IMETHODIMP _MYCLASS_::GetComponents(uint32_t *aCount, calIIcalComponent * **aComponents)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIIcsParser_h__ */
