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

#ifndef __gen_nsICSSDecDataSource_h__
#define __gen_nsICSSDecDataSource_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 nsIRDFResource; /* forward declaration */


/* starting interface:    nsICSSDecDataSource */
#define NS_ICSSDECDATASOURCE_IID_STR "3777c69b-0605-454f-851c-760f4a05888a"

#define NS_ICSSDECDATASOURCE_IID \
  {0x3777c69b, 0x0605, 0x454f, \
    { 0x85, 0x1c, 0x76, 0x0f, 0x4a, 0x05, 0x88, 0x8a }}

class NS_NO_VTABLE nsICSSDecDataSource : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICSSDECDATASOURCE_IID)

  /* attribute nsIRDFResource refResource; */
  NS_IMETHOD GetRefResource(nsIRDFResource * *aRefResource) = 0;
  NS_IMETHOD SetRefResource(nsIRDFResource * aRefResource) = 0;

  /* void setCSSProperty (in wstring aName, in wstring aValue, in wstring aPriority); */
  NS_IMETHOD SetCSSProperty(const PRUnichar *aName, const PRUnichar *aValue, const PRUnichar *aPriority) = 0;

  /* void removeCSSProperty (in wstring aName); */
  NS_IMETHOD RemoveCSSProperty(const PRUnichar *aName) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICSSDECDATASOURCE \
  NS_IMETHOD GetRefResource(nsIRDFResource * *aRefResource); \
  NS_IMETHOD SetRefResource(nsIRDFResource * aRefResource); \
  NS_IMETHOD SetCSSProperty(const PRUnichar *aName, const PRUnichar *aValue, const PRUnichar *aPriority); \
  NS_IMETHOD RemoveCSSProperty(const PRUnichar *aName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICSSDECDATASOURCE(_to) \
  NS_IMETHOD GetRefResource(nsIRDFResource * *aRefResource) { return _to ## GetRefResource(aRefResource); } \
  NS_IMETHOD SetRefResource(nsIRDFResource * aRefResource) { return _to ## SetRefResource(aRefResource); } \
  NS_IMETHOD SetCSSProperty(const PRUnichar *aName, const PRUnichar *aValue, const PRUnichar *aPriority) { return _to ## SetCSSProperty(aName, aValue, aPriority); } \
  NS_IMETHOD RemoveCSSProperty(const PRUnichar *aName) { return _to ## RemoveCSSProperty(aName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICSSDECDATASOURCE(_to) \
  NS_IMETHOD GetRefResource(nsIRDFResource * *aRefResource) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetRefResource(aRefResource); } \
  NS_IMETHOD SetRefResource(nsIRDFResource * aRefResource) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetRefResource(aRefResource); } \
  NS_IMETHOD SetCSSProperty(const PRUnichar *aName, const PRUnichar *aValue, const PRUnichar *aPriority) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> SetCSSProperty(aName, aValue, aPriority); } \
  NS_IMETHOD RemoveCSSProperty(const PRUnichar *aName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveCSSProperty(aName); } 

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

/* Header file */
class nsCSSDecDataSource : public nsICSSDecDataSource
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICSSDECDATASOURCE

  nsCSSDecDataSource();
  virtual ~nsCSSDecDataSource();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsCSSDecDataSource, nsICSSDecDataSource)

nsCSSDecDataSource::nsCSSDecDataSource()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* attribute nsIRDFResource refResource; */
NS_IMETHODIMP nsCSSDecDataSource::GetRefResource(nsIRDFResource * *aRefResource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsCSSDecDataSource::SetRefResource(nsIRDFResource * aRefResource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setCSSProperty (in wstring aName, in wstring aValue, in wstring aPriority); */
NS_IMETHODIMP nsCSSDecDataSource::SetCSSProperty(const PRUnichar *aName, const PRUnichar *aValue, const PRUnichar *aPriority)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeCSSProperty (in wstring aName); */
NS_IMETHODIMP nsCSSDecDataSource::RemoveCSSProperty(const PRUnichar *aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* {B10FB023-72C7-489f-BE65-BCA9B38F856D} */
#define NS_CSSDEC_DATASOURCE_CID \
{ 0xb10fb023, 0x72c7, 0x489f, { 0xbe, 0x65, 0xbc, 0xa9, 0xb3, 0x8f, 0x85, 0x6d } }

#endif /* __gen_nsICSSDecDataSource_h__ */
