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

#ifndef __gen_calIPeriod_h__
#define __gen_calIPeriod_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 calIDateTime; /* forward declaration */

class calIDuration; /* forward declaration */


/* starting interface:    calIPeriod */
#define CALIPERIOD_IID_STR "03cde9c7-c864-4109-8bea-ebbff01cbab9"

#define CALIPERIOD_IID \
  {0x03cde9c7, 0xc864, 0x4109, \
    { 0x8b, 0xea, 0xeb, 0xbf, 0xf0, 0x1c, 0xba, 0xb9 }}

class NS_NO_VTABLE calIPeriod : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(CALIPERIOD_IID)

  /**
   * isMutable is true if this instance is modifiable.
   * If isMutable is false, any attempts to modify
   * the object will throw NS_ERROR_OBJECT_IS_IMMUTABLE.
   */
  /* readonly attribute boolean isMutable; */
  NS_IMETHOD GetIsMutable(PRBool *aIsMutable) = 0;

  /**
   * Make this calIPeriod instance immutable.
   */
  /* void makeImmutable (); */
  NS_IMETHOD MakeImmutable(void) = 0;

  /**
   * Clone this calIPeriod instance into a new
   * mutable object.
   */
  /* calIPeriod clone (); */
  NS_IMETHOD Clone(calIPeriod **_retval) = 0;

  /**
   * The start datetime of this period
   */
  /* attribute calIDateTime start; */
  NS_IMETHOD GetStart(calIDateTime * *aStart) = 0;
  NS_IMETHOD SetStart(calIDateTime * aStart) = 0;

  /**
   * The end datetime of this period
   */
  /* attribute calIDateTime end; */
  NS_IMETHOD GetEnd(calIDateTime * *aEnd) = 0;
  NS_IMETHOD SetEnd(calIDateTime * aEnd) = 0;

  /**
   * The duration, equal to end-start
   */
  /* readonly attribute calIDuration duration; */
  NS_IMETHOD GetDuration(calIDuration * *aDuration) = 0;

  /**
   * Return a string representation of this instance.
   */
  /* AUTF8String toString (); */
  NS_IMETHOD ToString(nsACString & _retval) = 0;

  /* [noscript, notxpcom] void toIcalPeriod (in icalperiodtypeptr idt); */
  NS_IMETHOD_(void) ToIcalPeriod(struct icalperiodtype * idt) = 0;

  /**
   * This object as an iCalendar DURATION string
   */
  /* attribute ACString icalString; */
  NS_IMETHOD GetIcalString(nsACString & aIcalString) = 0;
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIPERIOD \
  NS_IMETHOD GetIsMutable(PRBool *aIsMutable); \
  NS_IMETHOD MakeImmutable(void); \
  NS_IMETHOD Clone(calIPeriod **_retval); \
  NS_IMETHOD GetStart(calIDateTime * *aStart); \
  NS_IMETHOD SetStart(calIDateTime * aStart); \
  NS_IMETHOD GetEnd(calIDateTime * *aEnd); \
  NS_IMETHOD SetEnd(calIDateTime * aEnd); \
  NS_IMETHOD GetDuration(calIDuration * *aDuration); \
  NS_IMETHOD ToString(nsACString & _retval); \
  NS_IMETHOD_(void) ToIcalPeriod(struct icalperiodtype * idt); \
  NS_IMETHOD GetIcalString(nsACString & aIcalString); \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIPERIOD(_to) \
  NS_IMETHOD GetIsMutable(PRBool *aIsMutable) { return _to GetIsMutable(aIsMutable); } \
  NS_IMETHOD MakeImmutable(void) { return _to MakeImmutable(); } \
  NS_IMETHOD Clone(calIPeriod **_retval) { return _to Clone(_retval); } \
  NS_IMETHOD GetStart(calIDateTime * *aStart) { return _to GetStart(aStart); } \
  NS_IMETHOD SetStart(calIDateTime * aStart) { return _to SetStart(aStart); } \
  NS_IMETHOD GetEnd(calIDateTime * *aEnd) { return _to GetEnd(aEnd); } \
  NS_IMETHOD SetEnd(calIDateTime * aEnd) { return _to SetEnd(aEnd); } \
  NS_IMETHOD GetDuration(calIDuration * *aDuration) { return _to GetDuration(aDuration); } \
  NS_IMETHOD ToString(nsACString & _retval) { return _to ToString(_retval); } \
  NS_IMETHOD_(void) ToIcalPeriod(struct icalperiodtype * idt) { return _to ToIcalPeriod(idt); } \
  NS_IMETHOD GetIcalString(nsACString & aIcalString) { return _to GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) { 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_CALIPERIOD(_to) \
  NS_IMETHOD GetIsMutable(PRBool *aIsMutable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMutable(aIsMutable); } \
  NS_IMETHOD MakeImmutable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeImmutable(); } \
  NS_IMETHOD Clone(calIPeriod **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  NS_IMETHOD GetStart(calIDateTime * *aStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStart(aStart); } \
  NS_IMETHOD SetStart(calIDateTime * aStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStart(aStart); } \
  NS_IMETHOD GetEnd(calIDateTime * *aEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnd(aEnd); } \
  NS_IMETHOD SetEnd(calIDateTime * aEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnd(aEnd); } \
  NS_IMETHOD GetDuration(calIDuration * *aDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDuration(aDuration); } \
  NS_IMETHOD ToString(nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
  NS_IMETHOD_(void) ToIcalPeriod(struct icalperiodtype * idt) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToIcalPeriod(idt); } \
  NS_IMETHOD GetIcalString(nsACString & aIcalString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalString(aIcalString); } 

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

/* Header file */
class _MYCLASS_ : public calIPeriod
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIPERIOD

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute boolean isMutable; */
NS_IMETHODIMP _MYCLASS_::GetIsMutable(PRBool *aIsMutable)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void makeImmutable (); */
NS_IMETHODIMP _MYCLASS_::MakeImmutable()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* calIPeriod clone (); */
NS_IMETHODIMP _MYCLASS_::Clone(calIPeriod **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute calIDateTime start; */
NS_IMETHODIMP _MYCLASS_::GetStart(calIDateTime * *aStart)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetStart(calIDateTime * aStart)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute calIDateTime end; */
NS_IMETHODIMP _MYCLASS_::GetEnd(calIDateTime * *aEnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetEnd(calIDateTime * aEnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute calIDuration duration; */
NS_IMETHODIMP _MYCLASS_::GetDuration(calIDuration * *aDuration)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String toString (); */
NS_IMETHODIMP _MYCLASS_::ToString(nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript, notxpcom] void toIcalPeriod (in icalperiodtypeptr idt); */
NS_IMETHODIMP_(void) _MYCLASS_::ToIcalPeriod(struct icalperiodtype * idt)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString icalString; */
NS_IMETHODIMP _MYCLASS_::GetIcalString(nsACString & aIcalString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetIcalString(const nsACString & aIcalString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIPeriod_h__ */
