/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 mozIDOMWindowProxy; /* forward declaration */


/* starting interface:    nsIMapiRegistry */
#define NS_IMAPIREGISTRY_IID_STR "47d707c3-4369-46a6-a053-5118e12579d6"

#define NS_IMAPIREGISTRY_IID \
  {0x47d707c3, 0x4369, 0x46a6, \
    { 0xa0, 0x53, 0x51, 0x18, 0xe1, 0x25, 0x79, 0xd6 }}

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 mozIDOMWindowProxy parentWindow); */
  NS_IMETHOD ShowMailIntegrationDialog(mozIDOMWindowProxy *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) override; \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) override; \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) override; \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) override; \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) override; \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) override; \
  NS_IMETHOD GetShowDialog(bool *aShowDialog) override; \
  NS_IMETHOD ShowMailIntegrationDialog(mozIDOMWindowProxy *parentWindow) override; \
  NS_IMETHOD RegisterMailAndNewsClient(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMAPIREGISTRY \
  NS_METHOD GetIsDefaultMailClient(bool *aIsDefaultMailClient); \
  NS_METHOD SetIsDefaultMailClient(bool aIsDefaultMailClient); \
  NS_METHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient); \
  NS_METHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient); \
  NS_METHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient); \
  NS_METHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient); \
  NS_METHOD GetShowDialog(bool *aShowDialog); \
  NS_METHOD ShowMailIntegrationDialog(mozIDOMWindowProxy *parentWindow); \
  NS_METHOD 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) override { return _to GetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) override { return _to SetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) override { return _to GetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) override { return _to SetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) override { return _to GetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) override { return _to SetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD GetShowDialog(bool *aShowDialog) override { return _to GetShowDialog(aShowDialog); } \
  NS_IMETHOD ShowMailIntegrationDialog(mozIDOMWindowProxy *parentWindow) override { return _to ShowMailIntegrationDialog(parentWindow); } \
  NS_IMETHOD RegisterMailAndNewsClient(void) override { 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) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD SetIsDefaultMailClient(bool aIsDefaultMailClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultMailClient(aIsDefaultMailClient); } \
  NS_IMETHOD GetIsDefaultNewsClient(bool *aIsDefaultNewsClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD SetIsDefaultNewsClient(bool aIsDefaultNewsClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultNewsClient(aIsDefaultNewsClient); } \
  NS_IMETHOD GetIsDefaultFeedClient(bool *aIsDefaultFeedClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD SetIsDefaultFeedClient(bool aIsDefaultFeedClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsDefaultFeedClient(aIsDefaultFeedClient); } \
  NS_IMETHOD GetShowDialog(bool *aShowDialog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowDialog(aShowDialog); } \
  NS_IMETHOD ShowMailIntegrationDialog(mozIDOMWindowProxy *parentWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowMailIntegrationDialog(parentWindow); } \
  NS_IMETHOD RegisterMailAndNewsClient(void) override { 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_ISUPPORTS(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 mozIDOMWindowProxy parentWindow); */
NS_IMETHODIMP nsMapiRegistry::ShowMailIntegrationDialog(mozIDOMWindowProxy *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__ */
