/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIPushNotificationService.idl
 */

#ifndef __gen_nsIPushNotificationService_h__
#define __gen_nsIPushNotificationService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/Value.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIPushNotificationService */
#define NS_IPUSHNOTIFICATIONSERVICE_IID_STR "3da6a16c-69f8-4843-9149-1e89d58a53e2"

#define NS_IPUSHNOTIFICATIONSERVICE_IID \
  {0x3da6a16c, 0x69f8, 0x4843, \
    { 0x91, 0x49, 0x1e, 0x89, 0xd5, 0x8a, 0x53, 0xe2 }}

class NS_NO_VTABLE nsIPushNotificationService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPUSHNOTIFICATIONSERVICE_IID)

  /* jsval register (in string scope, [optional] in string pageURL); */
  NS_IMETHOD Register(const char * scope, const char * pageURL, JS::MutableHandleValue _retval) = 0;

  /* jsval unregister (in string scope); */
  NS_IMETHOD Unregister(const char * scope, JS::MutableHandleValue _retval) = 0;

  /* jsval registration (in string scope); */
  NS_IMETHOD Registration(const char * scope, JS::MutableHandleValue _retval) = 0;

  /* jsval clearAll (); */
  NS_IMETHOD ClearAll(JS::MutableHandleValue _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPushNotificationService, NS_IPUSHNOTIFICATIONSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPUSHNOTIFICATIONSERVICE \
  NS_IMETHOD Register(const char * scope, const char * pageURL, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD Unregister(const char * scope, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD Registration(const char * scope, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD ClearAll(JS::MutableHandleValue _retval) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPUSHNOTIFICATIONSERVICE(_to) \
  NS_IMETHOD Register(const char * scope, const char * pageURL, JS::MutableHandleValue _retval) override { return _to Register(scope, pageURL, _retval); } \
  NS_IMETHOD Unregister(const char * scope, JS::MutableHandleValue _retval) override { return _to Unregister(scope, _retval); } \
  NS_IMETHOD Registration(const char * scope, JS::MutableHandleValue _retval) override { return _to Registration(scope, _retval); } \
  NS_IMETHOD ClearAll(JS::MutableHandleValue _retval) override { return _to ClearAll(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPUSHNOTIFICATIONSERVICE(_to) \
  NS_IMETHOD Register(const char * scope, const char * pageURL, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Register(scope, pageURL, _retval); } \
  NS_IMETHOD Unregister(const char * scope, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Unregister(scope, _retval); } \
  NS_IMETHOD Registration(const char * scope, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Registration(scope, _retval); } \
  NS_IMETHOD ClearAll(JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearAll(_retval); } 

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

/* Header file */
class nsPushNotificationService : public nsIPushNotificationService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPUSHNOTIFICATIONSERVICE

  nsPushNotificationService();

private:
  ~nsPushNotificationService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPushNotificationService, nsIPushNotificationService)

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

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

/* jsval register (in string scope, [optional] in string pageURL); */
NS_IMETHODIMP nsPushNotificationService::Register(const char * scope, const char * pageURL, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval unregister (in string scope); */
NS_IMETHODIMP nsPushNotificationService::Unregister(const char * scope, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval registration (in string scope); */
NS_IMETHODIMP nsPushNotificationService::Registration(const char * scope, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval clearAll (); */
NS_IMETHODIMP nsPushNotificationService::ClearAll(JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPushNotificationService_h__ */
