LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIGeolocationProvider.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/system/nsIGeolocationProvider.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIGeolocationProvider_h__
       6                 : #define __gen_nsIGeolocationProvider_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIURI; /* forward declaration */
      18                 : 
      19                 : class nsIDOMWindow; /* forward declaration */
      20                 : 
      21                 : class nsIDOMElement; /* forward declaration */
      22                 : 
      23                 : class nsIDOMGeoPosition; /* forward declaration */
      24                 : 
      25                 : class nsIGeolocationPrompt; /* forward declaration */
      26                 : 
      27                 : 
      28                 : /* starting interface:    nsIGeolocationUpdate */
      29                 : #define NS_IGEOLOCATIONUPDATE_IID_STR "b89d7227-9f04-4236-a582-25a3f2779d72"
      30                 : 
      31                 : #define NS_IGEOLOCATIONUPDATE_IID \
      32                 :   {0xb89d7227, 0x9f04, 0x4236, \
      33                 :     { 0xa5, 0x82, 0x25, 0xa3, 0xf2, 0x77, 0x9d, 0x72 }}
      34                 : 
      35               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGeolocationUpdate : public nsISupports {
      36                 :  public: 
      37                 : 
      38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGEOLOCATIONUPDATE_IID)
      39                 : 
      40                 :   /* void update (in nsIDOMGeoPosition position); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD Update(nsIDOMGeoPosition *position) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeolocationUpdate, NS_IGEOLOCATIONUPDATE_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSIGEOLOCATIONUPDATE \
      49                 :   NS_SCRIPTABLE NS_IMETHOD Update(nsIDOMGeoPosition *position); 
      50                 : 
      51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52                 : #define NS_FORWARD_NSIGEOLOCATIONUPDATE(_to) \
      53                 :   NS_SCRIPTABLE NS_IMETHOD Update(nsIDOMGeoPosition *position) { return _to Update(position); } 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      56                 : #define NS_FORWARD_SAFE_NSIGEOLOCATIONUPDATE(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Update(nsIDOMGeoPosition *position) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(position); } 
      58                 : 
      59                 : #if 0
      60                 : /* Use the code below as a template for the implementation class for this interface. */
      61                 : 
      62                 : /* Header file */
      63                 : class nsGeolocationUpdate : public nsIGeolocationUpdate
      64                 : {
      65                 : public:
      66                 :   NS_DECL_ISUPPORTS
      67                 :   NS_DECL_NSIGEOLOCATIONUPDATE
      68                 : 
      69                 :   nsGeolocationUpdate();
      70                 : 
      71                 : private:
      72                 :   ~nsGeolocationUpdate();
      73                 : 
      74                 : protected:
      75                 :   /* additional members */
      76                 : };
      77                 : 
      78                 : /* Implementation file */
      79                 : NS_IMPL_ISUPPORTS1(nsGeolocationUpdate, nsIGeolocationUpdate)
      80                 : 
      81                 : nsGeolocationUpdate::nsGeolocationUpdate()
      82                 : {
      83                 :   /* member initializers and constructor code */
      84                 : }
      85                 : 
      86                 : nsGeolocationUpdate::~nsGeolocationUpdate()
      87                 : {
      88                 :   /* destructor code */
      89                 : }
      90                 : 
      91                 : /* void update (in nsIDOMGeoPosition position); */
      92                 : NS_IMETHODIMP nsGeolocationUpdate::Update(nsIDOMGeoPosition *position)
      93                 : {
      94                 :     return NS_ERROR_NOT_IMPLEMENTED;
      95                 : }
      96                 : 
      97                 : /* End of implementation class template. */
      98                 : #endif
      99                 : 
     100                 : 
     101                 : /* starting interface:    nsIGeolocationProvider */
     102                 : #define NS_IGEOLOCATIONPROVIDER_IID_STR "701413ed-0f51-64f7-71c7-4369d8e07d6e"
     103                 : 
     104                 : #define NS_IGEOLOCATIONPROVIDER_IID \
     105                 :   {0x701413ed, 0x0f51, 0x64f7, \
     106                 :     { 0x71, 0xc7, 0x43, 0x69, 0xd8, 0xe0, 0x7d, 0x6e }}
     107                 : 
     108                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGeolocationProvider : public nsISupports {
     109                 :  public: 
     110                 : 
     111                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGEOLOCATIONPROVIDER_IID)
     112                 : 
     113                 :   /* void startup (); */
     114                 :   NS_SCRIPTABLE NS_IMETHOD Startup(void) = 0;
     115                 : 
     116                 :   /* void watch (in nsIGeolocationUpdate callback); */
     117                 :   NS_SCRIPTABLE NS_IMETHOD Watch(nsIGeolocationUpdate *callback) = 0;
     118                 : 
     119                 :   /* void shutdown (); */
     120                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) = 0;
     121                 : 
     122                 : };
     123                 : 
     124                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeolocationProvider, NS_IGEOLOCATIONPROVIDER_IID)
     125                 : 
     126                 : /* Use this macro when declaring classes that implement this interface. */
     127                 : #define NS_DECL_NSIGEOLOCATIONPROVIDER \
     128                 :   NS_SCRIPTABLE NS_IMETHOD Startup(void); \
     129                 :   NS_SCRIPTABLE NS_IMETHOD Watch(nsIGeolocationUpdate *callback); \
     130                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void); 
     131                 : 
     132                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     133                 : #define NS_FORWARD_NSIGEOLOCATIONPROVIDER(_to) \
     134                 :   NS_SCRIPTABLE NS_IMETHOD Startup(void) { return _to Startup(); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD Watch(nsIGeolocationUpdate *callback) { return _to Watch(callback); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return _to Shutdown(); } 
     137                 : 
     138                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     139                 : #define NS_FORWARD_SAFE_NSIGEOLOCATIONPROVIDER(_to) \
     140                 :   NS_SCRIPTABLE NS_IMETHOD Startup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Startup(); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD Watch(nsIGeolocationUpdate *callback) { return !_to ? NS_ERROR_NULL_POINTER : _to->Watch(callback); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } 
     143                 : 
     144                 : #if 0
     145                 : /* Use the code below as a template for the implementation class for this interface. */
     146                 : 
     147                 : /* Header file */
     148                 : class nsGeolocationProvider : public nsIGeolocationProvider
     149                 : {
     150                 : public:
     151                 :   NS_DECL_ISUPPORTS
     152                 :   NS_DECL_NSIGEOLOCATIONPROVIDER
     153                 : 
     154                 :   nsGeolocationProvider();
     155                 : 
     156                 : private:
     157                 :   ~nsGeolocationProvider();
     158                 : 
     159                 : protected:
     160                 :   /* additional members */
     161                 : };
     162                 : 
     163                 : /* Implementation file */
     164                 : NS_IMPL_ISUPPORTS1(nsGeolocationProvider, nsIGeolocationProvider)
     165                 : 
     166                 : nsGeolocationProvider::nsGeolocationProvider()
     167                 : {
     168                 :   /* member initializers and constructor code */
     169                 : }
     170                 : 
     171                 : nsGeolocationProvider::~nsGeolocationProvider()
     172                 : {
     173                 :   /* destructor code */
     174                 : }
     175                 : 
     176                 : /* void startup (); */
     177                 : NS_IMETHODIMP nsGeolocationProvider::Startup()
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void watch (in nsIGeolocationUpdate callback); */
     183                 : NS_IMETHODIMP nsGeolocationProvider::Watch(nsIGeolocationUpdate *callback)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* void shutdown (); */
     189                 : NS_IMETHODIMP nsGeolocationProvider::Shutdown()
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* End of implementation class template. */
     195                 : #endif
     196                 : 
     197                 : /*  
     198                 :     This must be implemented by geolocation providers.  It
     199                 :     must support nsIGeolocationProvider.
     200                 : */
     201                 : #define NS_GEOLOCATION_PROVIDER_CONTRACTID "@mozilla.org/geolocation/provider;1"
     202                 : 
     203                 : #endif /* __gen_nsIGeolocationProvider_h__ */

Generated by: LCOV version 1.7