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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/plugins/base/nsIPluginStreamInfo.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPluginStreamInfo_h__
       6                 : #define __gen_nsIPluginStreamInfo_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nspluginroot_h__
      14                 : #include "nspluginroot.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : #include "npapi.h"
      22                 : 
      23                 : /* starting interface:    nsIPluginStreamInfo */
      24                 : #define NS_IPLUGINSTREAMINFO_IID_STR "a700845f-0e26-44ea-84f5-3be5381f98d5"
      25                 : 
      26                 : #define NS_IPLUGINSTREAMINFO_IID \
      27                 :   {0xa700845f, 0x0e26, 0x44ea, \
      28                 :     { 0x84, 0xf5, 0x3b, 0xe5, 0x38, 0x1f, 0x98, 0xd5 }}
      29                 : 
      30               0 : class NS_NO_VTABLE nsIPluginStreamInfo : public nsISupports {
      31                 :  public: 
      32                 : 
      33                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGINSTREAMINFO_IID)
      34                 : 
      35                 :   /* readonly attribute string contentType; */
      36                 :   NS_IMETHOD GetContentType(char * *aContentType) = 0;
      37                 : 
      38                 :   /* void isSeekable (out boolean aSeekable); */
      39                 :   NS_IMETHOD IsSeekable(bool *aSeekable NS_OUTPARAM) = 0;
      40                 : 
      41                 :   /* readonly attribute unsigned long length; */
      42                 :   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
      43                 : 
      44                 :   /* readonly attribute unsigned long lastModified; */
      45                 :   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) = 0;
      46                 : 
      47                 :   /* void getURL (out constCharPtr aURL); */
      48                 :   NS_IMETHOD GetURL(const char **aURL NS_OUTPARAM) = 0;
      49                 : 
      50                 :   /* void requestRead (in NPByteRangePtr aRangeList); */
      51                 :   NS_IMETHOD RequestRead(NPByteRange *aRangeList) = 0;
      52                 : 
      53                 :   /* attribute long streamOffset; */
      54                 :   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) = 0;
      55                 :   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) = 0;
      56                 : 
      57                 : };
      58                 : 
      59                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginStreamInfo, NS_IPLUGINSTREAMINFO_IID)
      60                 : 
      61                 : /* Use this macro when declaring classes that implement this interface. */
      62                 : #define NS_DECL_NSIPLUGINSTREAMINFO \
      63                 :   NS_IMETHOD GetContentType(char * *aContentType); \
      64                 :   NS_IMETHOD IsSeekable(bool *aSeekable NS_OUTPARAM); \
      65                 :   NS_IMETHOD GetLength(PRUint32 *aLength); \
      66                 :   NS_IMETHOD GetLastModified(PRUint32 *aLastModified); \
      67                 :   NS_IMETHOD GetURL(const char **aURL NS_OUTPARAM); \
      68                 :   NS_IMETHOD RequestRead(NPByteRange *aRangeList); \
      69                 :   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset); \
      70                 :   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset); 
      71                 : 
      72                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      73                 : #define NS_FORWARD_NSIPLUGINSTREAMINFO(_to) \
      74                 :   NS_IMETHOD GetContentType(char * *aContentType) { return _to GetContentType(aContentType); } \
      75                 :   NS_IMETHOD IsSeekable(bool *aSeekable NS_OUTPARAM) { return _to IsSeekable(aSeekable); } \
      76                 :   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
      77                 :   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return _to GetLastModified(aLastModified); } \
      78                 :   NS_IMETHOD GetURL(const char **aURL NS_OUTPARAM) { return _to GetURL(aURL); } \
      79                 :   NS_IMETHOD RequestRead(NPByteRange *aRangeList) { return _to RequestRead(aRangeList); } \
      80                 :   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return _to GetStreamOffset(aStreamOffset); } \
      81                 :   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return _to SetStreamOffset(aStreamOffset); } 
      82                 : 
      83                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      84                 : #define NS_FORWARD_SAFE_NSIPLUGINSTREAMINFO(_to) \
      85                 :   NS_IMETHOD GetContentType(char * *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
      86                 :   NS_IMETHOD IsSeekable(bool *aSeekable NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSeekable(aSeekable); } \
      87                 :   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
      88                 :   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
      89                 :   NS_IMETHOD GetURL(const char **aURL NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
      90                 :   NS_IMETHOD RequestRead(NPByteRange *aRangeList) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRead(aRangeList); } \
      91                 :   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStreamOffset(aStreamOffset); } \
      92                 :   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStreamOffset(aStreamOffset); } 
      93                 : 
      94                 : #if 0
      95                 : /* Use the code below as a template for the implementation class for this interface. */
      96                 : 
      97                 : /* Header file */
      98                 : class nsPluginStreamInfo : public nsIPluginStreamInfo
      99                 : {
     100                 : public:
     101                 :   NS_DECL_ISUPPORTS
     102                 :   NS_DECL_NSIPLUGINSTREAMINFO
     103                 : 
     104                 :   nsPluginStreamInfo();
     105                 : 
     106                 : private:
     107                 :   ~nsPluginStreamInfo();
     108                 : 
     109                 : protected:
     110                 :   /* additional members */
     111                 : };
     112                 : 
     113                 : /* Implementation file */
     114                 : NS_IMPL_ISUPPORTS1(nsPluginStreamInfo, nsIPluginStreamInfo)
     115                 : 
     116                 : nsPluginStreamInfo::nsPluginStreamInfo()
     117                 : {
     118                 :   /* member initializers and constructor code */
     119                 : }
     120                 : 
     121                 : nsPluginStreamInfo::~nsPluginStreamInfo()
     122                 : {
     123                 :   /* destructor code */
     124                 : }
     125                 : 
     126                 : /* readonly attribute string contentType; */
     127                 : NS_IMETHODIMP nsPluginStreamInfo::GetContentType(char * *aContentType)
     128                 : {
     129                 :     return NS_ERROR_NOT_IMPLEMENTED;
     130                 : }
     131                 : 
     132                 : /* void isSeekable (out boolean aSeekable); */
     133                 : NS_IMETHODIMP nsPluginStreamInfo::IsSeekable(bool *aSeekable NS_OUTPARAM)
     134                 : {
     135                 :     return NS_ERROR_NOT_IMPLEMENTED;
     136                 : }
     137                 : 
     138                 : /* readonly attribute unsigned long length; */
     139                 : NS_IMETHODIMP nsPluginStreamInfo::GetLength(PRUint32 *aLength)
     140                 : {
     141                 :     return NS_ERROR_NOT_IMPLEMENTED;
     142                 : }
     143                 : 
     144                 : /* readonly attribute unsigned long lastModified; */
     145                 : NS_IMETHODIMP nsPluginStreamInfo::GetLastModified(PRUint32 *aLastModified)
     146                 : {
     147                 :     return NS_ERROR_NOT_IMPLEMENTED;
     148                 : }
     149                 : 
     150                 : /* void getURL (out constCharPtr aURL); */
     151                 : NS_IMETHODIMP nsPluginStreamInfo::GetURL(const char **aURL NS_OUTPARAM)
     152                 : {
     153                 :     return NS_ERROR_NOT_IMPLEMENTED;
     154                 : }
     155                 : 
     156                 : /* void requestRead (in NPByteRangePtr aRangeList); */
     157                 : NS_IMETHODIMP nsPluginStreamInfo::RequestRead(NPByteRange *aRangeList)
     158                 : {
     159                 :     return NS_ERROR_NOT_IMPLEMENTED;
     160                 : }
     161                 : 
     162                 : /* attribute long streamOffset; */
     163                 : NS_IMETHODIMP nsPluginStreamInfo::GetStreamOffset(PRInt32 *aStreamOffset)
     164                 : {
     165                 :     return NS_ERROR_NOT_IMPLEMENTED;
     166                 : }
     167                 : NS_IMETHODIMP nsPluginStreamInfo::SetStreamOffset(PRInt32 aStreamOffset)
     168                 : {
     169                 :     return NS_ERROR_NOT_IMPLEMENTED;
     170                 : }
     171                 : 
     172                 : /* End of implementation class template. */
     173                 : #endif
     174                 : 
     175                 : 
     176                 : #endif /* __gen_nsIPluginStreamInfo_h__ */

Generated by: LCOV version 1.7