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

#ifndef __gen_calIRecurrenceRule_h__
#define __gen_calIRecurrenceRule_h__


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

#ifndef __gen_calIRecurrenceItem_h__
#include "calIRecurrenceItem.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class calIItemBase; /* forward declaration */

class calIDateTime; /* forward declaration */


/* starting interface:    calIRecurrenceRule */
#define CALIRECURRENCERULE_IID_STR "e965a91a-49fa-41b5-b668-1a824a73bdbf"

#define CALIRECURRENCERULE_IID \
  {0xe965a91a, 0x49fa, 0x41b5, \
    { 0xb6, 0x68, 0x1a, 0x82, 0x4a, 0x73, 0xbd, 0xbf }}

class NS_NO_VTABLE calIRecurrenceRule : public calIRecurrenceItem {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIRECURRENCERULE_IID)

  /* attribute AUTF8String type; */
  NS_IMETHOD GetType(nsACString & aType) = 0;
  NS_IMETHOD SetType(const nsACString & aType) = 0;

  /* attribute long interval; */
  NS_IMETHOD GetInterval(int32_t *aInterval) = 0;
  NS_IMETHOD SetInterval(int32_t aInterval) = 0;

  /* attribute long count; */
  NS_IMETHOD GetCount(int32_t *aCount) = 0;
  NS_IMETHOD SetCount(int32_t aCount) = 0;

  /* attribute calIDateTime untilDate; */
  NS_IMETHOD GetUntilDate(calIDateTime * *aUntilDate) = 0;
  NS_IMETHOD SetUntilDate(calIDateTime *aUntilDate) = 0;

  /* readonly attribute boolean isByCount; */
  NS_IMETHOD GetIsByCount(bool *aIsByCount) = 0;

  /* attribute short weekStart; */
  NS_IMETHOD GetWeekStart(int16_t *aWeekStart) = 0;
  NS_IMETHOD SetWeekStart(int16_t aWeekStart) = 0;

  /* void getComponent (in AUTF8String aComponentType, out unsigned long aCount, [array, size_is (aCount), retval] out short aValues); */
  NS_IMETHOD GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues) = 0;

  /* void setComponent (in AUTF8String aComponentType, in unsigned long aCount, [array, size_is (aCount)] in short aValues); */
  NS_IMETHOD SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIRecurrenceRule, CALIRECURRENCERULE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIRECURRENCERULE \
  NS_IMETHOD GetType(nsACString & aType) override; \
  NS_IMETHOD SetType(const nsACString & aType) override; \
  NS_IMETHOD GetInterval(int32_t *aInterval) override; \
  NS_IMETHOD SetInterval(int32_t aInterval) override; \
  NS_IMETHOD GetCount(int32_t *aCount) override; \
  NS_IMETHOD SetCount(int32_t aCount) override; \
  NS_IMETHOD GetUntilDate(calIDateTime * *aUntilDate) override; \
  NS_IMETHOD SetUntilDate(calIDateTime *aUntilDate) override; \
  NS_IMETHOD GetIsByCount(bool *aIsByCount) override; \
  NS_IMETHOD GetWeekStart(int16_t *aWeekStart) override; \
  NS_IMETHOD SetWeekStart(int16_t aWeekStart) override; \
  NS_IMETHOD GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues) override; \
  NS_IMETHOD SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues) 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_CALIRECURRENCERULE \
  NS_METHOD GetType(nsACString & aType); \
  NS_METHOD SetType(const nsACString & aType); \
  NS_METHOD GetInterval(int32_t *aInterval); \
  NS_METHOD SetInterval(int32_t aInterval); \
  NS_METHOD GetCount(int32_t *aCount); \
  NS_METHOD SetCount(int32_t aCount); \
  NS_METHOD GetUntilDate(calIDateTime * *aUntilDate); \
  NS_METHOD SetUntilDate(calIDateTime *aUntilDate); \
  NS_METHOD GetIsByCount(bool *aIsByCount); \
  NS_METHOD GetWeekStart(int16_t *aWeekStart); \
  NS_METHOD SetWeekStart(int16_t aWeekStart); \
  NS_METHOD GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues); \
  NS_METHOD SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIRECURRENCERULE(_to) \
  NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
  NS_IMETHOD SetType(const nsACString & aType) override { return _to SetType(aType); } \
  NS_IMETHOD GetInterval(int32_t *aInterval) override { return _to GetInterval(aInterval); } \
  NS_IMETHOD SetInterval(int32_t aInterval) override { return _to SetInterval(aInterval); } \
  NS_IMETHOD GetCount(int32_t *aCount) override { return _to GetCount(aCount); } \
  NS_IMETHOD SetCount(int32_t aCount) override { return _to SetCount(aCount); } \
  NS_IMETHOD GetUntilDate(calIDateTime * *aUntilDate) override { return _to GetUntilDate(aUntilDate); } \
  NS_IMETHOD SetUntilDate(calIDateTime *aUntilDate) override { return _to SetUntilDate(aUntilDate); } \
  NS_IMETHOD GetIsByCount(bool *aIsByCount) override { return _to GetIsByCount(aIsByCount); } \
  NS_IMETHOD GetWeekStart(int16_t *aWeekStart) override { return _to GetWeekStart(aWeekStart); } \
  NS_IMETHOD SetWeekStart(int16_t aWeekStart) override { return _to SetWeekStart(aWeekStart); } \
  NS_IMETHOD GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues) override { return _to GetComponent(aComponentType, aCount, aValues); } \
  NS_IMETHOD SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues) override { return _to SetComponent(aComponentType, aCount, aValues); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIRECURRENCERULE(_to) \
  NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD SetType(const nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  NS_IMETHOD GetInterval(int32_t *aInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterval(aInterval); } \
  NS_IMETHOD SetInterval(int32_t aInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInterval(aInterval); } \
  NS_IMETHOD GetCount(int32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
  NS_IMETHOD SetCount(int32_t aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCount(aCount); } \
  NS_IMETHOD GetUntilDate(calIDateTime * *aUntilDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUntilDate(aUntilDate); } \
  NS_IMETHOD SetUntilDate(calIDateTime *aUntilDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUntilDate(aUntilDate); } \
  NS_IMETHOD GetIsByCount(bool *aIsByCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsByCount(aIsByCount); } \
  NS_IMETHOD GetWeekStart(int16_t *aWeekStart) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWeekStart(aWeekStart); } \
  NS_IMETHOD SetWeekStart(int16_t aWeekStart) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWeekStart(aWeekStart); } \
  NS_IMETHOD GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComponent(aComponentType, aCount, aValues); } \
  NS_IMETHOD SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComponent(aComponentType, aCount, aValues); } 

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

/* Header file */
class _MYCLASS_ : public calIRecurrenceRule
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIRECURRENCERULE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* attribute AUTF8String type; */
NS_IMETHODIMP _MYCLASS_::GetType(nsACString & aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetType(const nsACString & aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute long interval; */
NS_IMETHODIMP _MYCLASS_::GetInterval(int32_t *aInterval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetInterval(int32_t aInterval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute long count; */
NS_IMETHODIMP _MYCLASS_::GetCount(int32_t *aCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetCount(int32_t aCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute calIDateTime untilDate; */
NS_IMETHODIMP _MYCLASS_::GetUntilDate(calIDateTime * *aUntilDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetUntilDate(calIDateTime *aUntilDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isByCount; */
NS_IMETHODIMP _MYCLASS_::GetIsByCount(bool *aIsByCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute short weekStart; */
NS_IMETHODIMP _MYCLASS_::GetWeekStart(int16_t *aWeekStart)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetWeekStart(int16_t aWeekStart)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getComponent (in AUTF8String aComponentType, out unsigned long aCount, [array, size_is (aCount), retval] out short aValues); */
NS_IMETHODIMP _MYCLASS_::GetComponent(const nsACString & aComponentType, uint32_t *aCount, int16_t **aValues)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setComponent (in AUTF8String aComponentType, in unsigned long aCount, [array, size_is (aCount)] in short aValues); */
NS_IMETHODIMP _MYCLASS_::SetComponent(const nsACString & aComponentType, uint32_t aCount, int16_t *aValues)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIRecurrenceRule_h__ */
