/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-aurora-w32-xr/build/dom/network/interfaces/nsIMobileConnectionProvider.idl
 */

#ifndef __gen_nsIMobileConnectionProvider_h__
#define __gen_nsIMobileConnectionProvider_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 nsIDOMMozMobileConnectionInfo; /* forward declaration */

class nsIDOMDOMRequest; /* forward declaration */

class nsIDOMWindow; /* forward declaration */


/* starting interface:    nsIMobileConnectionProvider */
#define NS_IMOBILECONNECTIONPROVIDER_IID_STR "1ecd19eb-15d4-47c0-a2cf-80cfa3b94eeb"

#define NS_IMOBILECONNECTIONPROVIDER_IID \
  {0x1ecd19eb, 0x15d4, 0x47c0, \
    { 0xa2, 0xcf, 0x80, 0xcf, 0xa3, 0xb9, 0x4e, 0xeb }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMobileConnectionProvider : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILECONNECTIONPROVIDER_IID)

  /* readonly attribute DOMString cardState; */
  NS_SCRIPTABLE NS_IMETHOD GetCardState(nsAString & aCardState) = 0;

  /* readonly attribute nsIDOMMozMobileConnectionInfo voiceConnectionInfo; */
  NS_SCRIPTABLE NS_IMETHOD GetVoiceConnectionInfo(nsIDOMMozMobileConnectionInfo * *aVoiceConnectionInfo) = 0;

  /* readonly attribute nsIDOMMozMobileConnectionInfo dataConnectionInfo; */
  NS_SCRIPTABLE NS_IMETHOD GetDataConnectionInfo(nsIDOMMozMobileConnectionInfo * *aDataConnectionInfo) = 0;

  /* nsIDOMDOMRequest getNetworks (in nsIDOMWindow window); */
  NS_SCRIPTABLE NS_IMETHOD GetNetworks(nsIDOMWindow *window, nsIDOMDOMRequest * *_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileConnectionProvider, NS_IMOBILECONNECTIONPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILECONNECTIONPROVIDER \
  NS_SCRIPTABLE NS_IMETHOD GetCardState(nsAString & aCardState); \
  NS_SCRIPTABLE NS_IMETHOD GetVoiceConnectionInfo(nsIDOMMozMobileConnectionInfo * *aVoiceConnectionInfo); \
  NS_SCRIPTABLE NS_IMETHOD GetDataConnectionInfo(nsIDOMMozMobileConnectionInfo * *aDataConnectionInfo); \
  NS_SCRIPTABLE NS_IMETHOD GetNetworks(nsIDOMWindow *window, nsIDOMDOMRequest * *_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILECONNECTIONPROVIDER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCardState(nsAString & aCardState) { return _to GetCardState(aCardState); } \
  NS_SCRIPTABLE NS_IMETHOD GetVoiceConnectionInfo(nsIDOMMozMobileConnectionInfo * *aVoiceConnectionInfo) { return _to GetVoiceConnectionInfo(aVoiceConnectionInfo); } \
  NS_SCRIPTABLE NS_IMETHOD GetDataConnectionInfo(nsIDOMMozMobileConnectionInfo * *aDataConnectionInfo) { return _to GetDataConnectionInfo(aDataConnectionInfo); } \
  NS_SCRIPTABLE NS_IMETHOD GetNetworks(nsIDOMWindow *window, nsIDOMDOMRequest * *_retval NS_OUTPARAM) { return _to GetNetworks(window, _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_NSIMOBILECONNECTIONPROVIDER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCardState(nsAString & aCardState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardState(aCardState); } \
  NS_SCRIPTABLE NS_IMETHOD GetVoiceConnectionInfo(nsIDOMMozMobileConnectionInfo * *aVoiceConnectionInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceConnectionInfo(aVoiceConnectionInfo); } \
  NS_SCRIPTABLE NS_IMETHOD GetDataConnectionInfo(nsIDOMMozMobileConnectionInfo * *aDataConnectionInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataConnectionInfo(aDataConnectionInfo); } \
  NS_SCRIPTABLE NS_IMETHOD GetNetworks(nsIDOMWindow *window, nsIDOMDOMRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworks(window, _retval); } 

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

/* Header file */
class nsMobileConnectionProvider : public nsIMobileConnectionProvider
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMOBILECONNECTIONPROVIDER

  nsMobileConnectionProvider();

private:
  ~nsMobileConnectionProvider();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMobileConnectionProvider, nsIMobileConnectionProvider)

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

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

/* readonly attribute DOMString cardState; */
NS_IMETHODIMP nsMobileConnectionProvider::GetCardState(nsAString & aCardState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMMozMobileConnectionInfo voiceConnectionInfo; */
NS_IMETHODIMP nsMobileConnectionProvider::GetVoiceConnectionInfo(nsIDOMMozMobileConnectionInfo * *aVoiceConnectionInfo)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMMozMobileConnectionInfo dataConnectionInfo; */
NS_IMETHODIMP nsMobileConnectionProvider::GetDataConnectionInfo(nsIDOMMozMobileConnectionInfo * *aDataConnectionInfo)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDOMDOMRequest getNetworks (in nsIDOMWindow window); */
NS_IMETHODIMP nsMobileConnectionProvider::GetNetworks(nsIDOMWindow *window, nsIDOMDOMRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMobileConnectionProvider_h__ */
