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

#ifndef __gen_nsIIccProvider_h__
#define __gen_nsIIccProvider_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
class nsIDOMDOMRequest; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

class nsIIccListener; /* forward declaration */


/* starting interface:    nsIIccProvider */
#define NS_IICCPROVIDER_IID_STR "2fbacfc4-f52d-11e4-9667-33b72f279d14"

#define NS_IICCPROVIDER_IID \
  {0x2fbacfc4, 0xf52d, 0x11e4, \
    { 0x96, 0x67, 0x33, 0xb7, 0x2f, 0x27, 0x9d, 0x14 }}

class NS_NO_VTABLE nsIIccProvider : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IICCPROVIDER_IID)

  /* void registerIccMsg (in unsigned long clientId, in nsIIccListener listener); */
  NS_IMETHOD RegisterIccMsg(uint32_t clientId, nsIIccListener *listener) = 0;

  /* void unregisterIccMsg (in unsigned long clientId, in nsIIccListener listener); */
  NS_IMETHOD UnregisterIccMsg(uint32_t clientId, nsIIccListener *listener) = 0;

  /* void sendStkResponse (in unsigned long clientId, in nsIDOMWindow window, in jsval command, in jsval response); */
  NS_IMETHOD SendStkResponse(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue command, JS::HandleValue response) = 0;

  /* void sendStkMenuSelection (in unsigned long clientId, in nsIDOMWindow window, in unsigned short itemIdentifier, in boolean helpRequested); */
  NS_IMETHOD SendStkMenuSelection(uint32_t clientId, nsIDOMWindow *window, uint16_t itemIdentifier, bool helpRequested) = 0;

  /* void sendStkTimerExpiration (in unsigned long clientId, in nsIDOMWindow window, in jsval timer); */
  NS_IMETHOD SendStkTimerExpiration(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue timer) = 0;

  /* void sendStkEventDownload (in unsigned long clientId, in nsIDOMWindow window, in jsval event); */
  NS_IMETHOD SendStkEventDownload(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue event) = 0;

  /* nsIDOMDOMRequest readContacts (in unsigned long clientId, in nsIDOMWindow window, in unsigned long contactType); */
  NS_IMETHOD ReadContacts(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, nsIDOMDOMRequest * *_retval) = 0;

  /* nsIDOMDOMRequest updateContact (in unsigned long clientId, in nsIDOMWindow window, in unsigned long contactType, in jsval contact, in DOMString pin2); */
  NS_IMETHOD UpdateContact(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, JS::HandleValue contact, const nsAString & pin2, nsIDOMDOMRequest * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIIccProvider, NS_IICCPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIICCPROVIDER \
  NS_IMETHOD RegisterIccMsg(uint32_t clientId, nsIIccListener *listener) override; \
  NS_IMETHOD UnregisterIccMsg(uint32_t clientId, nsIIccListener *listener) override; \
  NS_IMETHOD SendStkResponse(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue command, JS::HandleValue response) override; \
  NS_IMETHOD SendStkMenuSelection(uint32_t clientId, nsIDOMWindow *window, uint16_t itemIdentifier, bool helpRequested) override; \
  NS_IMETHOD SendStkTimerExpiration(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue timer) override; \
  NS_IMETHOD SendStkEventDownload(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue event) override; \
  NS_IMETHOD ReadContacts(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, nsIDOMDOMRequest * *_retval) override; \
  NS_IMETHOD UpdateContact(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, JS::HandleValue contact, const nsAString & pin2, nsIDOMDOMRequest * *_retval) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIICCPROVIDER(_to) \
  NS_IMETHOD RegisterIccMsg(uint32_t clientId, nsIIccListener *listener) override { return _to RegisterIccMsg(clientId, listener); } \
  NS_IMETHOD UnregisterIccMsg(uint32_t clientId, nsIIccListener *listener) override { return _to UnregisterIccMsg(clientId, listener); } \
  NS_IMETHOD SendStkResponse(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue command, JS::HandleValue response) override { return _to SendStkResponse(clientId, window, command, response); } \
  NS_IMETHOD SendStkMenuSelection(uint32_t clientId, nsIDOMWindow *window, uint16_t itemIdentifier, bool helpRequested) override { return _to SendStkMenuSelection(clientId, window, itemIdentifier, helpRequested); } \
  NS_IMETHOD SendStkTimerExpiration(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue timer) override { return _to SendStkTimerExpiration(clientId, window, timer); } \
  NS_IMETHOD SendStkEventDownload(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue event) override { return _to SendStkEventDownload(clientId, window, event); } \
  NS_IMETHOD ReadContacts(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, nsIDOMDOMRequest * *_retval) override { return _to ReadContacts(clientId, window, contactType, _retval); } \
  NS_IMETHOD UpdateContact(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, JS::HandleValue contact, const nsAString & pin2, nsIDOMDOMRequest * *_retval) override { return _to UpdateContact(clientId, window, contactType, contact, pin2, _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_NSIICCPROVIDER(_to) \
  NS_IMETHOD RegisterIccMsg(uint32_t clientId, nsIIccListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterIccMsg(clientId, listener); } \
  NS_IMETHOD UnregisterIccMsg(uint32_t clientId, nsIIccListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterIccMsg(clientId, listener); } \
  NS_IMETHOD SendStkResponse(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue command, JS::HandleValue response) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStkResponse(clientId, window, command, response); } \
  NS_IMETHOD SendStkMenuSelection(uint32_t clientId, nsIDOMWindow *window, uint16_t itemIdentifier, bool helpRequested) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStkMenuSelection(clientId, window, itemIdentifier, helpRequested); } \
  NS_IMETHOD SendStkTimerExpiration(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue timer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStkTimerExpiration(clientId, window, timer); } \
  NS_IMETHOD SendStkEventDownload(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue event) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStkEventDownload(clientId, window, event); } \
  NS_IMETHOD ReadContacts(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, nsIDOMDOMRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadContacts(clientId, window, contactType, _retval); } \
  NS_IMETHOD UpdateContact(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, JS::HandleValue contact, const nsAString & pin2, nsIDOMDOMRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateContact(clientId, window, contactType, contact, pin2, _retval); } 

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

/* Header file */
class nsIccProvider : public nsIIccProvider
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIICCPROVIDER

  nsIccProvider();

private:
  ~nsIccProvider();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsIccProvider, nsIIccProvider)

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

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

/* void registerIccMsg (in unsigned long clientId, in nsIIccListener listener); */
NS_IMETHODIMP nsIccProvider::RegisterIccMsg(uint32_t clientId, nsIIccListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unregisterIccMsg (in unsigned long clientId, in nsIIccListener listener); */
NS_IMETHODIMP nsIccProvider::UnregisterIccMsg(uint32_t clientId, nsIIccListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void sendStkResponse (in unsigned long clientId, in nsIDOMWindow window, in jsval command, in jsval response); */
NS_IMETHODIMP nsIccProvider::SendStkResponse(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue command, JS::HandleValue response)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void sendStkMenuSelection (in unsigned long clientId, in nsIDOMWindow window, in unsigned short itemIdentifier, in boolean helpRequested); */
NS_IMETHODIMP nsIccProvider::SendStkMenuSelection(uint32_t clientId, nsIDOMWindow *window, uint16_t itemIdentifier, bool helpRequested)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void sendStkTimerExpiration (in unsigned long clientId, in nsIDOMWindow window, in jsval timer); */
NS_IMETHODIMP nsIccProvider::SendStkTimerExpiration(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue timer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void sendStkEventDownload (in unsigned long clientId, in nsIDOMWindow window, in jsval event); */
NS_IMETHODIMP nsIccProvider::SendStkEventDownload(uint32_t clientId, nsIDOMWindow *window, JS::HandleValue event)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMDOMRequest readContacts (in unsigned long clientId, in nsIDOMWindow window, in unsigned long contactType); */
NS_IMETHODIMP nsIccProvider::ReadContacts(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, nsIDOMDOMRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMDOMRequest updateContact (in unsigned long clientId, in nsIDOMWindow window, in unsigned long contactType, in jsval contact, in DOMString pin2); */
NS_IMETHODIMP nsIccProvider::UpdateContact(uint32_t clientId, nsIDOMWindow *window, uint32_t contactType, JS::HandleValue contact, const nsAString & pin2, nsIDOMDOMRequest * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIIccProvider_h__ */
