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

#ifndef __gen_flockIImageScaler_h__
#define __gen_flockIImageScaler_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

/* starting interface:    flockIImageScaler */
#define FLOCKIIMAGESCALER_IID_STR "90b34dbf-3f7a-4636-b8d9-21962d7ff80d"

#define FLOCKIIMAGESCALER_IID \
  {0x90b34dbf, 0x3f7a, 0x4636, \
    { 0xb8, 0xd9, 0x21, 0x96, 0x2d, 0x7f, 0xf8, 0x0d }}

class NS_NO_VTABLE flockIImageScaler : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIIMAGESCALER_IID)

  /* boolean getDimensions (in ACString aInputFileName, out long aWidth, out long aHeight); */
  NS_IMETHOD GetDimensions(const nsACString & aInputFileName, PRInt32 *aWidth, PRInt32 *aHeight, PRBool *_retval) = 0;

  /* boolean resize (in ACString aInputFileName, in ACString aOutputFileName, in long aWidth, in long aHeight); */
  NS_IMETHOD Resize(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aWidth, PRInt32 aHeight, PRBool *_retval) = 0;

  /* boolean rotate (in ACString aInputFileName, in ACString aOutputFileName, in long aDegrees); */
  NS_IMETHOD Rotate(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aDegrees, PRBool *_retval) = 0;

  /* boolean doMagick ([array, size_is (aCount)] in string aParams, in PRUint32 aCount); */
  NS_IMETHOD DoMagick(const char **aParams, PRUint32 aCount, PRBool *_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIIMAGESCALER \
  NS_IMETHOD GetDimensions(const nsACString & aInputFileName, PRInt32 *aWidth, PRInt32 *aHeight, PRBool *_retval); \
  NS_IMETHOD Resize(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aWidth, PRInt32 aHeight, PRBool *_retval); \
  NS_IMETHOD Rotate(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aDegrees, PRBool *_retval); \
  NS_IMETHOD DoMagick(const char **aParams, PRUint32 aCount, PRBool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIIMAGESCALER(_to) \
  NS_IMETHOD GetDimensions(const nsACString & aInputFileName, PRInt32 *aWidth, PRInt32 *aHeight, PRBool *_retval) { return _to GetDimensions(aInputFileName, aWidth, aHeight, _retval); } \
  NS_IMETHOD Resize(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aWidth, PRInt32 aHeight, PRBool *_retval) { return _to Resize(aInputFileName, aOutputFileName, aWidth, aHeight, _retval); } \
  NS_IMETHOD Rotate(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aDegrees, PRBool *_retval) { return _to Rotate(aInputFileName, aOutputFileName, aDegrees, _retval); } \
  NS_IMETHOD DoMagick(const char **aParams, PRUint32 aCount, PRBool *_retval) { return _to DoMagick(aParams, aCount, _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_FLOCKIIMAGESCALER(_to) \
  NS_IMETHOD GetDimensions(const nsACString & aInputFileName, PRInt32 *aWidth, PRInt32 *aHeight, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDimensions(aInputFileName, aWidth, aHeight, _retval); } \
  NS_IMETHOD Resize(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aWidth, PRInt32 aHeight, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resize(aInputFileName, aOutputFileName, aWidth, aHeight, _retval); } \
  NS_IMETHOD Rotate(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aDegrees, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rotate(aInputFileName, aOutputFileName, aDegrees, _retval); } \
  NS_IMETHOD DoMagick(const char **aParams, PRUint32 aCount, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoMagick(aParams, aCount, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockIImageScaler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIIMAGESCALER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* boolean getDimensions (in ACString aInputFileName, out long aWidth, out long aHeight); */
NS_IMETHODIMP _MYCLASS_::GetDimensions(const nsACString & aInputFileName, PRInt32 *aWidth, PRInt32 *aHeight, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean resize (in ACString aInputFileName, in ACString aOutputFileName, in long aWidth, in long aHeight); */
NS_IMETHODIMP _MYCLASS_::Resize(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aWidth, PRInt32 aHeight, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean rotate (in ACString aInputFileName, in ACString aOutputFileName, in long aDegrees); */
NS_IMETHODIMP _MYCLASS_::Rotate(const nsACString & aInputFileName, const nsACString & aOutputFileName, PRInt32 aDegrees, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean doMagick ([array, size_is (aCount)] in string aParams, in PRUint32 aCount); */
NS_IMETHODIMP _MYCLASS_::DoMagick(const char **aParams, PRUint32 aCount, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIImageScaler_h__ */
