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

#ifndef __gen_nsIPSMUIHandler_h__
#define __gen_nsIPSMUIHandler_h__

#include "nsISupports.h"
#include "domstubs.h"


/* starting interface:    nsIPSMUIHandler */
#define NS_IPSMUIHANDLER_IID_STR "d92be9b0-601b-11d3-8c4a-000064657374"

#define NS_IPSMUIHANDLER_IID \
  {0xd92be9b0, 0x601b, 0x11d3, \
    { 0x8c, 0x4a, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}

class NS_NO_VTABLE nsIPSMUIHandler : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPSMUIHANDLER_IID)

  /* void DisplayURI (in long width, in long height, in PRBool modal, in string urlStr, in nsIDOMWindow window); */
  NS_IMETHOD DisplayURI(PRInt32 width, PRInt32 height, PRBool modal, const char *urlStr, nsIDOMWindow *window) = 0;

  /* void PromptForFile (in wstring prompt, in string fileRegEx, in boolean shouldFileExist, out string outFile); */
  NS_IMETHOD PromptForFile(const PRUnichar *prompt, const char *fileRegEx, PRBool shouldFileExist, char **outFile) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPSMUIHANDLER \
  NS_IMETHOD DisplayURI(PRInt32 width, PRInt32 height, PRBool modal, const char *urlStr, nsIDOMWindow *window); \
  NS_IMETHOD PromptForFile(const PRUnichar *prompt, const char *fileRegEx, PRBool shouldFileExist, char **outFile); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPSMUIHANDLER(_to) \
  NS_IMETHOD DisplayURI(PRInt32 width, PRInt32 height, PRBool modal, const char *urlStr, nsIDOMWindow *window) { return _to ## DisplayURI(width, height, modal, urlStr, window); } \
  NS_IMETHOD PromptForFile(const PRUnichar *prompt, const char *fileRegEx, PRBool shouldFileExist, char **outFile) { return _to ## PromptForFile(prompt, fileRegEx, shouldFileExist, outFile); } 

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

/* Header file */
class nsPSMUIHandler : public nsIPSMUIHandler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPSMUIHANDLER

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPSMUIHandler, nsIPSMUIHandler)

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

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

/* void DisplayURI (in long width, in long height, in PRBool modal, in string urlStr, in nsIDOMWindow window); */
NS_IMETHODIMP nsPSMUIHandler::DisplayURI(PRInt32 width, PRInt32 height, PRBool modal, const char *urlStr, nsIDOMWindow *window)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void PromptForFile (in wstring prompt, in string fileRegEx, in boolean shouldFileExist, out string outFile); */
NS_IMETHODIMP nsPSMUIHandler::PromptForFile(const PRUnichar *prompt, const char *fileRegEx, PRBool shouldFileExist, char **outFile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define PSM_UI_HANLDER_CONTRACTID "@mozilla.org/psm/ui;1"
#define PSM_UI_HANLDER_CLASSNAME "Mozilla PSM UI Handler"

#endif /* __gen_nsIPSMUIHandler_h__ */
