LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMLoadStatus.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/dom/interfaces/offline/nsIDOMLoadStatus.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMLoadStatus_h__
       6                 : #define __gen_nsIDOMLoadStatus_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.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                 : 
      18                 : /* starting interface:    nsIDOMLoadStatus */
      19                 : #define NS_IDOMLOADSTATUS_IID_STR "2cb53a8a-d2f4-4ddf-874f-3bc2d595c41a"
      20                 : 
      21                 : #define NS_IDOMLOADSTATUS_IID \
      22                 :   {0x2cb53a8a, 0xd2f4, 0x4ddf, \
      23                 :     { 0x87, 0x4f, 0x3b, 0xc2, 0xd5, 0x95, 0xc4, 0x1a }}
      24                 : 
      25              34 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMLoadStatus : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMLOADSTATUS_IID)
      29                 : 
      30                 :   /* readonly attribute nsIDOMNode source; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) = 0;
      32                 : 
      33                 :   /* readonly attribute DOMString uri; */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) = 0;
      35                 : 
      36                 :   /* readonly attribute long totalSize; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) = 0;
      38                 : 
      39                 :   /* readonly attribute long loadedSize; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) = 0;
      41                 : 
      42                 :   /* readonly attribute unsigned short readyState; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) = 0;
      44                 : 
      45                 :   /* readonly attribute unsigned short status; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) = 0;
      47                 : 
      48                 :   enum {
      49                 :     UNINITIALIZED = 0U,
      50                 :     REQUESTED = 1U,
      51                 :     RECEIVING = 2U,
      52                 :     LOADED = 3U
      53                 :   };
      54                 : 
      55                 : };
      56                 : 
      57                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMLoadStatus, NS_IDOMLOADSTATUS_IID)
      58                 : 
      59                 : /* Use this macro when declaring classes that implement this interface. */
      60                 : #define NS_DECL_NSIDOMLOADSTATUS \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus); \
      67                 : 
      68                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      69                 : #define NS_FORWARD_NSIDOMLOADSTATUS(_to) \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) { return _to GetSource(aSource); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) { return _to GetUri(aUri); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) { return _to GetTotalSize(aTotalSize); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) { return _to GetLoadedSize(aLoadedSize); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return _to GetReadyState(aReadyState); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) { return _to GetStatus(aStatus); } \
      76                 : 
      77                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      78                 : #define NS_FORWARD_SAFE_NSIDOMLOADSTATUS(_to) \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMNode * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetUri(nsAString & aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetTotalSize(PRInt32 *aTotalSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSize(aTotalSize); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadedSize(PRInt32 *aLoadedSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadedSize(aLoadedSize); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint16 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
      85                 : 
      86                 : #if 0
      87                 : /* Use the code below as a template for the implementation class for this interface. */
      88                 : 
      89                 : /* Header file */
      90                 : class nsDOMLoadStatus : public nsIDOMLoadStatus
      91                 : {
      92                 : public:
      93                 :   NS_DECL_ISUPPORTS
      94                 :   NS_DECL_NSIDOMLOADSTATUS
      95                 : 
      96                 :   nsDOMLoadStatus();
      97                 : 
      98                 : private:
      99                 :   ~nsDOMLoadStatus();
     100                 : 
     101                 : protected:
     102                 :   /* additional members */
     103                 : };
     104                 : 
     105                 : /* Implementation file */
     106                 : NS_IMPL_ISUPPORTS1(nsDOMLoadStatus, nsIDOMLoadStatus)
     107                 : 
     108                 : nsDOMLoadStatus::nsDOMLoadStatus()
     109                 : {
     110                 :   /* member initializers and constructor code */
     111                 : }
     112                 : 
     113                 : nsDOMLoadStatus::~nsDOMLoadStatus()
     114                 : {
     115                 :   /* destructor code */
     116                 : }
     117                 : 
     118                 : /* readonly attribute nsIDOMNode source; */
     119                 : NS_IMETHODIMP nsDOMLoadStatus::GetSource(nsIDOMNode * *aSource)
     120                 : {
     121                 :     return NS_ERROR_NOT_IMPLEMENTED;
     122                 : }
     123                 : 
     124                 : /* readonly attribute DOMString uri; */
     125                 : NS_IMETHODIMP nsDOMLoadStatus::GetUri(nsAString & aUri)
     126                 : {
     127                 :     return NS_ERROR_NOT_IMPLEMENTED;
     128                 : }
     129                 : 
     130                 : /* readonly attribute long totalSize; */
     131                 : NS_IMETHODIMP nsDOMLoadStatus::GetTotalSize(PRInt32 *aTotalSize)
     132                 : {
     133                 :     return NS_ERROR_NOT_IMPLEMENTED;
     134                 : }
     135                 : 
     136                 : /* readonly attribute long loadedSize; */
     137                 : NS_IMETHODIMP nsDOMLoadStatus::GetLoadedSize(PRInt32 *aLoadedSize)
     138                 : {
     139                 :     return NS_ERROR_NOT_IMPLEMENTED;
     140                 : }
     141                 : 
     142                 : /* readonly attribute unsigned short readyState; */
     143                 : NS_IMETHODIMP nsDOMLoadStatus::GetReadyState(PRUint16 *aReadyState)
     144                 : {
     145                 :     return NS_ERROR_NOT_IMPLEMENTED;
     146                 : }
     147                 : 
     148                 : /* readonly attribute unsigned short status; */
     149                 : NS_IMETHODIMP nsDOMLoadStatus::GetStatus(PRUint16 *aStatus)
     150                 : {
     151                 :     return NS_ERROR_NOT_IMPLEMENTED;
     152                 : }
     153                 : 
     154                 : /* End of implementation class template. */
     155                 : #endif
     156                 : 
     157                 : 
     158                 : #endif /* __gen_nsIDOMLoadStatus_h__ */

Generated by: LCOV version 1.7