LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIByteRangeRequest.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/netwerk/base/public/nsIByteRangeRequest.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIByteRangeRequest_h__
       6                 : #define __gen_nsIByteRangeRequest_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                 : 
      18                 : /* starting interface:    nsIByteRangeRequest */
      19                 : #define NS_IBYTERANGEREQUEST_IID_STR "c1b1f426-7e83-4759-9f88-0e1b17f49366"
      20                 : 
      21                 : #define NS_IBYTERANGEREQUEST_IID \
      22                 :   {0xc1b1f426, 0x7e83, 0x4759, \
      23                 :     { 0x9f, 0x88, 0x0e, 0x1b, 0x17, 0xf4, 0x93, 0x66 }}
      24                 : 
      25               4 : class NS_NO_VTABLE NS_SCRIPTABLE nsIByteRangeRequest : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBYTERANGEREQUEST_IID)
      29                 : 
      30                 :   /* readonly attribute boolean isByteRangeRequest; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetIsByteRangeRequest(bool *aIsByteRangeRequest) = 0;
      32                 : 
      33                 :   /* readonly attribute long long startRange; */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetStartRange(PRInt64 *aStartRange) = 0;
      35                 : 
      36                 :   /* readonly attribute long long endRange; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetEndRange(PRInt64 *aEndRange) = 0;
      38                 : 
      39                 : };
      40                 : 
      41                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIByteRangeRequest, NS_IBYTERANGEREQUEST_IID)
      42                 : 
      43                 : /* Use this macro when declaring classes that implement this interface. */
      44                 : #define NS_DECL_NSIBYTERANGEREQUEST \
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetIsByteRangeRequest(bool *aIsByteRangeRequest); \
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetStartRange(PRInt64 *aStartRange); \
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetEndRange(PRInt64 *aEndRange); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSIBYTERANGEREQUEST(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetIsByteRangeRequest(bool *aIsByteRangeRequest) { return _to GetIsByteRangeRequest(aIsByteRangeRequest); } \
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetStartRange(PRInt64 *aStartRange) { return _to GetStartRange(aStartRange); } \
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetEndRange(PRInt64 *aEndRange) { return _to GetEndRange(aEndRange); } 
      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_NSIBYTERANGEREQUEST(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetIsByteRangeRequest(bool *aIsByteRangeRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsByteRangeRequest(aIsByteRangeRequest); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetStartRange(PRInt64 *aStartRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartRange(aStartRange); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetEndRange(PRInt64 *aEndRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndRange(aEndRange); } 
      60                 : 
      61                 : #if 0
      62                 : /* Use the code below as a template for the implementation class for this interface. */
      63                 : 
      64                 : /* Header file */
      65                 : class nsByteRangeRequest : public nsIByteRangeRequest
      66                 : {
      67                 : public:
      68                 :   NS_DECL_ISUPPORTS
      69                 :   NS_DECL_NSIBYTERANGEREQUEST
      70                 : 
      71                 :   nsByteRangeRequest();
      72                 : 
      73                 : private:
      74                 :   ~nsByteRangeRequest();
      75                 : 
      76                 : protected:
      77                 :   /* additional members */
      78                 : };
      79                 : 
      80                 : /* Implementation file */
      81                 : NS_IMPL_ISUPPORTS1(nsByteRangeRequest, nsIByteRangeRequest)
      82                 : 
      83                 : nsByteRangeRequest::nsByteRangeRequest()
      84                 : {
      85                 :   /* member initializers and constructor code */
      86                 : }
      87                 : 
      88                 : nsByteRangeRequest::~nsByteRangeRequest()
      89                 : {
      90                 :   /* destructor code */
      91                 : }
      92                 : 
      93                 : /* readonly attribute boolean isByteRangeRequest; */
      94                 : NS_IMETHODIMP nsByteRangeRequest::GetIsByteRangeRequest(bool *aIsByteRangeRequest)
      95                 : {
      96                 :     return NS_ERROR_NOT_IMPLEMENTED;
      97                 : }
      98                 : 
      99                 : /* readonly attribute long long startRange; */
     100                 : NS_IMETHODIMP nsByteRangeRequest::GetStartRange(PRInt64 *aStartRange)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* readonly attribute long long endRange; */
     106                 : NS_IMETHODIMP nsByteRangeRequest::GetEndRange(PRInt64 *aEndRange)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* End of implementation class template. */
     112                 : #endif
     113                 : 
     114                 : 
     115                 : #endif /* __gen_nsIByteRangeRequest_h__ */

Generated by: LCOV version 1.7