/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 "7a17d45d-1c0e-4877-baa3-0eb67e770498"

#define CALIATTACHMENT_IID \
  {0x7a17d45d, 0x1c0e, 0x4877, \
    { 0xba, 0xa3, 0x0e, 0xb6, 0x7e, 0x77, 0x04, 0x98 }}

class NS_NO_VTABLE calIAttachment : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIATTACHMENT_IID)

  /* readonly attribute AUTF8String hashId; */
  NS_IMETHOD GetHashId(nsACString & aHashId) = 0;

  /* attribute nsIURI uri; */
  NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
  NS_IMETHOD SetUri(nsIURI *aUri) = 0;

  /* attribute AUTF8String rawData; */
  NS_IMETHOD GetRawData(nsACString & aRawData) = 0;
  NS_IMETHOD SetRawData(const nsACString & aRawData) = 0;

  /* attribute AString formatType; */
  NS_IMETHOD GetFormatType(nsAString & aFormatType) = 0;
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) = 0;

  /* attribute AUTF8String encoding; */
  NS_IMETHOD GetEncoding(nsACString & aEncoding) = 0;
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) = 0;

  /* attribute calIIcalProperty icalProperty; */
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) = 0;
  NS_IMETHOD SetIcalProperty(calIIcalProperty *aIcalProperty) = 0;

  /* attribute AUTF8String icalString; */
  NS_IMETHOD GetIcalString(nsACString & aIcalString) = 0;
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) = 0;

  /* 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;

  /* calIAttachment clone (); */
  NS_IMETHOD Clone(calIAttachment * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIAttachment, CALIATTACHMENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIATTACHMENT \
  NS_IMETHOD GetHashId(nsACString & aHashId) override; \
  NS_IMETHOD GetUri(nsIURI * *aUri) override; \
  NS_IMETHOD SetUri(nsIURI *aUri) override; \
  NS_IMETHOD GetRawData(nsACString & aRawData) override; \
  NS_IMETHOD SetRawData(const nsACString & aRawData) override; \
  NS_IMETHOD GetFormatType(nsAString & aFormatType) override; \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) override; \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) override; \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) override; \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) override; \
  NS_IMETHOD SetIcalProperty(calIIcalProperty *aIcalProperty) override; \
  NS_IMETHOD GetIcalString(nsACString & aIcalString) override; \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) override; \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) override; \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) override; \
  NS_IMETHOD DeleteParameter(const nsAString & name) override; \
  NS_IMETHOD Clone(calIAttachment * *_retval) 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_CALIATTACHMENT \
  NS_METHOD GetHashId(nsACString & aHashId); \
  NS_METHOD GetUri(nsIURI * *aUri); \
  NS_METHOD SetUri(nsIURI *aUri); \
  NS_METHOD GetRawData(nsACString & aRawData); \
  NS_METHOD SetRawData(const nsACString & aRawData); \
  NS_METHOD GetFormatType(nsAString & aFormatType); \
  NS_METHOD SetFormatType(const nsAString & aFormatType); \
  NS_METHOD GetEncoding(nsACString & aEncoding); \
  NS_METHOD SetEncoding(const nsACString & aEncoding); \
  NS_METHOD GetIcalProperty(calIIcalProperty * *aIcalProperty); \
  NS_METHOD SetIcalProperty(calIIcalProperty *aIcalProperty); \
  NS_METHOD GetIcalString(nsACString & aIcalString); \
  NS_METHOD SetIcalString(const nsACString & aIcalString); \
  NS_METHOD GetParameter(const nsAString & name, nsACString & _retval); \
  NS_METHOD SetParameter(const nsAString & name, const nsACString & value); \
  NS_METHOD DeleteParameter(const nsAString & name); \
  NS_METHOD Clone(calIAttachment * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIATTACHMENT(_to) \
  NS_IMETHOD GetHashId(nsACString & aHashId) override { return _to GetHashId(aHashId); } \
  NS_IMETHOD GetUri(nsIURI * *aUri) override { return _to GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI *aUri) override { return _to SetUri(aUri); } \
  NS_IMETHOD GetRawData(nsACString & aRawData) override { return _to GetRawData(aRawData); } \
  NS_IMETHOD SetRawData(const nsACString & aRawData) override { return _to SetRawData(aRawData); } \
  NS_IMETHOD GetFormatType(nsAString & aFormatType) override { return _to GetFormatType(aFormatType); } \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) override { return _to SetFormatType(aFormatType); } \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) override { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) override { return _to SetEncoding(aEncoding); } \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) override { return _to GetIcalProperty(aIcalProperty); } \
  NS_IMETHOD SetIcalProperty(calIIcalProperty *aIcalProperty) override { return _to SetIcalProperty(aIcalProperty); } \
  NS_IMETHOD GetIcalString(nsACString & aIcalString) override { return _to GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) override { return _to SetIcalString(aIcalString); } \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) override { return _to GetParameter(name, _retval); } \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) override { return _to SetParameter(name, value); } \
  NS_IMETHOD DeleteParameter(const nsAString & name) override { return _to DeleteParameter(name); } \
  NS_IMETHOD Clone(calIAttachment * *_retval) override { return _to Clone(_retval); } 

/* 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 GetHashId(nsACString & aHashId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHashId(aHashId); } \
  NS_IMETHOD GetUri(nsIURI * *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
  NS_IMETHOD SetUri(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
  NS_IMETHOD GetRawData(nsACString & aRawData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawData(aRawData); } \
  NS_IMETHOD SetRawData(const nsACString & aRawData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRawData(aRawData); } \
  NS_IMETHOD GetFormatType(nsAString & aFormatType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormatType(aFormatType); } \
  NS_IMETHOD SetFormatType(const nsAString & aFormatType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormatType(aFormatType); } \
  NS_IMETHOD GetEncoding(nsACString & aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD SetEncoding(const nsACString & aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); } \
  NS_IMETHOD GetIcalProperty(calIIcalProperty * *aIcalProperty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalProperty(aIcalProperty); } \
  NS_IMETHOD SetIcalProperty(calIIcalProperty *aIcalProperty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalProperty(aIcalProperty); } \
  NS_IMETHOD GetIcalString(nsACString & aIcalString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalString(aIcalString); } \
  NS_IMETHOD SetIcalString(const nsACString & aIcalString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcalString(aIcalString); } \
  NS_IMETHOD GetParameter(const nsAString & name, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(name, _retval); } \
  NS_IMETHOD SetParameter(const nsAString & name, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParameter(name, value); } \
  NS_IMETHOD DeleteParameter(const nsAString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteParameter(name); } \
  NS_IMETHOD Clone(calIAttachment * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } 

#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_ISUPPORTS(_MYCLASS_, calIAttachment)

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

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

/* readonly attribute AUTF8String hashId; */
NS_IMETHODIMP _MYCLASS_::GetHashId(nsACString & aHashId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* 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 AUTF8String rawData; */
NS_IMETHODIMP _MYCLASS_::GetRawData(nsACString & aRawData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetRawData(const nsACString & aRawData)
{
    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 calIIcalProperty icalProperty; */
NS_IMETHODIMP _MYCLASS_::GetIcalProperty(calIIcalProperty * *aIcalProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetIcalProperty(calIIcalProperty *aIcalProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String icalString; */
NS_IMETHODIMP _MYCLASS_::GetIcalString(nsACString & aIcalString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetIcalString(const nsACString & aIcalString)
{
    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;
}

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

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


#endif /* __gen_calIAttachment_h__ */
