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

#ifndef __gen_calIAttachment_h__
#define __gen_calIAttachment_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 nsIURI; /* forward declaration */

class calIIcalProperty; /* forward declaration */

class calIItemBase; /* forward declaration */


/* starting interface:    calIAttachment */
#define CALIATTACHMENT_IID_STR "984b7b12-e1bf-45c1-94c2-1f014d890e67"

#define CALIATTACHMENT_IID \
  {0x984b7b12, 0xe1bf, 0x45c1, \
    { 0x94, 0xc2, 0x1f, 0x01, 0x4d, 0x89, 0x0e, 0x67 }}

class NS_NO_VTABLE calIAttachment : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(CALIATTACHMENT_IID)

  /**
     * An nsIURI object that points to the file (local or remote)
     */
  /* attribute nsIURI uri; */
  NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
  NS_IMETHOD SetUri(nsIURI * aUri) = 0;

  /**
     * The type of file that this attachment refers to
     */
  /* attribute AString formatType; */
  NS_IMETHOD GetFormatType(nsAString & aFormatType) = 0;
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) = 0;

  /**
     * The encoding the (local) file should be encoded with.
     */
  /* attribute AUTF8String encoding; */
  NS_IMETHOD GetEncoding(nsACString & aEncoding) = 0;
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) = 0;

  /**
     * The item this attachment is related to
     */
  /* attribute calIItemBase item; */
  NS_IMETHOD GetItem(calIItemBase * *aItem) = 0;
  NS_IMETHOD SetItem(calIItemBase * aItem) = 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 getParamater (in AString name); */
  NS_IMETHOD GetParamater(const nsAString & name, nsACString & _retval) = 0;

  /* void setParamater (in AString name, in AUTF8String value); */
  NS_IMETHOD SetParamater(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_CALIATTACHMENT \
  NS_IMETHOD GetUri(nsIURI * *aUri); \
  NS_IMETHOD SetUri(nsIURI * aUri); \
  NS_IMETHOD GetFormatType(nsAString & aFormatType); \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType); \
  NS_IMETHOD GetEncoding(nsACString & aEncoding); \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding); \
  NS_IMETHOD GetItem(calIItemBase * *aItem); \
  NS_IMETHOD SetItem(calIItemBase * aItem); \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty); \
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty); \
  NS_IMETHOD GetParamater(const nsAString & name, nsACString & _retval); \
  NS_IMETHOD SetParamater(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_CALIATTACHMENT(_to) \
  NS_IMETHOD GetUri(nsIURI * *aUri) { return _to GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI * aUri) { return _to SetUri(aUri); } \
  NS_IMETHOD GetFormatType(nsAString & aFormatType) { return _to GetFormatType(aFormatType); } \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) { return _to SetFormatType(aFormatType); } \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) { return _to SetEncoding(aEncoding); } \
  NS_IMETHOD GetItem(calIItemBase * *aItem) { return _to GetItem(aItem); } \
  NS_IMETHOD SetItem(calIItemBase * aItem) { return _to SetItem(aItem); } \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) { return _to GetIcalProperty(aIcalProperty); } \
  NS_IMETHOD SetIcalProperty(calIIcalProperty * aIcalProperty) { return _to SetIcalProperty(aIcalProperty); } \
  NS_IMETHOD GetParamater(const nsAString & name, nsACString & _retval) { return _to GetParamater(name, _retval); } \
  NS_IMETHOD SetParamater(const nsAString & name, const nsACString & value) { return _to SetParamater(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_CALIATTACHMENT(_to) \
  NS_IMETHOD GetUri(nsIURI * *aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI * aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
  NS_IMETHOD GetFormatType(nsAString & aFormatType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormatType(aFormatType); } \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormatType(aFormatType); } \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); } \
  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 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 GetParamater(const nsAString & name, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParamater(name, _retval); } \
  NS_IMETHOD SetParamater(const nsAString & name, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParamater(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 calIAttachment
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIATTACHMENT

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* attribute nsIURI uri; */
NS_IMETHODIMP _MYCLASS_::GetUri(nsIURI * *aUri)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetUri(nsIURI * aUri)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AString formatType; */
NS_IMETHODIMP _MYCLASS_::GetFormatType(nsAString & aFormatType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetFormatType(const nsAString & aFormatType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String encoding; */
NS_IMETHODIMP _MYCLASS_::GetEncoding(nsACString & aEncoding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetEncoding(const nsACString & aEncoding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* 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 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 getParamater (in AString name); */
NS_IMETHODIMP _MYCLASS_::GetParamater(const nsAString & name, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setParamater (in AString name, in AUTF8String value); */
NS_IMETHODIMP _MYCLASS_::SetParamater(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_calIAttachment_h__ */
