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

#ifndef __gen_calIRelation_h__
#define __gen_calIRelation_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 calIItemBase; /* forward declaration */


/* starting interface:    calIRelation */
#define CALIRELATION_IID_STR "a84f2a74-c7fd-42dc-ac4b-00aa77624039"

#define CALIRELATION_IID \
  {0xa84f2a74, 0xc7fd, 0x42dc, \
    { 0xac, 0x4b, 0x00, 0xaa, 0x77, 0x62, 0x40, 0x39 }}

class NS_NO_VTABLE calIRelation : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(CALIRELATION_IID)

  /**
     * The original item of the relation
     */
  /* attribute calIItemBase item; */
  NS_IMETHOD GetItem(calIItemBase * *aItem) = 0;
  NS_IMETHOD SetItem(calIItemBase * aItem) = 0;

  /**
     * The type of the relation between the items:
     * PARENT
     * CHILD
     * SIBLING 
     */
  /* attribute AUTF8String relType; */
  NS_IMETHOD GetRelType(nsACString & aRelType) = 0;
  NS_IMETHOD SetRelType(const nsACString & aRelType) = 0;

  /**
     * The id of the related item
     **/
  /* attribute AUTF8String relId; */
  NS_IMETHOD GetRelId(nsACString & aRelId) = 0;
  NS_IMETHOD SetRelId(const nsACString & aRelId) = 0;

  /**
     * The calIIcalProperty corresponding to this object.  Can be used for
     * serializing/unserializing from ics files.
     */
  /* attribute calIIcalProperty icalProperty; */
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) = 0;
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty) = 0;

  /**
     * For accessing additional parameters, such as x-params.
     */
  /* AUTF8String getParameter (in AString name); */
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) = 0;

  /* void setParameter (in AString name, in AUTF8String value); */
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) = 0;

  /* void deleteParameter (in AString name); */
  NS_IMETHOD DeleteParameter(const nsAString & name) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIRELATION \
  NS_IMETHOD GetItem(calIItemBase * *aItem); \
  NS_IMETHOD SetItem(calIItemBase * aItem); \
  NS_IMETHOD GetRelType(nsACString & aRelType); \
  NS_IMETHOD SetRelType(const nsACString & aRelType); \
  NS_IMETHOD GetRelId(nsACString & aRelId); \
  NS_IMETHOD SetRelId(const nsACString & aRelId); \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty); \
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty); \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval); \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value); \
  NS_IMETHOD DeleteParameter(const nsAString & name); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIRELATION(_to) \
  NS_IMETHOD GetItem(calIItemBase * *aItem) { return _to GetItem(aItem); } \
  NS_IMETHOD SetItem(calIItemBase * aItem) { return _to SetItem(aItem); } \
  NS_IMETHOD GetRelType(nsACString & aRelType) { return _to GetRelType(aRelType); } \
  NS_IMETHOD SetRelType(const nsACString & aRelType) { return _to SetRelType(aRelType); } \
  NS_IMETHOD GetRelId(nsACString & aRelId) { return _to GetRelId(aRelId); } \
  NS_IMETHOD SetRelId(const nsACString & aRelId) { return _to SetRelId(aRelId); } \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) { return _to GetIcalProperty(aIcalProperty); } \
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty) { return _to SetIcalProperty(aIcalProperty); } \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) { return _to GetParameter(name, _retval); } \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) { return _to SetParameter(name, value); } \
  NS_IMETHOD DeleteParameter(const nsAString & name) { return _to DeleteParameter(name); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIRELATION(_to) \
  NS_IMETHOD GetItem(calIItemBase * *aItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(aItem); } \
  NS_IMETHOD SetItem(calIItemBase * aItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItem(aItem); } \
  NS_IMETHOD GetRelType(nsACString & aRelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelType(aRelType); } \
  NS_IMETHOD SetRelType(const nsACString & aRelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelType(aRelType); } \
  NS_IMETHOD GetRelId(nsACString & aRelId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelId(aRelId); } \
  NS_IMETHOD SetRelId(const nsACString & aRelId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelId(aRelId); } \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalProperty(aIcalProperty); } \
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalProperty(aIcalProperty); } \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(name, _retval); } \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParameter(name, value); } \
  NS_IMETHOD DeleteParameter(const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteParameter(name); } 

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

/* Header file */
class _MYCLASS_ : public calIRelation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIRELATION

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* attribute calIItemBase item; */
NS_IMETHODIMP _MYCLASS_::GetItem(calIItemBase * *aItem)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetItem(calIItemBase * aItem)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String relType; */
NS_IMETHODIMP _MYCLASS_::GetRelType(nsACString & aRelType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetRelType(const nsACString & aRelType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String relId; */
NS_IMETHODIMP _MYCLASS_::GetRelId(nsACString & aRelId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetRelId(const nsACString & aRelId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute calIIcalProperty icalProperty; */
NS_IMETHODIMP _MYCLASS_::GetIcalProperty(calIIcalProperty * *aIcalProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetIcalProperty(calIIcalProperty * aIcalProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String getParameter (in AString name); */
NS_IMETHODIMP _MYCLASS_::GetParameter(const nsAString & name, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setParameter (in AString name, in AUTF8String value); */
NS_IMETHODIMP _MYCLASS_::SetParameter(const nsAString & name, const nsACString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteParameter (in AString name); */
NS_IMETHODIMP _MYCLASS_::DeleteParameter(const nsAString & name)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIRelation_h__ */
