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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/modules/libjar/nsIZipReader.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIZipReader_h__
       6                 : #define __gen_nsIZipReader_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 nsIUTF8StringEnumerator; /* forward declaration */
      18                 : 
      19                 : class nsIInputStream; /* forward declaration */
      20                 : 
      21                 : class nsIFile; /* forward declaration */
      22                 : 
      23                 : class nsIPrincipal; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIZipEntry */
      27                 : #define NS_IZIPENTRY_IID_STR "e1c028bc-c478-11da-95a8-00e08161165f"
      28                 : 
      29                 : #define NS_IZIPENTRY_IID \
      30                 :   {0xe1c028bc, 0xc478, 0x11da, \
      31                 :     { 0x95, 0xa8, 0x00, 0xe0, 0x81, 0x61, 0x16, 0x5f }}
      32                 : 
      33            7245 : class NS_NO_VTABLE NS_SCRIPTABLE nsIZipEntry : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IZIPENTRY_IID)
      37                 : 
      38                 :   /* readonly attribute unsigned short compression; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetCompression(PRUint16 *aCompression) = 0;
      40                 : 
      41                 :   /* readonly attribute unsigned long size; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) = 0;
      43                 : 
      44                 :   /* readonly attribute unsigned long realSize; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetRealSize(PRUint32 *aRealSize) = 0;
      46                 : 
      47                 :   /* readonly attribute unsigned long CRC32; */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetCRC32(PRUint32 *aCRC32) = 0;
      49                 : 
      50                 :   /* readonly attribute boolean isDirectory; */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDirectory(bool *aIsDirectory) = 0;
      52                 : 
      53                 :   /* readonly attribute PRTime lastModifiedTime; */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0;
      55                 : 
      56                 :   /* readonly attribute boolean isSynthetic; */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSynthetic(bool *aIsSynthetic) = 0;
      58                 : 
      59                 : };
      60                 : 
      61                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIZipEntry, NS_IZIPENTRY_IID)
      62                 : 
      63                 : /* Use this macro when declaring classes that implement this interface. */
      64                 : #define NS_DECL_NSIZIPENTRY \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetCompression(PRUint16 *aCompression); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetRealSize(PRUint32 *aRealSize); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetCRC32(PRUint32 *aCRC32); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDirectory(bool *aIsDirectory); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime); \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSynthetic(bool *aIsSynthetic); 
      72                 : 
      73                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      74                 : #define NS_FORWARD_NSIZIPENTRY(_to) \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetCompression(PRUint16 *aCompression) { return _to GetCompression(aCompression); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return _to GetSize(aSize); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetRealSize(PRUint32 *aRealSize) { return _to GetRealSize(aRealSize); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetCRC32(PRUint32 *aCRC32) { return _to GetCRC32(aCRC32); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDirectory(bool *aIsDirectory) { return _to GetIsDirectory(aIsDirectory); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) { return _to GetLastModifiedTime(aLastModifiedTime); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSynthetic(bool *aIsSynthetic) { return _to GetIsSynthetic(aIsSynthetic); } 
      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_NSIZIPENTRY(_to) \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetCompression(PRUint16 *aCompression) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompression(aCompression); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetRealSize(PRUint32 *aRealSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealSize(aRealSize); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetCRC32(PRUint32 *aCRC32) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCRC32(aCRC32); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDirectory(bool *aIsDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDirectory(aIsDirectory); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSynthetic(bool *aIsSynthetic) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSynthetic(aIsSynthetic); } 
      92                 : 
      93                 : #if 0
      94                 : /* Use the code below as a template for the implementation class for this interface. */
      95                 : 
      96                 : /* Header file */
      97                 : class nsZipEntry : public nsIZipEntry
      98                 : {
      99                 : public:
     100                 :   NS_DECL_ISUPPORTS
     101                 :   NS_DECL_NSIZIPENTRY
     102                 : 
     103                 :   nsZipEntry();
     104                 : 
     105                 : private:
     106                 :   ~nsZipEntry();
     107                 : 
     108                 : protected:
     109                 :   /* additional members */
     110                 : };
     111                 : 
     112                 : /* Implementation file */
     113                 : NS_IMPL_ISUPPORTS1(nsZipEntry, nsIZipEntry)
     114                 : 
     115                 : nsZipEntry::nsZipEntry()
     116                 : {
     117                 :   /* member initializers and constructor code */
     118                 : }
     119                 : 
     120                 : nsZipEntry::~nsZipEntry()
     121                 : {
     122                 :   /* destructor code */
     123                 : }
     124                 : 
     125                 : /* readonly attribute unsigned short compression; */
     126                 : NS_IMETHODIMP nsZipEntry::GetCompression(PRUint16 *aCompression)
     127                 : {
     128                 :     return NS_ERROR_NOT_IMPLEMENTED;
     129                 : }
     130                 : 
     131                 : /* readonly attribute unsigned long size; */
     132                 : NS_IMETHODIMP nsZipEntry::GetSize(PRUint32 *aSize)
     133                 : {
     134                 :     return NS_ERROR_NOT_IMPLEMENTED;
     135                 : }
     136                 : 
     137                 : /* readonly attribute unsigned long realSize; */
     138                 : NS_IMETHODIMP nsZipEntry::GetRealSize(PRUint32 *aRealSize)
     139                 : {
     140                 :     return NS_ERROR_NOT_IMPLEMENTED;
     141                 : }
     142                 : 
     143                 : /* readonly attribute unsigned long CRC32; */
     144                 : NS_IMETHODIMP nsZipEntry::GetCRC32(PRUint32 *aCRC32)
     145                 : {
     146                 :     return NS_ERROR_NOT_IMPLEMENTED;
     147                 : }
     148                 : 
     149                 : /* readonly attribute boolean isDirectory; */
     150                 : NS_IMETHODIMP nsZipEntry::GetIsDirectory(bool *aIsDirectory)
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : 
     155                 : /* readonly attribute PRTime lastModifiedTime; */
     156                 : NS_IMETHODIMP nsZipEntry::GetLastModifiedTime(PRTime *aLastModifiedTime)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : 
     161                 : /* readonly attribute boolean isSynthetic; */
     162                 : NS_IMETHODIMP nsZipEntry::GetIsSynthetic(bool *aIsSynthetic)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : 
     167                 : /* End of implementation class template. */
     168                 : #endif
     169                 : 
     170                 : 
     171                 : /* starting interface:    nsIZipReader */
     172                 : #define NS_IZIPREADER_IID_STR "8fbf5023-3827-4fbc-a464-5db546e7f747"
     173                 : 
     174                 : #define NS_IZIPREADER_IID \
     175                 :   {0x8fbf5023, 0x3827, 0x4fbc, \
     176                 :     { 0xa4, 0x64, 0x5d, 0xb5, 0x46, 0xe7, 0xf7, 0x47 }}
     177                 : 
     178            1714 : class NS_NO_VTABLE NS_SCRIPTABLE nsIZipReader : public nsISupports {
     179                 :  public: 
     180                 : 
     181                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IZIPREADER_IID)
     182                 : 
     183                 :   /* void open (in nsIFile zipFile); */
     184                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *zipFile) = 0;
     185                 : 
     186                 :   /* void openInner (in nsIZipReader zipReader, in AUTF8String zipEntry); */
     187                 :   NS_SCRIPTABLE NS_IMETHOD OpenInner(nsIZipReader *zipReader, const nsACString & zipEntry) = 0;
     188                 : 
     189                 :   /* readonly attribute nsIFile file; */
     190                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
     191                 : 
     192                 :   /* void close (); */
     193                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
     194                 : 
     195                 :   /* void test (in AUTF8String aEntryName); */
     196                 :   NS_SCRIPTABLE NS_IMETHOD Test(const nsACString & aEntryName) = 0;
     197                 : 
     198                 :   /* void extract (in AUTF8String zipEntry, in nsIFile outFile); */
     199                 :   NS_SCRIPTABLE NS_IMETHOD Extract(const nsACString & zipEntry, nsIFile *outFile) = 0;
     200                 : 
     201                 :   /* nsIZipEntry getEntry (in AUTF8String zipEntry); */
     202                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & zipEntry, nsIZipEntry * *_retval NS_OUTPARAM) = 0;
     203                 : 
     204                 :   /* boolean hasEntry (in AUTF8String zipEntry); */
     205                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & zipEntry, bool *_retval NS_OUTPARAM) = 0;
     206                 : 
     207                 :   /* nsIUTF8StringEnumerator findEntries (in AUTF8String aPattern); */
     208                 :   NS_SCRIPTABLE NS_IMETHOD FindEntries(const nsACString & aPattern, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
     209                 : 
     210                 :   /* nsIInputStream getInputStream (in AUTF8String zipEntry); */
     211                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStream(const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) = 0;
     212                 : 
     213                 :   /* nsIInputStream getInputStreamWithSpec (in AUTF8String aJarSpec, in AUTF8String zipEntry); */
     214                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStreamWithSpec(const nsACString & aJarSpec, const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) = 0;
     215                 : 
     216                 :   /* nsIPrincipal getCertificatePrincipal (in AUTF8String aEntryName); */
     217                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificatePrincipal(const nsACString & aEntryName, nsIPrincipal * *_retval NS_OUTPARAM) = 0;
     218                 : 
     219                 :   /* readonly attribute PRUint32 manifestEntriesCount; */
     220                 :   NS_SCRIPTABLE NS_IMETHOD GetManifestEntriesCount(PRUint32 *aManifestEntriesCount) = 0;
     221                 : 
     222                 : };
     223                 : 
     224                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIZipReader, NS_IZIPREADER_IID)
     225                 : 
     226                 : /* Use this macro when declaring classes that implement this interface. */
     227                 : #define NS_DECL_NSIZIPREADER \
     228                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *zipFile); \
     229                 :   NS_SCRIPTABLE NS_IMETHOD OpenInner(nsIZipReader *zipReader, const nsACString & zipEntry); \
     230                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile); \
     231                 :   NS_SCRIPTABLE NS_IMETHOD Close(void); \
     232                 :   NS_SCRIPTABLE NS_IMETHOD Test(const nsACString & aEntryName); \
     233                 :   NS_SCRIPTABLE NS_IMETHOD Extract(const nsACString & zipEntry, nsIFile *outFile); \
     234                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & zipEntry, nsIZipEntry * *_retval NS_OUTPARAM); \
     235                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & zipEntry, bool *_retval NS_OUTPARAM); \
     236                 :   NS_SCRIPTABLE NS_IMETHOD FindEntries(const nsACString & aPattern, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
     237                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStream(const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM); \
     238                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStreamWithSpec(const nsACString & aJarSpec, const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM); \
     239                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificatePrincipal(const nsACString & aEntryName, nsIPrincipal * *_retval NS_OUTPARAM); \
     240                 :   NS_SCRIPTABLE NS_IMETHOD GetManifestEntriesCount(PRUint32 *aManifestEntriesCount); 
     241                 : 
     242                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     243                 : #define NS_FORWARD_NSIZIPREADER(_to) \
     244                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *zipFile) { return _to Open(zipFile); } \
     245                 :   NS_SCRIPTABLE NS_IMETHOD OpenInner(nsIZipReader *zipReader, const nsACString & zipEntry) { return _to OpenInner(zipReader, zipEntry); } \
     246                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return _to GetFile(aFile); } \
     247                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
     248                 :   NS_SCRIPTABLE NS_IMETHOD Test(const nsACString & aEntryName) { return _to Test(aEntryName); } \
     249                 :   NS_SCRIPTABLE NS_IMETHOD Extract(const nsACString & zipEntry, nsIFile *outFile) { return _to Extract(zipEntry, outFile); } \
     250                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & zipEntry, nsIZipEntry * *_retval NS_OUTPARAM) { return _to GetEntry(zipEntry, _retval); } \
     251                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & zipEntry, bool *_retval NS_OUTPARAM) { return _to HasEntry(zipEntry, _retval); } \
     252                 :   NS_SCRIPTABLE NS_IMETHOD FindEntries(const nsACString & aPattern, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to FindEntries(aPattern, _retval); } \
     253                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStream(const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) { return _to GetInputStream(zipEntry, _retval); } \
     254                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStreamWithSpec(const nsACString & aJarSpec, const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) { return _to GetInputStreamWithSpec(aJarSpec, zipEntry, _retval); } \
     255                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificatePrincipal(const nsACString & aEntryName, nsIPrincipal * *_retval NS_OUTPARAM) { return _to GetCertificatePrincipal(aEntryName, _retval); } \
     256                 :   NS_SCRIPTABLE NS_IMETHOD GetManifestEntriesCount(PRUint32 *aManifestEntriesCount) { return _to GetManifestEntriesCount(aManifestEntriesCount); } 
     257                 : 
     258                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     259                 : #define NS_FORWARD_SAFE_NSIZIPREADER(_to) \
     260                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *zipFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(zipFile); } \
     261                 :   NS_SCRIPTABLE NS_IMETHOD OpenInner(nsIZipReader *zipReader, const nsACString & zipEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenInner(zipReader, zipEntry); } \
     262                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
     263                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
     264                 :   NS_SCRIPTABLE NS_IMETHOD Test(const nsACString & aEntryName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Test(aEntryName); } \
     265                 :   NS_SCRIPTABLE NS_IMETHOD Extract(const nsACString & zipEntry, nsIFile *outFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->Extract(zipEntry, outFile); } \
     266                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & zipEntry, nsIZipEntry * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntry(zipEntry, _retval); } \
     267                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & zipEntry, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEntry(zipEntry, _retval); } \
     268                 :   NS_SCRIPTABLE NS_IMETHOD FindEntries(const nsACString & aPattern, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindEntries(aPattern, _retval); } \
     269                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStream(const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInputStream(zipEntry, _retval); } \
     270                 :   NS_SCRIPTABLE NS_IMETHOD GetInputStreamWithSpec(const nsACString & aJarSpec, const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInputStreamWithSpec(aJarSpec, zipEntry, _retval); } \
     271                 :   NS_SCRIPTABLE NS_IMETHOD GetCertificatePrincipal(const nsACString & aEntryName, nsIPrincipal * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificatePrincipal(aEntryName, _retval); } \
     272                 :   NS_SCRIPTABLE NS_IMETHOD GetManifestEntriesCount(PRUint32 *aManifestEntriesCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManifestEntriesCount(aManifestEntriesCount); } 
     273                 : 
     274                 : #if 0
     275                 : /* Use the code below as a template for the implementation class for this interface. */
     276                 : 
     277                 : /* Header file */
     278                 : class nsZipReader : public nsIZipReader
     279                 : {
     280                 : public:
     281                 :   NS_DECL_ISUPPORTS
     282                 :   NS_DECL_NSIZIPREADER
     283                 : 
     284                 :   nsZipReader();
     285                 : 
     286                 : private:
     287                 :   ~nsZipReader();
     288                 : 
     289                 : protected:
     290                 :   /* additional members */
     291                 : };
     292                 : 
     293                 : /* Implementation file */
     294                 : NS_IMPL_ISUPPORTS1(nsZipReader, nsIZipReader)
     295                 : 
     296                 : nsZipReader::nsZipReader()
     297                 : {
     298                 :   /* member initializers and constructor code */
     299                 : }
     300                 : 
     301                 : nsZipReader::~nsZipReader()
     302                 : {
     303                 :   /* destructor code */
     304                 : }
     305                 : 
     306                 : /* void open (in nsIFile zipFile); */
     307                 : NS_IMETHODIMP nsZipReader::Open(nsIFile *zipFile)
     308                 : {
     309                 :     return NS_ERROR_NOT_IMPLEMENTED;
     310                 : }
     311                 : 
     312                 : /* void openInner (in nsIZipReader zipReader, in AUTF8String zipEntry); */
     313                 : NS_IMETHODIMP nsZipReader::OpenInner(nsIZipReader *zipReader, const nsACString & zipEntry)
     314                 : {
     315                 :     return NS_ERROR_NOT_IMPLEMENTED;
     316                 : }
     317                 : 
     318                 : /* readonly attribute nsIFile file; */
     319                 : NS_IMETHODIMP nsZipReader::GetFile(nsIFile * *aFile)
     320                 : {
     321                 :     return NS_ERROR_NOT_IMPLEMENTED;
     322                 : }
     323                 : 
     324                 : /* void close (); */
     325                 : NS_IMETHODIMP nsZipReader::Close()
     326                 : {
     327                 :     return NS_ERROR_NOT_IMPLEMENTED;
     328                 : }
     329                 : 
     330                 : /* void test (in AUTF8String aEntryName); */
     331                 : NS_IMETHODIMP nsZipReader::Test(const nsACString & aEntryName)
     332                 : {
     333                 :     return NS_ERROR_NOT_IMPLEMENTED;
     334                 : }
     335                 : 
     336                 : /* void extract (in AUTF8String zipEntry, in nsIFile outFile); */
     337                 : NS_IMETHODIMP nsZipReader::Extract(const nsACString & zipEntry, nsIFile *outFile)
     338                 : {
     339                 :     return NS_ERROR_NOT_IMPLEMENTED;
     340                 : }
     341                 : 
     342                 : /* nsIZipEntry getEntry (in AUTF8String zipEntry); */
     343                 : NS_IMETHODIMP nsZipReader::GetEntry(const nsACString & zipEntry, nsIZipEntry * *_retval NS_OUTPARAM)
     344                 : {
     345                 :     return NS_ERROR_NOT_IMPLEMENTED;
     346                 : }
     347                 : 
     348                 : /* boolean hasEntry (in AUTF8String zipEntry); */
     349                 : NS_IMETHODIMP nsZipReader::HasEntry(const nsACString & zipEntry, bool *_retval NS_OUTPARAM)
     350                 : {
     351                 :     return NS_ERROR_NOT_IMPLEMENTED;
     352                 : }
     353                 : 
     354                 : /* nsIUTF8StringEnumerator findEntries (in AUTF8String aPattern); */
     355                 : NS_IMETHODIMP nsZipReader::FindEntries(const nsACString & aPattern, nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     356                 : {
     357                 :     return NS_ERROR_NOT_IMPLEMENTED;
     358                 : }
     359                 : 
     360                 : /* nsIInputStream getInputStream (in AUTF8String zipEntry); */
     361                 : NS_IMETHODIMP nsZipReader::GetInputStream(const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM)
     362                 : {
     363                 :     return NS_ERROR_NOT_IMPLEMENTED;
     364                 : }
     365                 : 
     366                 : /* nsIInputStream getInputStreamWithSpec (in AUTF8String aJarSpec, in AUTF8String zipEntry); */
     367                 : NS_IMETHODIMP nsZipReader::GetInputStreamWithSpec(const nsACString & aJarSpec, const nsACString & zipEntry, nsIInputStream * *_retval NS_OUTPARAM)
     368                 : {
     369                 :     return NS_ERROR_NOT_IMPLEMENTED;
     370                 : }
     371                 : 
     372                 : /* nsIPrincipal getCertificatePrincipal (in AUTF8String aEntryName); */
     373                 : NS_IMETHODIMP nsZipReader::GetCertificatePrincipal(const nsACString & aEntryName, nsIPrincipal * *_retval NS_OUTPARAM)
     374                 : {
     375                 :     return NS_ERROR_NOT_IMPLEMENTED;
     376                 : }
     377                 : 
     378                 : /* readonly attribute PRUint32 manifestEntriesCount; */
     379                 : NS_IMETHODIMP nsZipReader::GetManifestEntriesCount(PRUint32 *aManifestEntriesCount)
     380                 : {
     381                 :     return NS_ERROR_NOT_IMPLEMENTED;
     382                 : }
     383                 : 
     384                 : /* End of implementation class template. */
     385                 : #endif
     386                 : 
     387                 : 
     388                 : /* starting interface:    nsIZipReaderCache */
     389                 : #define NS_IZIPREADERCACHE_IID_STR "72fc56e5-3e6e-4d11-8967-26ab96071032"
     390                 : 
     391                 : #define NS_IZIPREADERCACHE_IID \
     392                 :   {0x72fc56e5, 0x3e6e, 0x4d11, \
     393                 :     { 0x89, 0x67, 0x26, 0xab, 0x96, 0x07, 0x10, 0x32 }}
     394                 : 
     395            1420 : class NS_NO_VTABLE NS_SCRIPTABLE nsIZipReaderCache : public nsISupports {
     396                 :  public: 
     397                 : 
     398                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IZIPREADERCACHE_IID)
     399                 : 
     400                 :   /* void init (in unsigned long cacheSize); */
     401                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 cacheSize) = 0;
     402                 : 
     403                 :   /* nsIZipReader getZip (in nsIFile zipFile); */
     404                 :   NS_SCRIPTABLE NS_IMETHOD GetZip(nsIFile *zipFile, nsIZipReader * *_retval NS_OUTPARAM) = 0;
     405                 : 
     406                 :   /* nsIZipReader getInnerZip (in nsIFile zipFile, in AUTF8String zipEntry); */
     407                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerZip(nsIFile *zipFile, const nsACString & zipEntry, nsIZipReader * *_retval NS_OUTPARAM) = 0;
     408                 : 
     409                 : };
     410                 : 
     411                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIZipReaderCache, NS_IZIPREADERCACHE_IID)
     412                 : 
     413                 : /* Use this macro when declaring classes that implement this interface. */
     414                 : #define NS_DECL_NSIZIPREADERCACHE \
     415                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 cacheSize); \
     416                 :   NS_SCRIPTABLE NS_IMETHOD GetZip(nsIFile *zipFile, nsIZipReader * *_retval NS_OUTPARAM); \
     417                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerZip(nsIFile *zipFile, const nsACString & zipEntry, nsIZipReader * *_retval NS_OUTPARAM); 
     418                 : 
     419                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     420                 : #define NS_FORWARD_NSIZIPREADERCACHE(_to) \
     421                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 cacheSize) { return _to Init(cacheSize); } \
     422                 :   NS_SCRIPTABLE NS_IMETHOD GetZip(nsIFile *zipFile, nsIZipReader * *_retval NS_OUTPARAM) { return _to GetZip(zipFile, _retval); } \
     423                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerZip(nsIFile *zipFile, const nsACString & zipEntry, nsIZipReader * *_retval NS_OUTPARAM) { return _to GetInnerZip(zipFile, zipEntry, _retval); } 
     424                 : 
     425                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     426                 : #define NS_FORWARD_SAFE_NSIZIPREADERCACHE(_to) \
     427                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 cacheSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(cacheSize); } \
     428                 :   NS_SCRIPTABLE NS_IMETHOD GetZip(nsIFile *zipFile, nsIZipReader * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZip(zipFile, _retval); } \
     429                 :   NS_SCRIPTABLE NS_IMETHOD GetInnerZip(nsIFile *zipFile, const nsACString & zipEntry, nsIZipReader * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerZip(zipFile, zipEntry, _retval); } 
     430                 : 
     431                 : #if 0
     432                 : /* Use the code below as a template for the implementation class for this interface. */
     433                 : 
     434                 : /* Header file */
     435                 : class nsZipReaderCache : public nsIZipReaderCache
     436                 : {
     437                 : public:
     438                 :   NS_DECL_ISUPPORTS
     439                 :   NS_DECL_NSIZIPREADERCACHE
     440                 : 
     441                 :   nsZipReaderCache();
     442                 : 
     443                 : private:
     444                 :   ~nsZipReaderCache();
     445                 : 
     446                 : protected:
     447                 :   /* additional members */
     448                 : };
     449                 : 
     450                 : /* Implementation file */
     451                 : NS_IMPL_ISUPPORTS1(nsZipReaderCache, nsIZipReaderCache)
     452                 : 
     453                 : nsZipReaderCache::nsZipReaderCache()
     454                 : {
     455                 :   /* member initializers and constructor code */
     456                 : }
     457                 : 
     458                 : nsZipReaderCache::~nsZipReaderCache()
     459                 : {
     460                 :   /* destructor code */
     461                 : }
     462                 : 
     463                 : /* void init (in unsigned long cacheSize); */
     464                 : NS_IMETHODIMP nsZipReaderCache::Init(PRUint32 cacheSize)
     465                 : {
     466                 :     return NS_ERROR_NOT_IMPLEMENTED;
     467                 : }
     468                 : 
     469                 : /* nsIZipReader getZip (in nsIFile zipFile); */
     470                 : NS_IMETHODIMP nsZipReaderCache::GetZip(nsIFile *zipFile, nsIZipReader * *_retval NS_OUTPARAM)
     471                 : {
     472                 :     return NS_ERROR_NOT_IMPLEMENTED;
     473                 : }
     474                 : 
     475                 : /* nsIZipReader getInnerZip (in nsIFile zipFile, in AUTF8String zipEntry); */
     476                 : NS_IMETHODIMP nsZipReaderCache::GetInnerZip(nsIFile *zipFile, const nsACString & zipEntry, nsIZipReader * *_retval NS_OUTPARAM)
     477                 : {
     478                 :     return NS_ERROR_NOT_IMPLEMENTED;
     479                 : }
     480                 : 
     481                 : /* End of implementation class template. */
     482                 : #endif
     483                 : 
     484                 : 
     485                 : #define NS_ZIPREADER_CID                             \
     486                 : { /* 88e2fd0b-f7f4-480c-9483-7846b00e8dad */         \
     487                 :    0x88e2fd0b, 0xf7f4, 0x480c,                       \
     488                 :   { 0x94, 0x83, 0x78, 0x46, 0xb0, 0x0e, 0x8d, 0xad } \
     489                 : }
     490                 : #define NS_ZIPREADERCACHE_CID                        \
     491                 : { /* 608b7f6f-4b60-40d6-87ed-d933bf53d8c1 */         \
     492                 :    0x608b7f6f, 0x4b60, 0x40d6,                       \
     493                 :   { 0x87, 0xed, 0xd9, 0x33, 0xbf, 0x53, 0xd8, 0xc1 } \
     494                 : }
     495                 : 
     496                 : #endif /* __gen_nsIZipReader_h__ */

Generated by: LCOV version 1.7