/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /tmp/comm-release/suite/shell/public/nsIShellService.idl
 */

#ifndef __gen_nsIShellService_h__
#define __gen_nsIShellService_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 nsIDOMElement; /* forward declaration */

class nsILocalFile; /* forward declaration */


/* starting interface:    nsIShellService */
#define NS_ISHELLSERVICE_IID_STR "bebb8b6a-8af4-4cf2-85ac-022f7c6a87a9"

#define NS_ISHELLSERVICE_IID \
  {0xbebb8b6a, 0x8af4, 0x4cf2, \
    { 0x85, 0xac, 0x02, 0x2f, 0x7c, 0x6a, 0x87, 0xa9 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIShellService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHELLSERVICE_IID)

  enum {
    BROWSER = 1U,
    MAIL = 2U,
    NEWS = 4U,
    RSS = 8U
  };

  /* boolean isDefaultClient (in boolean aStartupCheck, in unsigned short aApps); */
  NS_SCRIPTABLE NS_IMETHOD IsDefaultClient(bool aStartupCheck, PRUint16 aApps, bool *_retval NS_OUTPARAM) = 0;

  /* void setDefaultClient (in boolean aForAllUsers, in boolean aClaimAllTypes, in unsigned short aApps); */
  NS_SCRIPTABLE NS_IMETHOD SetDefaultClient(bool aForAllUsers, bool aClaimAllTypes, PRUint16 aApps) = 0;

  /* attribute boolean shouldCheckDefaultClient; */
  NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultClient(bool *aShouldCheckDefaultClient) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultClient(bool aShouldCheckDefaultClient) = 0;

  /* attribute unsigned short shouldBeDefaultClientFor; */
  NS_SCRIPTABLE NS_IMETHOD GetShouldBeDefaultClientFor(PRUint16 *aShouldBeDefaultClientFor) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetShouldBeDefaultClientFor(PRUint16 aShouldBeDefaultClientFor) = 0;

  /* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) = 0;

  enum {
    BACKGROUND_TILE = 1,
    BACKGROUND_STRETCH = 2,
    BACKGROUND_CENTER = 3
  };

  /* attribute unsigned long desktopBackgroundColor; */
  NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) = 0;

  /* void openApplicationWithURI (in nsILocalFile aApplication, in ACString aURI); */
  NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) = 0;

  /* readonly attribute nsILocalFile defaultFeedReader; */
  NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIShellService, NS_ISHELLSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISHELLSERVICE \
  NS_SCRIPTABLE NS_IMETHOD IsDefaultClient(bool aStartupCheck, PRUint16 aApps, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetDefaultClient(bool aForAllUsers, bool aClaimAllTypes, PRUint16 aApps); \
  NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultClient(bool *aShouldCheckDefaultClient); \
  NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultClient(bool aShouldCheckDefaultClient); \
  NS_SCRIPTABLE NS_IMETHOD GetShouldBeDefaultClientFor(PRUint16 *aShouldBeDefaultClientFor); \
  NS_SCRIPTABLE NS_IMETHOD SetShouldBeDefaultClientFor(PRUint16 aShouldBeDefaultClientFor); \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition); \
  NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor); \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor); \
  NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI); \
  NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISHELLSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD IsDefaultClient(bool aStartupCheck, PRUint16 aApps, bool *_retval NS_OUTPARAM) { return _to IsDefaultClient(aStartupCheck, aApps, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetDefaultClient(bool aForAllUsers, bool aClaimAllTypes, PRUint16 aApps) { return _to SetDefaultClient(aForAllUsers, aClaimAllTypes, aApps); } \
  NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultClient(bool *aShouldCheckDefaultClient) { return _to GetShouldCheckDefaultClient(aShouldCheckDefaultClient); } \
  NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultClient(bool aShouldCheckDefaultClient) { return _to SetShouldCheckDefaultClient(aShouldCheckDefaultClient); } \
  NS_SCRIPTABLE NS_IMETHOD GetShouldBeDefaultClientFor(PRUint16 *aShouldBeDefaultClientFor) { return _to GetShouldBeDefaultClientFor(aShouldBeDefaultClientFor); } \
  NS_SCRIPTABLE NS_IMETHOD SetShouldBeDefaultClientFor(PRUint16 aShouldBeDefaultClientFor) { return _to SetShouldBeDefaultClientFor(aShouldBeDefaultClientFor); } \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) { return _to SetDesktopBackground(aElement, aPosition); } \
  NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) { return _to GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) { return _to SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
  NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) { return _to OpenApplicationWithURI(aApplication, aURI); } \
  NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) { return _to GetDefaultFeedReader(aDefaultFeedReader); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISHELLSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD IsDefaultClient(bool aStartupCheck, PRUint16 aApps, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultClient(aStartupCheck, aApps, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetDefaultClient(bool aForAllUsers, bool aClaimAllTypes, PRUint16 aApps) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultClient(aForAllUsers, aClaimAllTypes, aApps); } \
  NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultClient(bool *aShouldCheckDefaultClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldCheckDefaultClient(aShouldCheckDefaultClient); } \
  NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultClient(bool aShouldCheckDefaultClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShouldCheckDefaultClient(aShouldCheckDefaultClient); } \
  NS_SCRIPTABLE NS_IMETHOD GetShouldBeDefaultClientFor(PRUint16 *aShouldBeDefaultClientFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldBeDefaultClientFor(aShouldBeDefaultClientFor); } \
  NS_SCRIPTABLE NS_IMETHOD SetShouldBeDefaultClientFor(PRUint16 aShouldBeDefaultClientFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShouldBeDefaultClientFor(aShouldBeDefaultClientFor); } \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackground(aElement, aPosition); } \
  NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
  NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
  NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenApplicationWithURI(aApplication, aURI); } \
  NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultFeedReader(aDefaultFeedReader); } 

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

/* Header file */
class nsShellService : public nsIShellService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISHELLSERVICE

  nsShellService();

private:
  ~nsShellService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsShellService, nsIShellService)

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

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

/* boolean isDefaultClient (in boolean aStartupCheck, in unsigned short aApps); */
NS_IMETHODIMP nsShellService::IsDefaultClient(bool aStartupCheck, PRUint16 aApps, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setDefaultClient (in boolean aForAllUsers, in boolean aClaimAllTypes, in unsigned short aApps); */
NS_IMETHODIMP nsShellService::SetDefaultClient(bool aForAllUsers, bool aClaimAllTypes, PRUint16 aApps)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean shouldCheckDefaultClient; */
NS_IMETHODIMP nsShellService::GetShouldCheckDefaultClient(bool *aShouldCheckDefaultClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsShellService::SetShouldCheckDefaultClient(bool aShouldCheckDefaultClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned short shouldBeDefaultClientFor; */
NS_IMETHODIMP nsShellService::GetShouldBeDefaultClientFor(PRUint16 *aShouldBeDefaultClientFor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsShellService::SetShouldBeDefaultClientFor(PRUint16 aShouldBeDefaultClientFor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
NS_IMETHODIMP nsShellService::SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long desktopBackgroundColor; */
NS_IMETHODIMP nsShellService::GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsShellService::SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void openApplicationWithURI (in nsILocalFile aApplication, in ACString aURI); */
NS_IMETHODIMP nsShellService::OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsILocalFile defaultFeedReader; */
NS_IMETHODIMP nsShellService::GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIShellService_h__ */
