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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIDOMFile.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMFile_h__
       6                 : #define __gen_nsIDOMFile_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.h"
      11                 : #endif
      12                 : 
      13                 : #include "jspubtd.h"
      14                 : 
      15                 : /* For IDL files that don't want to include root IDL files. */
      16                 : #ifndef NS_NO_VTABLE
      17                 : #define NS_NO_VTABLE
      18                 : #endif
      19                 : #include "jsapi.h"
      20                 : namespace mozilla {
      21                 : namespace dom {
      22                 : namespace indexedDB {
      23                 : class FileInfo;
      24                 : class FileManager;
      25                 : }
      26                 : }
      27                 : }
      28                 : class nsIDOMFileError; /* forward declaration */
      29                 : 
      30                 : class nsIInputStream; /* forward declaration */
      31                 : 
      32                 : class nsIURI; /* forward declaration */
      33                 : 
      34                 : class nsIPrincipal; /* forward declaration */
      35                 : 
      36                 : class nsIDOMBlob; /* forward declaration */
      37                 : 
      38                 : 
      39                 : /* starting interface:    nsIDOMBlob */
      40                 : #define NS_IDOMBLOB_IID_STR "f62c6887-e3bc-495a-802c-287e12e969a0"
      41                 : 
      42                 : #define NS_IDOMBLOB_IID \
      43                 :   {0xf62c6887, 0xe3bc, 0x495a, \
      44                 :     { 0x80, 0x2c, 0x28, 0x7e, 0x12, 0xe9, 0x69, 0xa0 }}
      45                 : 
      46              10 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMBlob : public nsISupports {
      47                 :  public: 
      48                 : 
      49                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMBLOB_IID)
      50                 : 
      51                 :   /* readonly attribute unsigned long long size; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint64 *aSize) = 0;
      53                 : 
      54                 :   /* readonly attribute DOMString type; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
      56                 : 
      57                 :   /* [noscript] readonly attribute nsIInputStream internalStream; */
      58                 :   NS_IMETHOD GetInternalStream(nsIInputStream * *aInternalStream) = 0;
      59                 : 
      60                 :   /* [noscript] DOMString getInternalUrl (in nsIPrincipal principal); */
      61                 :   NS_IMETHOD GetInternalUrl(nsIPrincipal *principal, nsAString & _retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* [optional_argc] nsIDOMBlob slice ([optional] in long long start, [optional] in long long end, [optional] in DOMString contentType); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD Slice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) = 0;
      65                 : 
      66                 :   /* [notxpcom] long long getFileId (); */
      67                 :   NS_IMETHOD_(PRInt64) GetFileId(void) = 0;
      68                 : 
      69                 :   /* [notxpcom] void addFileInfo (in FileInfo aFileInfo); */
      70                 :   NS_IMETHOD_(void) AddFileInfo(mozilla::dom::indexedDB::FileInfo *aFileInfo) = 0;
      71                 : 
      72                 :   /* [notxpcom] FileInfo getFileInfo (in FileManager aFileManager); */
      73                 :   NS_IMETHOD_(mozilla::dom::indexedDB::FileInfo *) GetFileInfo(mozilla::dom::indexedDB::FileManager *aFileManager) = 0;
      74                 : 
      75                 : };
      76                 : 
      77                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMBlob, NS_IDOMBLOB_IID)
      78                 : 
      79                 : /* Use this macro when declaring classes that implement this interface. */
      80                 : #define NS_DECL_NSIDOMBLOB \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint64 *aSize); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
      83                 :   NS_IMETHOD GetInternalStream(nsIInputStream * *aInternalStream); \
      84                 :   NS_IMETHOD GetInternalUrl(nsIPrincipal *principal, nsAString & _retval NS_OUTPARAM); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD Slice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM); \
      86                 :   NS_IMETHOD_(PRInt64) GetFileId(void); \
      87                 :   NS_IMETHOD_(void) AddFileInfo(mozilla::dom::indexedDB::FileInfo *aFileInfo); \
      88                 :   NS_IMETHOD_(mozilla::dom::indexedDB::FileInfo *) GetFileInfo(mozilla::dom::indexedDB::FileManager *aFileManager); 
      89                 : 
      90                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      91                 : #define NS_FORWARD_NSIDOMBLOB(_to) \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint64 *aSize) { return _to GetSize(aSize); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
      94                 :   NS_IMETHOD GetInternalStream(nsIInputStream * *aInternalStream) { return _to GetInternalStream(aInternalStream); } \
      95                 :   NS_IMETHOD GetInternalUrl(nsIPrincipal *principal, nsAString & _retval NS_OUTPARAM) { return _to GetInternalUrl(principal, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD Slice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) { return _to Slice(start, end, contentType, _argc, _retval); } \
      97                 :   NS_IMETHOD_(PRInt64) GetFileId(void) { return _to GetFileId(); } \
      98                 :   NS_IMETHOD_(void) AddFileInfo(mozilla::dom::indexedDB::FileInfo *aFileInfo) { return _to AddFileInfo(aFileInfo); } \
      99                 :   NS_IMETHOD_(mozilla::dom::indexedDB::FileInfo *) GetFileInfo(mozilla::dom::indexedDB::FileManager *aFileManager) { return _to GetFileInfo(aFileManager); } 
     100                 : 
     101                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     102                 : #define NS_FORWARD_SAFE_NSIDOMBLOB(_to) \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint64 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     105                 :   NS_IMETHOD GetInternalStream(nsIInputStream * *aInternalStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalStream(aInternalStream); } \
     106                 :   NS_IMETHOD GetInternalUrl(nsIPrincipal *principal, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalUrl(principal, _retval); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD Slice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Slice(start, end, contentType, _argc, _retval); } \
     108                 :   NS_IMETHOD_(PRInt64) GetFileId(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileId(); } \
     109                 :   NS_IMETHOD_(void) AddFileInfo(mozilla::dom::indexedDB::FileInfo *aFileInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFileInfo(aFileInfo); } \
     110                 :   NS_IMETHOD_(mozilla::dom::indexedDB::FileInfo *) GetFileInfo(mozilla::dom::indexedDB::FileManager *aFileManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileInfo(aFileManager); } 
     111                 : 
     112                 : #if 0
     113                 : /* Use the code below as a template for the implementation class for this interface. */
     114                 : 
     115                 : /* Header file */
     116                 : class nsDOMBlob : public nsIDOMBlob
     117                 : {
     118                 : public:
     119                 :   NS_DECL_ISUPPORTS
     120                 :   NS_DECL_NSIDOMBLOB
     121                 : 
     122                 :   nsDOMBlob();
     123                 : 
     124                 : private:
     125                 :   ~nsDOMBlob();
     126                 : 
     127                 : protected:
     128                 :   /* additional members */
     129                 : };
     130                 : 
     131                 : /* Implementation file */
     132                 : NS_IMPL_ISUPPORTS1(nsDOMBlob, nsIDOMBlob)
     133                 : 
     134                 : nsDOMBlob::nsDOMBlob()
     135                 : {
     136                 :   /* member initializers and constructor code */
     137                 : }
     138                 : 
     139                 : nsDOMBlob::~nsDOMBlob()
     140                 : {
     141                 :   /* destructor code */
     142                 : }
     143                 : 
     144                 : /* readonly attribute unsigned long long size; */
     145                 : NS_IMETHODIMP nsDOMBlob::GetSize(PRUint64 *aSize)
     146                 : {
     147                 :     return NS_ERROR_NOT_IMPLEMENTED;
     148                 : }
     149                 : 
     150                 : /* readonly attribute DOMString type; */
     151                 : NS_IMETHODIMP nsDOMBlob::GetType(nsAString & aType)
     152                 : {
     153                 :     return NS_ERROR_NOT_IMPLEMENTED;
     154                 : }
     155                 : 
     156                 : /* [noscript] readonly attribute nsIInputStream internalStream; */
     157                 : NS_IMETHODIMP nsDOMBlob::GetInternalStream(nsIInputStream * *aInternalStream)
     158                 : {
     159                 :     return NS_ERROR_NOT_IMPLEMENTED;
     160                 : }
     161                 : 
     162                 : /* [noscript] DOMString getInternalUrl (in nsIPrincipal principal); */
     163                 : NS_IMETHODIMP nsDOMBlob::GetInternalUrl(nsIPrincipal *principal, nsAString & _retval NS_OUTPARAM)
     164                 : {
     165                 :     return NS_ERROR_NOT_IMPLEMENTED;
     166                 : }
     167                 : 
     168                 : /* [optional_argc] nsIDOMBlob slice ([optional] in long long start, [optional] in long long end, [optional] in DOMString contentType); */
     169                 : NS_IMETHODIMP nsDOMBlob::Slice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM)
     170                 : {
     171                 :     return NS_ERROR_NOT_IMPLEMENTED;
     172                 : }
     173                 : 
     174                 : /* [notxpcom] long long getFileId (); */
     175                 : NS_IMETHODIMP_(PRInt64) nsDOMBlob::GetFileId()
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* [notxpcom] void addFileInfo (in FileInfo aFileInfo); */
     181                 : NS_IMETHODIMP_(void) nsDOMBlob::AddFileInfo(mozilla::dom::indexedDB::FileInfo *aFileInfo)
     182                 : {
     183                 :     return NS_ERROR_NOT_IMPLEMENTED;
     184                 : }
     185                 : 
     186                 : /* [notxpcom] FileInfo getFileInfo (in FileManager aFileManager); */
     187                 : NS_IMETHODIMP_(mozilla::dom::indexedDB::FileInfo *) nsDOMBlob::GetFileInfo(mozilla::dom::indexedDB::FileManager *aFileManager)
     188                 : {
     189                 :     return NS_ERROR_NOT_IMPLEMENTED;
     190                 : }
     191                 : 
     192                 : /* End of implementation class template. */
     193                 : #endif
     194                 : 
     195                 : 
     196                 : /* starting interface:    nsIDOMBlob_GECKO_13 */
     197                 : #define NS_IDOMBLOB_GECKO_13_IID_STR "96a9f6f5-2353-47a3-9bf5-4b1e0fe11c08"
     198                 : 
     199                 : #define NS_IDOMBLOB_GECKO_13_IID \
     200                 :   {0x96a9f6f5, 0x2353, 0x47a3, \
     201                 :     { 0x9b, 0xf5, 0x4b, 0x1e, 0x0f, 0xe1, 0x1c, 0x08 }}
     202                 : 
     203              10 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMBlob_GECKO_13 : public nsISupports {
     204                 :  public: 
     205                 : 
     206                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMBLOB_GECKO_13_IID)
     207                 : 
     208                 :   /* [optional_argc] nsIDOMBlob mozSlice ([optional] in long long start, [optional] in long long end, [optional] in DOMString contentType); */
     209                 :   NS_SCRIPTABLE NS_IMETHOD MozSlice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) = 0;
     210                 : 
     211                 : };
     212                 : 
     213                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMBlob_GECKO_13, NS_IDOMBLOB_GECKO_13_IID)
     214                 : 
     215                 : /* Use this macro when declaring classes that implement this interface. */
     216                 : #define NS_DECL_NSIDOMBLOB_GECKO_13 \
     217                 :   NS_SCRIPTABLE NS_IMETHOD MozSlice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM); 
     218                 : 
     219                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     220                 : #define NS_FORWARD_NSIDOMBLOB_GECKO_13(_to) \
     221                 :   NS_SCRIPTABLE NS_IMETHOD MozSlice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) { return _to MozSlice(start, end, contentType, _argc, _retval); } 
     222                 : 
     223                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     224                 : #define NS_FORWARD_SAFE_NSIDOMBLOB_GECKO_13(_to) \
     225                 :   NS_SCRIPTABLE NS_IMETHOD MozSlice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozSlice(start, end, contentType, _argc, _retval); } 
     226                 : 
     227                 : #if 0
     228                 : /* Use the code below as a template for the implementation class for this interface. */
     229                 : 
     230                 : /* Header file */
     231                 : class nsDOMBlob_GECKO_13 : public nsIDOMBlob_GECKO_13
     232                 : {
     233                 : public:
     234                 :   NS_DECL_ISUPPORTS
     235                 :   NS_DECL_NSIDOMBLOB_GECKO_13
     236                 : 
     237                 :   nsDOMBlob_GECKO_13();
     238                 : 
     239                 : private:
     240                 :   ~nsDOMBlob_GECKO_13();
     241                 : 
     242                 : protected:
     243                 :   /* additional members */
     244                 : };
     245                 : 
     246                 : /* Implementation file */
     247                 : NS_IMPL_ISUPPORTS1(nsDOMBlob_GECKO_13, nsIDOMBlob_GECKO_13)
     248                 : 
     249                 : nsDOMBlob_GECKO_13::nsDOMBlob_GECKO_13()
     250                 : {
     251                 :   /* member initializers and constructor code */
     252                 : }
     253                 : 
     254                 : nsDOMBlob_GECKO_13::~nsDOMBlob_GECKO_13()
     255                 : {
     256                 :   /* destructor code */
     257                 : }
     258                 : 
     259                 : /* [optional_argc] nsIDOMBlob mozSlice ([optional] in long long start, [optional] in long long end, [optional] in DOMString contentType); */
     260                 : NS_IMETHODIMP nsDOMBlob_GECKO_13::MozSlice(PRInt64 start, PRInt64 end, const nsAString & contentType, PRUint8 _argc, nsIDOMBlob * *_retval NS_OUTPARAM)
     261                 : {
     262                 :     return NS_ERROR_NOT_IMPLEMENTED;
     263                 : }
     264                 : 
     265                 : /* End of implementation class template. */
     266                 : #endif
     267                 : 
     268                 : 
     269                 : /* starting interface:    nsIDOMFile */
     270                 : #define NS_IDOMFILE_IID_STR "b096ef67-7b77-47f8-8e70-5d8ee36416bf"
     271                 : 
     272                 : #define NS_IDOMFILE_IID \
     273                 :   {0xb096ef67, 0x7b77, 0x47f8, \
     274                 :     { 0x8e, 0x70, 0x5d, 0x8e, 0xe3, 0x64, 0x16, 0xbf }}
     275                 : 
     276              10 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMFile : public nsIDOMBlob {
     277                 :  public: 
     278                 : 
     279                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMFILE_IID)
     280                 : 
     281                 :   /* readonly attribute DOMString name; */
     282                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
     283                 : 
     284                 :   /* readonly attribute DOMString mozFullPath; */
     285                 :   NS_SCRIPTABLE NS_IMETHOD GetMozFullPath(nsAString & aMozFullPath) = 0;
     286                 : 
     287                 :   /* [noscript] readonly attribute DOMString mozFullPathInternal; */
     288                 :   NS_IMETHOD GetMozFullPathInternal(nsAString & aMozFullPathInternal) = 0;
     289                 : 
     290                 : };
     291                 : 
     292                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMFile, NS_IDOMFILE_IID)
     293                 : 
     294                 : /* Use this macro when declaring classes that implement this interface. */
     295                 : #define NS_DECL_NSIDOMFILE \
     296                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
     297                 :   NS_SCRIPTABLE NS_IMETHOD GetMozFullPath(nsAString & aMozFullPath); \
     298                 :   NS_IMETHOD GetMozFullPathInternal(nsAString & aMozFullPathInternal); 
     299                 : 
     300                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     301                 : #define NS_FORWARD_NSIDOMFILE(_to) \
     302                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
     303                 :   NS_SCRIPTABLE NS_IMETHOD GetMozFullPath(nsAString & aMozFullPath) { return _to GetMozFullPath(aMozFullPath); } \
     304                 :   NS_IMETHOD GetMozFullPathInternal(nsAString & aMozFullPathInternal) { return _to GetMozFullPathInternal(aMozFullPathInternal); } 
     305                 : 
     306                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     307                 : #define NS_FORWARD_SAFE_NSIDOMFILE(_to) \
     308                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     309                 :   NS_SCRIPTABLE NS_IMETHOD GetMozFullPath(nsAString & aMozFullPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFullPath(aMozFullPath); } \
     310                 :   NS_IMETHOD GetMozFullPathInternal(nsAString & aMozFullPathInternal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFullPathInternal(aMozFullPathInternal); } 
     311                 : 
     312                 : #if 0
     313                 : /* Use the code below as a template for the implementation class for this interface. */
     314                 : 
     315                 : /* Header file */
     316                 : class nsDOMFile : public nsIDOMFile
     317                 : {
     318                 : public:
     319                 :   NS_DECL_ISUPPORTS
     320                 :   NS_DECL_NSIDOMFILE
     321                 : 
     322                 :   nsDOMFile();
     323                 : 
     324                 : private:
     325                 :   ~nsDOMFile();
     326                 : 
     327                 : protected:
     328                 :   /* additional members */
     329                 : };
     330                 : 
     331                 : /* Implementation file */
     332                 : NS_IMPL_ISUPPORTS1(nsDOMFile, nsIDOMFile)
     333                 : 
     334                 : nsDOMFile::nsDOMFile()
     335                 : {
     336                 :   /* member initializers and constructor code */
     337                 : }
     338                 : 
     339                 : nsDOMFile::~nsDOMFile()
     340                 : {
     341                 :   /* destructor code */
     342                 : }
     343                 : 
     344                 : /* readonly attribute DOMString name; */
     345                 : NS_IMETHODIMP nsDOMFile::GetName(nsAString & aName)
     346                 : {
     347                 :     return NS_ERROR_NOT_IMPLEMENTED;
     348                 : }
     349                 : 
     350                 : /* readonly attribute DOMString mozFullPath; */
     351                 : NS_IMETHODIMP nsDOMFile::GetMozFullPath(nsAString & aMozFullPath)
     352                 : {
     353                 :     return NS_ERROR_NOT_IMPLEMENTED;
     354                 : }
     355                 : 
     356                 : /* [noscript] readonly attribute DOMString mozFullPathInternal; */
     357                 : NS_IMETHODIMP nsDOMFile::GetMozFullPathInternal(nsAString & aMozFullPathInternal)
     358                 : {
     359                 :     return NS_ERROR_NOT_IMPLEMENTED;
     360                 : }
     361                 : 
     362                 : /* End of implementation class template. */
     363                 : #endif
     364                 : 
     365                 : 
     366                 : /* starting interface:    nsIDOMMozBlobBuilder */
     367                 : #define NS_IDOMMOZBLOBBUILDER_IID_STR "57195950-edd9-496b-9b45-e4893a9ffca9"
     368                 : 
     369                 : #define NS_IDOMMOZBLOBBUILDER_IID \
     370                 :   {0x57195950, 0xedd9, 0x496b, \
     371                 :     { 0x9b, 0x45, 0xe4, 0x89, 0x3a, 0x9f, 0xfc, 0xa9 }}
     372                 : 
     373               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozBlobBuilder : public nsISupports {
     374                 :  public: 
     375                 : 
     376                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZBLOBBUILDER_IID)
     377                 : 
     378                 :   /* nsIDOMBlob getBlob ([optional] in DOMString contentType); */
     379                 :   NS_SCRIPTABLE NS_IMETHOD GetBlob(const nsAString & contentType, nsIDOMBlob * *_retval NS_OUTPARAM) = 0;
     380                 : 
     381                 :   /* nsIDOMFile getFile (in DOMString name, [optional] in DOMString contentType); */
     382                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const nsAString & name, const nsAString & contentType, nsIDOMFile * *_retval NS_OUTPARAM) = 0;
     383                 : 
     384                 :   /* [implicit_jscontext] void append (in jsval data, [optional] in DOMString endings); */
     385                 :   NS_SCRIPTABLE NS_IMETHOD Append(const JS::Value & data, const nsAString & endings, JSContext* cx) = 0;
     386                 : 
     387                 : };
     388                 : 
     389                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozBlobBuilder, NS_IDOMMOZBLOBBUILDER_IID)
     390                 : 
     391                 : /* Use this macro when declaring classes that implement this interface. */
     392                 : #define NS_DECL_NSIDOMMOZBLOBBUILDER \
     393                 :   NS_SCRIPTABLE NS_IMETHOD GetBlob(const nsAString & contentType, nsIDOMBlob * *_retval NS_OUTPARAM); \
     394                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const nsAString & name, const nsAString & contentType, nsIDOMFile * *_retval NS_OUTPARAM); \
     395                 :   NS_SCRIPTABLE NS_IMETHOD Append(const JS::Value & data, const nsAString & endings, JSContext* cx); 
     396                 : 
     397                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     398                 : #define NS_FORWARD_NSIDOMMOZBLOBBUILDER(_to) \
     399                 :   NS_SCRIPTABLE NS_IMETHOD GetBlob(const nsAString & contentType, nsIDOMBlob * *_retval NS_OUTPARAM) { return _to GetBlob(contentType, _retval); } \
     400                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const nsAString & name, const nsAString & contentType, nsIDOMFile * *_retval NS_OUTPARAM) { return _to GetFile(name, contentType, _retval); } \
     401                 :   NS_SCRIPTABLE NS_IMETHOD Append(const JS::Value & data, const nsAString & endings, JSContext* cx) { return _to Append(data, endings, cx); } 
     402                 : 
     403                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     404                 : #define NS_FORWARD_SAFE_NSIDOMMOZBLOBBUILDER(_to) \
     405                 :   NS_SCRIPTABLE NS_IMETHOD GetBlob(const nsAString & contentType, nsIDOMBlob * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlob(contentType, _retval); } \
     406                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(const nsAString & name, const nsAString & contentType, nsIDOMFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(name, contentType, _retval); } \
     407                 :   NS_SCRIPTABLE NS_IMETHOD Append(const JS::Value & data, const nsAString & endings, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->Append(data, endings, cx); } 
     408                 : 
     409                 : #if 0
     410                 : /* Use the code below as a template for the implementation class for this interface. */
     411                 : 
     412                 : /* Header file */
     413                 : class nsDOMMozBlobBuilder : public nsIDOMMozBlobBuilder
     414                 : {
     415                 : public:
     416                 :   NS_DECL_ISUPPORTS
     417                 :   NS_DECL_NSIDOMMOZBLOBBUILDER
     418                 : 
     419                 :   nsDOMMozBlobBuilder();
     420                 : 
     421                 : private:
     422                 :   ~nsDOMMozBlobBuilder();
     423                 : 
     424                 : protected:
     425                 :   /* additional members */
     426                 : };
     427                 : 
     428                 : /* Implementation file */
     429                 : NS_IMPL_ISUPPORTS1(nsDOMMozBlobBuilder, nsIDOMMozBlobBuilder)
     430                 : 
     431                 : nsDOMMozBlobBuilder::nsDOMMozBlobBuilder()
     432                 : {
     433                 :   /* member initializers and constructor code */
     434                 : }
     435                 : 
     436                 : nsDOMMozBlobBuilder::~nsDOMMozBlobBuilder()
     437                 : {
     438                 :   /* destructor code */
     439                 : }
     440                 : 
     441                 : /* nsIDOMBlob getBlob ([optional] in DOMString contentType); */
     442                 : NS_IMETHODIMP nsDOMMozBlobBuilder::GetBlob(const nsAString & contentType, nsIDOMBlob * *_retval NS_OUTPARAM)
     443                 : {
     444                 :     return NS_ERROR_NOT_IMPLEMENTED;
     445                 : }
     446                 : 
     447                 : /* nsIDOMFile getFile (in DOMString name, [optional] in DOMString contentType); */
     448                 : NS_IMETHODIMP nsDOMMozBlobBuilder::GetFile(const nsAString & name, const nsAString & contentType, nsIDOMFile * *_retval NS_OUTPARAM)
     449                 : {
     450                 :     return NS_ERROR_NOT_IMPLEMENTED;
     451                 : }
     452                 : 
     453                 : /* [implicit_jscontext] void append (in jsval data, [optional] in DOMString endings); */
     454                 : NS_IMETHODIMP nsDOMMozBlobBuilder::Append(const JS::Value & data, const nsAString & endings, JSContext* cx)
     455                 : {
     456                 :     return NS_ERROR_NOT_IMPLEMENTED;
     457                 : }
     458                 : 
     459                 : /* End of implementation class template. */
     460                 : #endif
     461                 : 
     462                 : 
     463                 : #endif /* __gen_nsIDOMFile_h__ */

Generated by: LCOV version 1.7