/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /tmp/comm-release/mailnews/base/public/nsIMapiRegistry.idl
 */

#ifndef __gen_nsIMapiRegistry_h__
#define __gen_nsIMapiRegistry_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 nsIDOMWindow; /* forward declaration */


/* starting interface:    nsIMapiRegistry */
#define NS_IMAPIREGISTRY_IID_STR "b0342ca7-cb85-4d13-ad18-bd431f2086ea"

#define NS_IMAPIREGISTRY_IID \
  {0xb0342ca7, 0xcb85, 0x4d13, \
    { 0xad, 0x18, 0xbd, 0x43, 0x1f, 0x20, 0x86, 0xea }}

class NS_NO_VTABLE nsIMapiRegistry : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMAPIREGISTRY_IID)

  /* attribute boolean isDefaultMailClient; */
  NS_IMETHOD GetIsDefaultMailClient(bool *aIsDefaultMailClient) = 0;
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) = 0;

  /* attribute boolean isDefaultNewsClient; */
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) = 0;
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) = 0;

  /* attribute boolean isDefaultFeedClient; */
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) = 0;
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) = 0;

  /* readonly attribute boolean showDialog; */
  NS_IMETHOD GetShowDialog(bool *aShowDialog) = 0;

  /* void showMailIntegrationDialog (in nsIDOMWindow parentWindow); */
  NS_IMETHOD ShowMailIntegrationDialog(nsIDOMWindow *parentWindow) = 0;

  /* void registerMailAndNewsClient (); */
  NS_IMETHOD RegisterMailAndNewsClient(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMapiRegistry, NS_IMAPIREGISTRY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMAPIREGISTRY \
  NS_IMETHOD GetIsDefaultMailClient(bool *aIsDefaultMailClient); \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient); \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient); \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient); \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient); \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient); \
  NS_IMETHOD GetShowDialog(bool *aShowDialog); \
  NS_IMETHOD ShowMailIntegrationDialog(nsIDOMWindow *parentWindow); \
  NS_IMETHOD RegisterMailAndNewsClient(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMAPIREGISTRY(_to) \
  NS_IMETHOD GetIsDefaultMailClient(bool *aIsDefaultMailClient) { return _to GetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) { return _to SetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) { return _to GetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) { return _to SetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) { return _to GetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) { return _to SetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD GetShowDialog(bool *aShowDialog) { return _to GetShowDialog(aShowDialog); } \
  NS_IMETHOD ShowMailIntegrationDialog(nsIDOMWindow *parentWindow) { return _to ShowMailIntegrationDialog(parentWindow); } \
  NS_IMETHOD RegisterMailAndNewsClient(void) { return _to RegisterMailAndNewsClient(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMAPIREGISTRY(_to) \
  NS_IMETHOD GetIsDefaultMailClient(bool *aIsDefaultMailClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD GetShowDialog(bool *aShowDialog) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowDialog(aShowDialog); } \
  NS_IMETHOD ShowMailIntegrationDialog(nsIDOMWindow *parentWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowMailIntegrationDialog(parentWindow); } \
  NS_IMETHOD RegisterMailAndNewsClient(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterMailAndNewsClient(); } 

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

/* Header file */
class nsMapiRegistry : public nsIMapiRegistry
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMAPIREGISTRY

  nsMapiRegistry();

private:
  ~nsMapiRegistry();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMapiRegistry, nsIMapiRegistry)

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

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

/* attribute boolean isDefaultMailClient; */
NS_IMETHODIMP nsMapiRegistry::GetIsDefaultMailClient(bool *aIsDefaultMailClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMapiRegistry::SetIsDefaultMailClient(bool aIsDefaultMailClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean isDefaultNewsClient; */
NS_IMETHODIMP nsMapiRegistry::GetIsDefaultNewsClient(bool *aIsDefaultNewsClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMapiRegistry::SetIsDefaultNewsClient(bool aIsDefaultNewsClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean isDefaultFeedClient; */
NS_IMETHODIMP nsMapiRegistry::GetIsDefaultFeedClient(bool *aIsDefaultFeedClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMapiRegistry::SetIsDefaultFeedClient(bool aIsDefaultFeedClient)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean showDialog; */
NS_IMETHODIMP nsMapiRegistry::GetShowDialog(bool *aShowDialog)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void showMailIntegrationDialog (in nsIDOMWindow parentWindow); */
NS_IMETHODIMP nsMapiRegistry::ShowMailIntegrationDialog(nsIDOMWindow *parentWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerMailAndNewsClient (); */
NS_IMETHODIMP nsMapiRegistry::RegisterMailAndNewsClient()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_IMAPIREGISTRY_CONTRACTID    "@mozilla.org/mapiregistry;1"
#define NS_IMAPIREGISTRY_CLASSNAME "Mozilla MAPI Registry"

#endif /* __gen_nsIMapiRegistry_h__ */
