LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIZipWriter.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIZipWriter.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIZipWriter_h__
       6             : #define __gen_nsIZipWriter_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 nsIChannel; /* forward declaration */
      18             : 
      19             : class nsIInputStream; /* forward declaration */
      20             : 
      21             : class nsIRequestObserver; /* forward declaration */
      22             : 
      23             : class nsIFile; /* forward declaration */
      24             : 
      25             : class nsIZipEntry; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsIZipWriter */
      29             : #define NS_IZIPWRITER_IID_STR "3ca10750-797e-4a22-bcfe-66170b5e96dd"
      30             : 
      31             : #define NS_IZIPWRITER_IID \
      32             :   {0x3ca10750, 0x797e, 0x4a22, \
      33             :     { 0xbc, 0xfe, 0x66, 0x17, 0x0b, 0x5e, 0x96, 0xdd }}
      34             : 
      35           0 : class NS_NO_VTABLE nsIZipWriter : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IZIPWRITER_IID)
      39             : 
      40             :   enum {
      41             :     COMPRESSION_NONE = 0U,
      42             :     COMPRESSION_FASTEST = 1U,
      43             :     COMPRESSION_DEFAULT = 6U,
      44             :     COMPRESSION_BEST = 9U
      45             :   };
      46             : 
      47             :   /* attribute ACString comment; */
      48             :   NS_IMETHOD GetComment(nsACString & aComment) = 0;
      49             :   NS_IMETHOD SetComment(const nsACString & aComment) = 0;
      50             : 
      51             :   /* readonly attribute boolean inQueue; */
      52             :   NS_IMETHOD GetInQueue(bool *aInQueue) = 0;
      53             : 
      54             :   /* readonly attribute nsIFile file; */
      55             :   NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
      56             : 
      57             :   /* void open (in nsIFile aFile, in int32_t aIoFlags); */
      58             :   NS_IMETHOD Open(nsIFile *aFile, int32_t aIoFlags) = 0;
      59             : 
      60             :   /* nsIZipEntry getEntry (in AUTF8String aZipEntry); */
      61             :   NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval) = 0;
      62             : 
      63             :   /* boolean hasEntry (in AUTF8String aZipEntry); */
      64             :   NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval) = 0;
      65             : 
      66             :   /* void addEntryDirectory (in AUTF8String aZipEntry, in PRTime aModTime, in boolean aQueue); */
      67             :   NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) = 0;
      68             : 
      69             :   /* void addEntryFile (in AUTF8String aZipEntry, in int32_t aCompression, in nsIFile aFile, in boolean aQueue); */
      70             :   NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue) = 0;
      71             : 
      72             :   /* void addEntryChannel (in AUTF8String aZipEntry, in PRTime aModTime, in int32_t aCompression, in nsIChannel aChannel, in boolean aQueue); */
      73             :   NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue) = 0;
      74             : 
      75             :   /* void addEntryStream (in AUTF8String aZipEntry, in PRTime aModTime, in int32_t aCompression, in nsIInputStream aStream, in boolean aQueue); */
      76             :   NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue) = 0;
      77             : 
      78             :   /* void removeEntry (in AUTF8String aZipEntry, in boolean aQueue); */
      79             :   NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) = 0;
      80             : 
      81             :   /* void processQueue (in nsIRequestObserver aObserver, in nsISupports aContext); */
      82             :   NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) = 0;
      83             : 
      84             :   /* void close (); */
      85             :   NS_IMETHOD Close(void) = 0;
      86             : 
      87             :   /* void alignStoredFiles (in uint16_t aAlignSize); */
      88             :   NS_IMETHOD AlignStoredFiles(uint16_t aAlignSize) = 0;
      89             : 
      90             : };
      91             : 
      92             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIZipWriter, NS_IZIPWRITER_IID)
      93             : 
      94             : /* Use this macro when declaring classes that implement this interface. */
      95             : #define NS_DECL_NSIZIPWRITER \
      96             :   NS_IMETHOD GetComment(nsACString & aComment) override; \
      97             :   NS_IMETHOD SetComment(const nsACString & aComment) override; \
      98             :   NS_IMETHOD GetInQueue(bool *aInQueue) override; \
      99             :   NS_IMETHOD GetFile(nsIFile * *aFile) override; \
     100             :   NS_IMETHOD Open(nsIFile *aFile, int32_t aIoFlags) override; \
     101             :   NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval) override; \
     102             :   NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval) override; \
     103             :   NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) override; \
     104             :   NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue) override; \
     105             :   NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue) override; \
     106             :   NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue) override; \
     107             :   NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) override; \
     108             :   NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) override; \
     109             :   NS_IMETHOD Close(void) override; \
     110             :   NS_IMETHOD AlignStoredFiles(uint16_t aAlignSize) override; 
     111             : 
     112             : /* Use this macro when declaring the members of this interface when the
     113             :    class doesn't implement the interface. This is useful for forwarding. */
     114             : #define NS_DECL_NON_VIRTUAL_NSIZIPWRITER \
     115             :   nsresult GetComment(nsACString & aComment); \
     116             :   nsresult SetComment(const nsACString & aComment); \
     117             :   nsresult GetInQueue(bool *aInQueue); \
     118             :   nsresult GetFile(nsIFile * *aFile); \
     119             :   nsresult Open(nsIFile *aFile, int32_t aIoFlags); \
     120             :   nsresult GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval); \
     121             :   nsresult HasEntry(const nsACString & aZipEntry, bool *_retval); \
     122             :   nsresult AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue); \
     123             :   nsresult AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue); \
     124             :   nsresult AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue); \
     125             :   nsresult AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue); \
     126             :   nsresult RemoveEntry(const nsACString & aZipEntry, bool aQueue); \
     127             :   nsresult ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext); \
     128             :   nsresult Close(void); \
     129             :   nsresult AlignStoredFiles(uint16_t aAlignSize); 
     130             : 
     131             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     132             : #define NS_FORWARD_NSIZIPWRITER(_to) \
     133             :   NS_IMETHOD GetComment(nsACString & aComment) override { return _to GetComment(aComment); } \
     134             :   NS_IMETHOD SetComment(const nsACString & aComment) override { return _to SetComment(aComment); } \
     135             :   NS_IMETHOD GetInQueue(bool *aInQueue) override { return _to GetInQueue(aInQueue); } \
     136             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return _to GetFile(aFile); } \
     137             :   NS_IMETHOD Open(nsIFile *aFile, int32_t aIoFlags) override { return _to Open(aFile, aIoFlags); } \
     138             :   NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval) override { return _to GetEntry(aZipEntry, _retval); } \
     139             :   NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval) override { return _to HasEntry(aZipEntry, _retval); } \
     140             :   NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) override { return _to AddEntryDirectory(aZipEntry, aModTime, aQueue); } \
     141             :   NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue) override { return _to AddEntryFile(aZipEntry, aCompression, aFile, aQueue); } \
     142             :   NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue) override { return _to AddEntryChannel(aZipEntry, aModTime, aCompression, aChannel, aQueue); } \
     143             :   NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue) override { return _to AddEntryStream(aZipEntry, aModTime, aCompression, aStream, aQueue); } \
     144             :   NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) override { return _to RemoveEntry(aZipEntry, aQueue); } \
     145             :   NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) override { return _to ProcessQueue(aObserver, aContext); } \
     146             :   NS_IMETHOD Close(void) override { return _to Close(); } \
     147             :   NS_IMETHOD AlignStoredFiles(uint16_t aAlignSize) override { return _to AlignStoredFiles(aAlignSize); } 
     148             : 
     149             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     150             : #define NS_FORWARD_SAFE_NSIZIPWRITER(_to) \
     151             :   NS_IMETHOD GetComment(nsACString & aComment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComment(aComment); } \
     152             :   NS_IMETHOD SetComment(const nsACString & aComment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComment(aComment); } \
     153             :   NS_IMETHOD GetInQueue(bool *aInQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInQueue(aInQueue); } \
     154             :   NS_IMETHOD GetFile(nsIFile * *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
     155             :   NS_IMETHOD Open(nsIFile *aFile, int32_t aIoFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aFile, aIoFlags); } \
     156             :   NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntry(aZipEntry, _retval); } \
     157             :   NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEntry(aZipEntry, _retval); } \
     158             :   NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryDirectory(aZipEntry, aModTime, aQueue); } \
     159             :   NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryFile(aZipEntry, aCompression, aFile, aQueue); } \
     160             :   NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryChannel(aZipEntry, aModTime, aCompression, aChannel, aQueue); } \
     161             :   NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryStream(aZipEntry, aModTime, aCompression, aStream, aQueue); } \
     162             :   NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEntry(aZipEntry, aQueue); } \
     163             :   NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessQueue(aObserver, aContext); } \
     164             :   NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
     165             :   NS_IMETHOD AlignStoredFiles(uint16_t aAlignSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AlignStoredFiles(aAlignSize); } 
     166             : 
     167             : #if 0
     168             : /* Use the code below as a template for the implementation class for this interface. */
     169             : 
     170             : /* Header file */
     171             : class nsZipWriter : public nsIZipWriter
     172             : {
     173             : public:
     174             :   NS_DECL_ISUPPORTS
     175             :   NS_DECL_NSIZIPWRITER
     176             : 
     177             :   nsZipWriter();
     178             : 
     179             : private:
     180             :   ~nsZipWriter();
     181             : 
     182             : protected:
     183             :   /* additional members */
     184             : };
     185             : 
     186             : /* Implementation file */
     187             : NS_IMPL_ISUPPORTS(nsZipWriter, nsIZipWriter)
     188             : 
     189             : nsZipWriter::nsZipWriter()
     190             : {
     191             :   /* member initializers and constructor code */
     192             : }
     193             : 
     194             : nsZipWriter::~nsZipWriter()
     195             : {
     196             :   /* destructor code */
     197             : }
     198             : 
     199             : /* attribute ACString comment; */
     200             : NS_IMETHODIMP nsZipWriter::GetComment(nsACString & aComment)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : NS_IMETHODIMP nsZipWriter::SetComment(const nsACString & aComment)
     205             : {
     206             :     return NS_ERROR_NOT_IMPLEMENTED;
     207             : }
     208             : 
     209             : /* readonly attribute boolean inQueue; */
     210             : NS_IMETHODIMP nsZipWriter::GetInQueue(bool *aInQueue)
     211             : {
     212             :     return NS_ERROR_NOT_IMPLEMENTED;
     213             : }
     214             : 
     215             : /* readonly attribute nsIFile file; */
     216             : NS_IMETHODIMP nsZipWriter::GetFile(nsIFile * *aFile)
     217             : {
     218             :     return NS_ERROR_NOT_IMPLEMENTED;
     219             : }
     220             : 
     221             : /* void open (in nsIFile aFile, in int32_t aIoFlags); */
     222             : NS_IMETHODIMP nsZipWriter::Open(nsIFile *aFile, int32_t aIoFlags)
     223             : {
     224             :     return NS_ERROR_NOT_IMPLEMENTED;
     225             : }
     226             : 
     227             : /* nsIZipEntry getEntry (in AUTF8String aZipEntry); */
     228             : NS_IMETHODIMP nsZipWriter::GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval)
     229             : {
     230             :     return NS_ERROR_NOT_IMPLEMENTED;
     231             : }
     232             : 
     233             : /* boolean hasEntry (in AUTF8String aZipEntry); */
     234             : NS_IMETHODIMP nsZipWriter::HasEntry(const nsACString & aZipEntry, bool *_retval)
     235             : {
     236             :     return NS_ERROR_NOT_IMPLEMENTED;
     237             : }
     238             : 
     239             : /* void addEntryDirectory (in AUTF8String aZipEntry, in PRTime aModTime, in boolean aQueue); */
     240             : NS_IMETHODIMP nsZipWriter::AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue)
     241             : {
     242             :     return NS_ERROR_NOT_IMPLEMENTED;
     243             : }
     244             : 
     245             : /* void addEntryFile (in AUTF8String aZipEntry, in int32_t aCompression, in nsIFile aFile, in boolean aQueue); */
     246             : NS_IMETHODIMP nsZipWriter::AddEntryFile(const nsACString & aZipEntry, int32_t aCompression, nsIFile *aFile, bool aQueue)
     247             : {
     248             :     return NS_ERROR_NOT_IMPLEMENTED;
     249             : }
     250             : 
     251             : /* void addEntryChannel (in AUTF8String aZipEntry, in PRTime aModTime, in int32_t aCompression, in nsIChannel aChannel, in boolean aQueue); */
     252             : NS_IMETHODIMP nsZipWriter::AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIChannel *aChannel, bool aQueue)
     253             : {
     254             :     return NS_ERROR_NOT_IMPLEMENTED;
     255             : }
     256             : 
     257             : /* void addEntryStream (in AUTF8String aZipEntry, in PRTime aModTime, in int32_t aCompression, in nsIInputStream aStream, in boolean aQueue); */
     258             : NS_IMETHODIMP nsZipWriter::AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, int32_t aCompression, nsIInputStream *aStream, bool aQueue)
     259             : {
     260             :     return NS_ERROR_NOT_IMPLEMENTED;
     261             : }
     262             : 
     263             : /* void removeEntry (in AUTF8String aZipEntry, in boolean aQueue); */
     264             : NS_IMETHODIMP nsZipWriter::RemoveEntry(const nsACString & aZipEntry, bool aQueue)
     265             : {
     266             :     return NS_ERROR_NOT_IMPLEMENTED;
     267             : }
     268             : 
     269             : /* void processQueue (in nsIRequestObserver aObserver, in nsISupports aContext); */
     270             : NS_IMETHODIMP nsZipWriter::ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext)
     271             : {
     272             :     return NS_ERROR_NOT_IMPLEMENTED;
     273             : }
     274             : 
     275             : /* void close (); */
     276             : NS_IMETHODIMP nsZipWriter::Close()
     277             : {
     278             :     return NS_ERROR_NOT_IMPLEMENTED;
     279             : }
     280             : 
     281             : /* void alignStoredFiles (in uint16_t aAlignSize); */
     282             : NS_IMETHODIMP nsZipWriter::AlignStoredFiles(uint16_t aAlignSize)
     283             : {
     284             :     return NS_ERROR_NOT_IMPLEMENTED;
     285             : }
     286             : 
     287             : /* End of implementation class template. */
     288             : #endif
     289             : 
     290             : 
     291             : #endif /* __gen_nsIZipWriter_h__ */

Generated by: LCOV version 1.13