/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM IDLFile\nsIScolPluginInstance.idl
 */

#ifndef __gen_nsIScolPluginInstance_h__
#define __gen_nsIScolPluginInstance_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:    nsIScolPluginInstance */
#define NS_ISCOLPLUGININSTANCE_IID_STR "62db5666-b5be-49b0-a78f-5fd18eb71f9a"

#define NS_ISCOLPLUGININSTANCE_IID \
  {0x62db5666, 0xb5be, 0x49b0, \
    { 0xa7, 0x8f, 0x5f, 0xd1, 0x8e, 0xb7, 0x1f, 0x9a }}

class NS_NO_VTABLE nsIScolPluginInstance : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCOLPLUGININSTANCE_IID)

  /* attribute string text; */
  NS_IMETHOD GetText(char * *aText) = 0;
  NS_IMETHOD SetText(const char * aText) = 0;

  /* long SendMessage (in string Message); */
  NS_IMETHOD SendMessage(const char *Message, PRInt32 *_retval) = 0;

  /* long LaunchMachine (in string CmdLine, in long CmdShow, in long MemSize); */
  NS_IMETHOD LaunchMachine(const char *CmdLine, PRInt32 CmdShow, PRInt32 MemSize, PRInt32 *_retval) = 0;

  /* attribute string DownloadURL; */
  NS_IMETHOD GetDownloadURL(char * *aDownloadURL) = 0;
  NS_IMETHOD SetDownloadURL(const char * aDownloadURL) = 0;

  /* attribute long DownloadSize; */
  NS_IMETHOD GetDownloadSize(PRInt32 *aDownloadSize) = 0;
  NS_IMETHOD SetDownloadSize(PRInt32 aDownloadSize) = 0;

  /* attribute string ScolVersionNeeded; */
  NS_IMETHOD GetScolVersionNeeded(char * *aScolVersionNeeded) = 0;
  NS_IMETHOD SetScolVersionNeeded(const char * aScolVersionNeeded) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCOLPLUGININSTANCE \
  NS_IMETHOD GetText(char * *aText); \
  NS_IMETHOD SetText(const char * aText); \
  NS_IMETHOD SendMessage(const char *Message, PRInt32 *_retval); \
  NS_IMETHOD LaunchMachine(const char *CmdLine, PRInt32 CmdShow, PRInt32 MemSize, PRInt32 *_retval); \
  NS_IMETHOD GetDownloadURL(char * *aDownloadURL); \
  NS_IMETHOD SetDownloadURL(const char * aDownloadURL); \
  NS_IMETHOD GetDownloadSize(PRInt32 *aDownloadSize); \
  NS_IMETHOD SetDownloadSize(PRInt32 aDownloadSize); \
  NS_IMETHOD GetScolVersionNeeded(char * *aScolVersionNeeded); \
  NS_IMETHOD SetScolVersionNeeded(const char * aScolVersionNeeded); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCOLPLUGININSTANCE(_to) \
  NS_IMETHOD GetText(char * *aText) { return _to ## GetText(aText); } \
  NS_IMETHOD SetText(const char * aText) { return _to ## SetText(aText); } \
  NS_IMETHOD SendMessage(const char *Message, PRInt32 *_retval) { return _to ## SendMessage(Message, _retval); } \
  NS_IMETHOD LaunchMachine(const char *CmdLine, PRInt32 CmdShow, PRInt32 MemSize, PRInt32 *_retval) { return _to ## LaunchMachine(CmdLine, CmdShow, MemSize, _retval); } \
  NS_IMETHOD GetDownloadURL(char * *aDownloadURL) { return _to ## GetDownloadURL(aDownloadURL); } \
  NS_IMETHOD SetDownloadURL(const char * aDownloadURL) { return _to ## SetDownloadURL(aDownloadURL); } \
  NS_IMETHOD GetDownloadSize(PRInt32 *aDownloadSize) { return _to ## GetDownloadSize(aDownloadSize); } \
  NS_IMETHOD SetDownloadSize(PRInt32 aDownloadSize) { return _to ## SetDownloadSize(aDownloadSize); } \
  NS_IMETHOD GetScolVersionNeeded(char * *aScolVersionNeeded) { return _to ## GetScolVersionNeeded(aScolVersionNeeded); } \
  NS_IMETHOD SetScolVersionNeeded(const char * aScolVersionNeeded) { return _to ## SetScolVersionNeeded(aScolVersionNeeded); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCOLPLUGININSTANCE(_to) \
  NS_IMETHOD GetText(char * *aText) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetText(aText); } \
  NS_IMETHOD SetText(const char * aText) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetText(aText); } \
  NS_IMETHOD SendMessage(const char *Message, PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> SendMessage(Message, _retval); } \
  NS_IMETHOD LaunchMachine(const char *CmdLine, PRInt32 CmdShow, PRInt32 MemSize, PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> LaunchMachine(CmdLine, CmdShow, MemSize, _retval); } \
  NS_IMETHOD GetDownloadURL(char * *aDownloadURL) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetDownloadURL(aDownloadURL); } \
  NS_IMETHOD SetDownloadURL(const char * aDownloadURL) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetDownloadURL(aDownloadURL); } \
  NS_IMETHOD GetDownloadSize(PRInt32 *aDownloadSize) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetDownloadSize(aDownloadSize); } \
  NS_IMETHOD SetDownloadSize(PRInt32 aDownloadSize) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetDownloadSize(aDownloadSize); } \
  NS_IMETHOD GetScolVersionNeeded(char * *aScolVersionNeeded) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetScolVersionNeeded(aScolVersionNeeded); } \
  NS_IMETHOD SetScolVersionNeeded(const char * aScolVersionNeeded) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetScolVersionNeeded(aScolVersionNeeded); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsScolPluginInstance : public nsIScolPluginInstance
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISCOLPLUGININSTANCE

  nsScolPluginInstance();
  virtual ~nsScolPluginInstance();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScolPluginInstance, nsIScolPluginInstance)

nsScolPluginInstance::nsScolPluginInstance()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsScolPluginInstance::~nsScolPluginInstance()
{
  /* destructor code */
}

/* attribute string text; */
NS_IMETHODIMP nsScolPluginInstance::GetText(char * *aText)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScolPluginInstance::SetText(const char * aText)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long SendMessage (in string Message); */
NS_IMETHODIMP nsScolPluginInstance::SendMessage(const char *Message, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long LaunchMachine (in string CmdLine, in long CmdShow, in long MemSize); */
NS_IMETHODIMP nsScolPluginInstance::LaunchMachine(const char *CmdLine, PRInt32 CmdShow, PRInt32 MemSize, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string DownloadURL; */
NS_IMETHODIMP nsScolPluginInstance::GetDownloadURL(char * *aDownloadURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScolPluginInstance::SetDownloadURL(const char * aDownloadURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute long DownloadSize; */
NS_IMETHODIMP nsScolPluginInstance::GetDownloadSize(PRInt32 *aDownloadSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScolPluginInstance::SetDownloadSize(PRInt32 aDownloadSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string ScolVersionNeeded; */
NS_IMETHODIMP nsScolPluginInstance::GetScolVersionNeeded(char * *aScolVersionNeeded)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScolPluginInstance::SetScolVersionNeeded(const char * aScolVersionNeeded)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIScolPluginInstance_h__ */
