LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIZipWriter.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/modules/libjar/zipwriter/public/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 "6d4ef074-206c-4649-9884-57bc355864d6"
      30                 : 
      31                 : #define NS_IZIPWRITER_IID \
      32                 :   {0x6d4ef074, 0x206c, 0x4649, \
      33                 :     { 0x98, 0x84, 0x57, 0xbc, 0x35, 0x58, 0x64, 0xd6 }}
      34                 : 
      35             945 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetComment(nsACString & aComment) = 0;
      49                 :   NS_SCRIPTABLE NS_IMETHOD SetComment(const nsACString & aComment) = 0;
      50                 : 
      51                 :   /* readonly attribute boolean inQueue; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetInQueue(bool *aInQueue) = 0;
      53                 : 
      54                 :   /* readonly attribute nsIFile file; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
      56                 : 
      57                 :   /* void open (in nsIFile aFile, in PRInt32 aIoFlags); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *aFile, PRInt32 aIoFlags) = 0;
      59                 : 
      60                 :   /* nsIZipEntry getEntry (in AUTF8String aZipEntry); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* boolean hasEntry (in AUTF8String aZipEntry); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval NS_OUTPARAM) = 0;
      65                 : 
      66                 :   /* void addEntryDirectory (in AUTF8String aZipEntry, in PRTime aModTime, in boolean aQueue); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) = 0;
      68                 : 
      69                 :   /* void addEntryFile (in AUTF8String aZipEntry, in PRInt32 aCompression, in nsIFile aFile, in boolean aQueue); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, PRInt32 aCompression, nsIFile *aFile, bool aQueue) = 0;
      71                 : 
      72                 :   /* void addEntryChannel (in AUTF8String aZipEntry, in PRTime aModTime, in PRInt32 aCompression, in nsIChannel aChannel, in boolean aQueue); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIChannel *aChannel, bool aQueue) = 0;
      74                 : 
      75                 :   /* void addEntryStream (in AUTF8String aZipEntry, in PRTime aModTime, in PRInt32 aCompression, in nsIInputStream aStream, in boolean aQueue); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIInputStream *aStream, bool aQueue) = 0;
      77                 : 
      78                 :   /* void removeEntry (in AUTF8String aZipEntry, in boolean aQueue); */
      79                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) = 0;
      80                 : 
      81                 :   /* void processQueue (in nsIRequestObserver aObserver, in nsISupports aContext); */
      82                 :   NS_SCRIPTABLE NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) = 0;
      83                 : 
      84                 :   /* void close (); */
      85                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
      86                 : 
      87                 : };
      88                 : 
      89                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIZipWriter, NS_IZIPWRITER_IID)
      90                 : 
      91                 : /* Use this macro when declaring classes that implement this interface. */
      92                 : #define NS_DECL_NSIZIPWRITER \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetComment(nsACString & aComment); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD SetComment(const nsACString & aComment); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetInQueue(bool *aInQueue); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *aFile, PRInt32 aIoFlags); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval NS_OUTPARAM); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval NS_OUTPARAM); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, PRInt32 aCompression, nsIFile *aFile, bool aQueue); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIChannel *aChannel, bool aQueue); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIInputStream *aStream, bool aQueue); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD Close(void); 
     107                 : 
     108                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     109                 : #define NS_FORWARD_NSIZIPWRITER(_to) \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetComment(nsACString & aComment) { return _to GetComment(aComment); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD SetComment(const nsACString & aComment) { return _to SetComment(aComment); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetInQueue(bool *aInQueue) { return _to GetInQueue(aInQueue); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return _to GetFile(aFile); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *aFile, PRInt32 aIoFlags) { return _to Open(aFile, aIoFlags); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval NS_OUTPARAM) { return _to GetEntry(aZipEntry, _retval); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval NS_OUTPARAM) { return _to HasEntry(aZipEntry, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) { return _to AddEntryDirectory(aZipEntry, aModTime, aQueue); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, PRInt32 aCompression, nsIFile *aFile, bool aQueue) { return _to AddEntryFile(aZipEntry, aCompression, aFile, aQueue); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIChannel *aChannel, bool aQueue) { return _to AddEntryChannel(aZipEntry, aModTime, aCompression, aChannel, aQueue); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIInputStream *aStream, bool aQueue) { return _to AddEntryStream(aZipEntry, aModTime, aCompression, aStream, aQueue); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) { return _to RemoveEntry(aZipEntry, aQueue); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) { return _to ProcessQueue(aObserver, aContext); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } 
     124                 : 
     125                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     126                 : #define NS_FORWARD_SAFE_NSIZIPWRITER(_to) \
     127                 :   NS_SCRIPTABLE NS_IMETHOD GetComment(nsACString & aComment) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComment(aComment); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD SetComment(const nsACString & aComment) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComment(aComment); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetInQueue(bool *aInQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInQueue(aInQueue); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD Open(nsIFile *aFile, PRInt32 aIoFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aFile, aIoFlags); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntry(aZipEntry, _retval); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD HasEntry(const nsACString & aZipEntry, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEntry(aZipEntry, _retval); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryDirectory(aZipEntry, aModTime, aQueue); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryFile(const nsACString & aZipEntry, PRInt32 aCompression, nsIFile *aFile, bool aQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryFile(aZipEntry, aCompression, aFile, aQueue); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIChannel *aChannel, bool aQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryChannel(aZipEntry, aModTime, aCompression, aChannel, aQueue); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIInputStream *aStream, bool aQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntryStream(aZipEntry, aModTime, aCompression, aStream, aQueue); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEntry(const nsACString & aZipEntry, bool aQueue) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEntry(aZipEntry, aQueue); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessQueue(aObserver, aContext); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } 
     141                 : 
     142                 : #if 0
     143                 : /* Use the code below as a template for the implementation class for this interface. */
     144                 : 
     145                 : /* Header file */
     146                 : class nsZipWriter : public nsIZipWriter
     147                 : {
     148                 : public:
     149                 :   NS_DECL_ISUPPORTS
     150                 :   NS_DECL_NSIZIPWRITER
     151                 : 
     152                 :   nsZipWriter();
     153                 : 
     154                 : private:
     155                 :   ~nsZipWriter();
     156                 : 
     157                 : protected:
     158                 :   /* additional members */
     159                 : };
     160                 : 
     161                 : /* Implementation file */
     162                 : NS_IMPL_ISUPPORTS1(nsZipWriter, nsIZipWriter)
     163                 : 
     164                 : nsZipWriter::nsZipWriter()
     165                 : {
     166                 :   /* member initializers and constructor code */
     167                 : }
     168                 : 
     169                 : nsZipWriter::~nsZipWriter()
     170                 : {
     171                 :   /* destructor code */
     172                 : }
     173                 : 
     174                 : /* attribute ACString comment; */
     175                 : NS_IMETHODIMP nsZipWriter::GetComment(nsACString & aComment)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : NS_IMETHODIMP nsZipWriter::SetComment(const nsACString & aComment)
     180                 : {
     181                 :     return NS_ERROR_NOT_IMPLEMENTED;
     182                 : }
     183                 : 
     184                 : /* readonly attribute boolean inQueue; */
     185                 : NS_IMETHODIMP nsZipWriter::GetInQueue(bool *aInQueue)
     186                 : {
     187                 :     return NS_ERROR_NOT_IMPLEMENTED;
     188                 : }
     189                 : 
     190                 : /* readonly attribute nsIFile file; */
     191                 : NS_IMETHODIMP nsZipWriter::GetFile(nsIFile * *aFile)
     192                 : {
     193                 :     return NS_ERROR_NOT_IMPLEMENTED;
     194                 : }
     195                 : 
     196                 : /* void open (in nsIFile aFile, in PRInt32 aIoFlags); */
     197                 : NS_IMETHODIMP nsZipWriter::Open(nsIFile *aFile, PRInt32 aIoFlags)
     198                 : {
     199                 :     return NS_ERROR_NOT_IMPLEMENTED;
     200                 : }
     201                 : 
     202                 : /* nsIZipEntry getEntry (in AUTF8String aZipEntry); */
     203                 : NS_IMETHODIMP nsZipWriter::GetEntry(const nsACString & aZipEntry, nsIZipEntry * *_retval NS_OUTPARAM)
     204                 : {
     205                 :     return NS_ERROR_NOT_IMPLEMENTED;
     206                 : }
     207                 : 
     208                 : /* boolean hasEntry (in AUTF8String aZipEntry); */
     209                 : NS_IMETHODIMP nsZipWriter::HasEntry(const nsACString & aZipEntry, bool *_retval NS_OUTPARAM)
     210                 : {
     211                 :     return NS_ERROR_NOT_IMPLEMENTED;
     212                 : }
     213                 : 
     214                 : /* void addEntryDirectory (in AUTF8String aZipEntry, in PRTime aModTime, in boolean aQueue); */
     215                 : NS_IMETHODIMP nsZipWriter::AddEntryDirectory(const nsACString & aZipEntry, PRTime aModTime, bool aQueue)
     216                 : {
     217                 :     return NS_ERROR_NOT_IMPLEMENTED;
     218                 : }
     219                 : 
     220                 : /* void addEntryFile (in AUTF8String aZipEntry, in PRInt32 aCompression, in nsIFile aFile, in boolean aQueue); */
     221                 : NS_IMETHODIMP nsZipWriter::AddEntryFile(const nsACString & aZipEntry, PRInt32 aCompression, nsIFile *aFile, bool aQueue)
     222                 : {
     223                 :     return NS_ERROR_NOT_IMPLEMENTED;
     224                 : }
     225                 : 
     226                 : /* void addEntryChannel (in AUTF8String aZipEntry, in PRTime aModTime, in PRInt32 aCompression, in nsIChannel aChannel, in boolean aQueue); */
     227                 : NS_IMETHODIMP nsZipWriter::AddEntryChannel(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIChannel *aChannel, bool aQueue)
     228                 : {
     229                 :     return NS_ERROR_NOT_IMPLEMENTED;
     230                 : }
     231                 : 
     232                 : /* void addEntryStream (in AUTF8String aZipEntry, in PRTime aModTime, in PRInt32 aCompression, in nsIInputStream aStream, in boolean aQueue); */
     233                 : NS_IMETHODIMP nsZipWriter::AddEntryStream(const nsACString & aZipEntry, PRTime aModTime, PRInt32 aCompression, nsIInputStream *aStream, bool aQueue)
     234                 : {
     235                 :     return NS_ERROR_NOT_IMPLEMENTED;
     236                 : }
     237                 : 
     238                 : /* void removeEntry (in AUTF8String aZipEntry, in boolean aQueue); */
     239                 : NS_IMETHODIMP nsZipWriter::RemoveEntry(const nsACString & aZipEntry, bool aQueue)
     240                 : {
     241                 :     return NS_ERROR_NOT_IMPLEMENTED;
     242                 : }
     243                 : 
     244                 : /* void processQueue (in nsIRequestObserver aObserver, in nsISupports aContext); */
     245                 : NS_IMETHODIMP nsZipWriter::ProcessQueue(nsIRequestObserver *aObserver, nsISupports *aContext)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : 
     250                 : /* void close (); */
     251                 : NS_IMETHODIMP nsZipWriter::Close()
     252                 : {
     253                 :     return NS_ERROR_NOT_IMPLEMENTED;
     254                 : }
     255                 : 
     256                 : /* End of implementation class template. */
     257                 : #endif
     258                 : 
     259                 : 
     260                 : #endif /* __gen_nsIZipWriter_h__ */

Generated by: LCOV version 1.7