LCOV - app.info - objdir/dist/include/nsIStructuredCloneContainer.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIStructuredCloneContainer.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 0 | 0.0 %
| Date: | 2012-07-07 | Functions: | 1 | 0 | 0.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/dom/interfaces/base/nsIStructuredCloneContainer.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIStructuredCloneContainer_h__
           6                 : #define __gen_nsIStructuredCloneContainer_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.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                 : class nsIVariant; /* forward declaration */
          20                 :
          21                 : class nsIDocument; /* forward declaration */
          22                 :
          23                 : struct JSContext;
          24                 :
          25                 : /* starting interface:    nsIStructuredCloneContainer */
          26                 : #define NS_ISTRUCTUREDCLONECONTAINER_IID_STR "400a282d-7157-4ed0-85b4-8bdc2fa634cd"
          27                 :
          28                 : #define NS_ISTRUCTUREDCLONECONTAINER_IID \
          29                 :   {0x400a282d, 0x7157, 0x4ed0, \
          30                 :     { 0x85, 0xb4, 0x8b, 0xdc, 0x2f, 0xa6, 0x34, 0xcd }}
          31                 :
          32               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStructuredCloneContainer : public nsISupports {
          33                 :  public:
          34                 :
          35                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRUCTUREDCLONECONTAINER_IID)
          36                 :
          37                 :   /* [implicit_jscontext] void initFromVariant (in nsIVariant aData); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD InitFromVariant(nsIVariant *aData, JSContext* cx) = 0;
          39                 :
          40                 :   /* [implicit_jscontext] void initFromBase64 (in AString aData, in unsigned long aFormatVersion); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD InitFromBase64(const nsAString & aData, PRUint32 aFormatVersion, JSContext* cx) = 0;
          42                 :
          43                 :   /* [implicit_jscontext] nsIVariant deserializeToVariant (); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval NS_OUTPARAM) = 0;
          45                 :
          46                 :   /* AString getDataAsBase64 (); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD GetDataAsBase64(nsAString & _retval NS_OUTPARAM) = 0;
          48                 :
          49                 :   /* readonly attribute unsigned long long serializedNBytes; */
          50                 :   NS_SCRIPTABLE NS_IMETHOD GetSerializedNBytes(PRUint64 *aSerializedNBytes) = 0;
          51                 :
          52                 :   /* readonly attribute unsigned long formatVersion; */
          53                 :   NS_SCRIPTABLE NS_IMETHOD GetFormatVersion(PRUint32 *aFormatVersion) = 0;
          54                 :
          55                 : };
          56                 :
          57                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStructuredCloneContainer, NS_ISTRUCTUREDCLONECONTAINER_IID)
          58                 :
          59                 : /* Use this macro when declaring classes that implement this interface. */
          60                 : #define NS_DECL_NSISTRUCTUREDCLONECONTAINER \
          61                 :   NS_SCRIPTABLE NS_IMETHOD InitFromVariant(nsIVariant *aData, JSContext* cx); \
          62                 :   NS_SCRIPTABLE NS_IMETHOD InitFromBase64(const nsAString & aData, PRUint32 aFormatVersion, JSContext* cx); \
          63                 :   NS_SCRIPTABLE NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval NS_OUTPARAM); \
          64                 :   NS_SCRIPTABLE NS_IMETHOD GetDataAsBase64(nsAString & _retval NS_OUTPARAM); \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetSerializedNBytes(PRUint64 *aSerializedNBytes); \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetFormatVersion(PRUint32 *aFormatVersion);
          67                 :
          68                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          69                 : #define NS_FORWARD_NSISTRUCTUREDCLONECONTAINER(_to) \
          70                 :   NS_SCRIPTABLE NS_IMETHOD InitFromVariant(nsIVariant *aData, JSContext* cx) { return _to InitFromVariant(aData, cx); } \
          71                 :   NS_SCRIPTABLE NS_IMETHOD InitFromBase64(const nsAString & aData, PRUint32 aFormatVersion, JSContext* cx) { return _to InitFromBase64(aData, aFormatVersion, cx); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval NS_OUTPARAM) { return _to DeserializeToVariant(cx, _retval); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetDataAsBase64(nsAString & _retval NS_OUTPARAM) { return _to GetDataAsBase64(_retval); } \
          74                 :   NS_SCRIPTABLE NS_IMETHOD GetSerializedNBytes(PRUint64 *aSerializedNBytes) { return _to GetSerializedNBytes(aSerializedNBytes); } \
          75                 :   NS_SCRIPTABLE NS_IMETHOD GetFormatVersion(PRUint32 *aFormatVersion) { return _to GetFormatVersion(aFormatVersion); }
          76                 :
          77                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          78                 : #define NS_FORWARD_SAFE_NSISTRUCTUREDCLONECONTAINER(_to) \
          79                 :   NS_SCRIPTABLE NS_IMETHOD InitFromVariant(nsIVariant *aData, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitFromVariant(aData, cx); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD InitFromBase64(const nsAString & aData, PRUint32 aFormatVersion, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitFromBase64(aData, aFormatVersion, cx); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeserializeToVariant(cx, _retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetDataAsBase64(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataAsBase64(_retval); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD GetSerializedNBytes(PRUint64 *aSerializedNBytes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerializedNBytes(aSerializedNBytes); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetFormatVersion(PRUint32 *aFormatVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormatVersion(aFormatVersion); }
          85                 :
          86                 : #if 0
          87                 : /* Use the code below as a template for the implementation class for this interface. */
          88                 :
          89                 : /* Header file */
          90                 : class nsStructuredCloneContainer : public nsIStructuredCloneContainer
          91                 : {
          92                 : public:
          93                 :   NS_DECL_ISUPPORTS
          94                 :   NS_DECL_NSISTRUCTUREDCLONECONTAINER
          95                 :
          96                 :   nsStructuredCloneContainer();
          97                 :
          98                 : private:
          99                 :   ~nsStructuredCloneContainer();
         100                 :
         101                 : protected:
         102                 :   /* additional members */
         103                 : };
         104                 :
         105                 : /* Implementation file */
         106                 : NS_IMPL_ISUPPORTS1(nsStructuredCloneContainer, nsIStructuredCloneContainer)
         107                 :
         108                 : nsStructuredCloneContainer::nsStructuredCloneContainer()
         109                 : {
         110                 :   /* member initializers and constructor code */
         111                 : }
         112                 :
         113                 : nsStructuredCloneContainer::~nsStructuredCloneContainer()
         114                 : {
         115                 :   /* destructor code */
         116                 : }
         117                 :
         118                 : /* [implicit_jscontext] void initFromVariant (in nsIVariant aData); */
         119                 : NS_IMETHODIMP nsStructuredCloneContainer::InitFromVariant(nsIVariant *aData, JSContext* cx)
         120                 : {
         121                 :     return NS_ERROR_NOT_IMPLEMENTED;
         122                 : }
         123                 :
         124                 : /* [implicit_jscontext] void initFromBase64 (in AString aData, in unsigned long aFormatVersion); */
         125                 : NS_IMETHODIMP nsStructuredCloneContainer::InitFromBase64(const nsAString & aData, PRUint32 aFormatVersion, JSContext* cx)
         126                 : {
         127                 :     return NS_ERROR_NOT_IMPLEMENTED;
         128                 : }
         129                 :
         130                 : /* [implicit_jscontext] nsIVariant deserializeToVariant (); */
         131                 : NS_IMETHODIMP nsStructuredCloneContainer::DeserializeToVariant(JSContext* cx, nsIVariant * *_retval NS_OUTPARAM)
         132                 : {
         133                 :     return NS_ERROR_NOT_IMPLEMENTED;
         134                 : }
         135                 :
         136                 : /* AString getDataAsBase64 (); */
         137                 : NS_IMETHODIMP nsStructuredCloneContainer::GetDataAsBase64(nsAString & _retval NS_OUTPARAM)
         138                 : {
         139                 :     return NS_ERROR_NOT_IMPLEMENTED;
         140                 : }
         141                 :
         142                 : /* readonly attribute unsigned long long serializedNBytes; */
         143                 : NS_IMETHODIMP nsStructuredCloneContainer::GetSerializedNBytes(PRUint64 *aSerializedNBytes)
         144                 : {
         145                 :     return NS_ERROR_NOT_IMPLEMENTED;
         146                 : }
         147                 :
         148                 : /* readonly attribute unsigned long formatVersion; */
         149                 : NS_IMETHODIMP nsStructuredCloneContainer::GetFormatVersion(PRUint32 *aFormatVersion)
         150                 : {
         151                 :     return NS_ERROR_NOT_IMPLEMENTED;
         152                 : }
         153                 :
         154                 : /* End of implementation class template. */
         155                 : #endif
         156                 :
         157                 :
         158                 : #endif /* __gen_nsIStructuredCloneContainer_h__ */

Generated by: LCOV version 1.7