LCOV - code coverage report
Current view: directory - objdir/dist/include - nsISeekableStream.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/io/nsISeekableStream.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISeekableStream_h__
       6                 : #define __gen_nsISeekableStream_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:    nsISeekableStream */
      19                 : #define NS_ISEEKABLESTREAM_IID_STR "8429d350-1040-4661-8b71-f2a6ba455980"
      20                 : 
      21                 : #define NS_ISEEKABLESTREAM_IID \
      22                 :   {0x8429d350, 0x1040, 0x4661, \
      23                 :     { 0x8b, 0x71, 0xf2, 0xa6, 0xba, 0x45, 0x59, 0x80 }}
      24                 : 
      25          252387 : class NS_NO_VTABLE NS_SCRIPTABLE nsISeekableStream : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISEEKABLESTREAM_IID)
      29                 : 
      30                 :   enum {
      31                 :     NS_SEEK_SET = 0,
      32                 :     NS_SEEK_CUR = 1,
      33                 :     NS_SEEK_END = 2
      34                 :   };
      35                 : 
      36                 :   /* void seek (in long whence, in long long offset); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Seek(PRInt32 whence, PRInt64 offset) = 0;
      38                 : 
      39                 :   /* long long tell (); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD Tell(PRInt64 *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* void setEOF (); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD SetEOF(void) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISeekableStream, NS_ISEEKABLESTREAM_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSISEEKABLESTREAM \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Seek(PRInt32 whence, PRInt64 offset); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD Tell(PRInt64 *_retval NS_OUTPARAM); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD SetEOF(void); 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56                 : #define NS_FORWARD_NSISEEKABLESTREAM(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Seek(PRInt32 whence, PRInt64 offset) { return _to Seek(whence, offset); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD Tell(PRInt64 *_retval NS_OUTPARAM) { return _to Tell(_retval); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetEOF(void) { return _to SetEOF(); } 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      62                 : #define NS_FORWARD_SAFE_NSISEEKABLESTREAM(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Seek(PRInt32 whence, PRInt64 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->Seek(whence, offset); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD Tell(PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Tell(_retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD SetEOF(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEOF(); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsSeekableStream : public nsISeekableStream
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSISEEKABLESTREAM
      76                 : 
      77                 :   nsSeekableStream();
      78                 : 
      79                 : private:
      80                 :   ~nsSeekableStream();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsSeekableStream, nsISeekableStream)
      88                 : 
      89                 : nsSeekableStream::nsSeekableStream()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsSeekableStream::~nsSeekableStream()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* void seek (in long whence, in long long offset); */
     100                 : NS_IMETHODIMP nsSeekableStream::Seek(PRInt32 whence, PRInt64 offset)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* long long tell (); */
     106                 : NS_IMETHODIMP nsSeekableStream::Tell(PRInt64 *_retval NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* void setEOF (); */
     112                 : NS_IMETHODIMP nsSeekableStream::SetEOF()
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* End of implementation class template. */
     118                 : #endif
     119                 : 
     120                 : 
     121                 : #endif /* __gen_nsISeekableStream_h__ */

Generated by: LCOV version 1.7