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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIStorageService_h__
       6             : #define __gen_mozIStorageService_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 mozIStorageConnection; /* forward declaration */
      18             : 
      19             : class nsIFile; /* forward declaration */
      20             : 
      21             : class nsIFileURL; /* forward declaration */
      22             : 
      23             : class nsIPropertyBag2; /* forward declaration */
      24             : 
      25             : class nsIVariant; /* forward declaration */
      26             : 
      27             : class mozIStorageCompletionCallback; /* forward declaration */
      28             : 
      29             : 
      30             : /* starting interface:    mozIStorageService */
      31             : #define MOZISTORAGESERVICE_IID_STR "07b6b2f5-6d97-47b4-9584-e65bc467fe9e"
      32             : 
      33             : #define MOZISTORAGESERVICE_IID \
      34             :   {0x07b6b2f5, 0x6d97, 0x47b4, \
      35             :     { 0x95, 0x84, 0xe6, 0x5b, 0xc4, 0x67, 0xfe, 0x9e }}
      36             : 
      37           1 : class NS_NO_VTABLE mozIStorageService : public nsISupports {
      38             :  public:
      39             : 
      40             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGESERVICE_IID)
      41             : 
      42             :   /* void openAsyncDatabase (in nsIVariant aDatabaseStore, [optional] in nsIPropertyBag2 aOptions, in mozIStorageCompletionCallback aCallback); */
      43             :   NS_IMETHOD OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback) = 0;
      44             : 
      45             :   /* mozIStorageConnection openSpecialDatabase (in string aStorageKey); */
      46             :   NS_IMETHOD OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval) = 0;
      47             : 
      48             :   /* mozIStorageConnection openDatabase (in nsIFile aDatabaseFile); */
      49             :   NS_IMETHOD OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) = 0;
      50             : 
      51             :   /* mozIStorageConnection openUnsharedDatabase (in nsIFile aDatabaseFile); */
      52             :   NS_IMETHOD OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) = 0;
      53             : 
      54             :   /* mozIStorageConnection openDatabaseWithFileURL (in nsIFileURL aFileURL); */
      55             :   NS_IMETHOD OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval) = 0;
      56             : 
      57             :   /* nsIFile backupDatabaseFile (in nsIFile aDBFile, in AString aBackupFileName, [optional] in nsIFile aBackupParentDirectory); */
      58             :   NS_IMETHOD BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageService, MOZISTORAGESERVICE_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_MOZISTORAGESERVICE \
      66             :   NS_IMETHOD OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback) override; \
      67             :   NS_IMETHOD OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval) override; \
      68             :   NS_IMETHOD OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override; \
      69             :   NS_IMETHOD OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override; \
      70             :   NS_IMETHOD OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval) override; \
      71             :   NS_IMETHOD BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval) override; 
      72             : 
      73             : /* Use this macro when declaring the members of this interface when the
      74             :    class doesn't implement the interface. This is useful for forwarding. */
      75             : #define NS_DECL_NON_VIRTUAL_MOZISTORAGESERVICE \
      76             :   nsresult OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback); \
      77             :   nsresult OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval); \
      78             :   nsresult OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval); \
      79             :   nsresult OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval); \
      80             :   nsresult OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval); \
      81             :   nsresult BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval); 
      82             : 
      83             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      84             : #define NS_FORWARD_MOZISTORAGESERVICE(_to) \
      85             :   NS_IMETHOD OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback) override { return _to OpenAsyncDatabase(aDatabaseStore, aOptions, aCallback); } \
      86             :   NS_IMETHOD OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval) override { return _to OpenSpecialDatabase(aStorageKey, _retval); } \
      87             :   NS_IMETHOD OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override { return _to OpenDatabase(aDatabaseFile, _retval); } \
      88             :   NS_IMETHOD OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override { return _to OpenUnsharedDatabase(aDatabaseFile, _retval); } \
      89             :   NS_IMETHOD OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval) override { return _to OpenDatabaseWithFileURL(aFileURL, _retval); } \
      90             :   NS_IMETHOD BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval) override { return _to BackupDatabaseFile(aDBFile, aBackupFileName, aBackupParentDirectory, _retval); } 
      91             : 
      92             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      93             : #define NS_FORWARD_SAFE_MOZISTORAGESERVICE(_to) \
      94             :   NS_IMETHOD OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenAsyncDatabase(aDatabaseStore, aOptions, aCallback); } \
      95             :   NS_IMETHOD OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenSpecialDatabase(aStorageKey, _retval); } \
      96             :   NS_IMETHOD OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenDatabase(aDatabaseFile, _retval); } \
      97             :   NS_IMETHOD OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenUnsharedDatabase(aDatabaseFile, _retval); } \
      98             :   NS_IMETHOD OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenDatabaseWithFileURL(aFileURL, _retval); } \
      99             :   NS_IMETHOD BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BackupDatabaseFile(aDBFile, aBackupFileName, aBackupParentDirectory, _retval); } 
     100             : 
     101             : #if 0
     102             : /* Use the code below as a template for the implementation class for this interface. */
     103             : 
     104             : /* Header file */
     105             : class _MYCLASS_ : public mozIStorageService
     106             : {
     107             : public:
     108             :   NS_DECL_ISUPPORTS
     109             :   NS_DECL_MOZISTORAGESERVICE
     110             : 
     111             :   _MYCLASS_();
     112             : 
     113             : private:
     114             :   ~_MYCLASS_();
     115             : 
     116             : protected:
     117             :   /* additional members */
     118             : };
     119             : 
     120             : /* Implementation file */
     121             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageService)
     122             : 
     123             : _MYCLASS_::_MYCLASS_()
     124             : {
     125             :   /* member initializers and constructor code */
     126             : }
     127             : 
     128             : _MYCLASS_::~_MYCLASS_()
     129             : {
     130             :   /* destructor code */
     131             : }
     132             : 
     133             : /* void openAsyncDatabase (in nsIVariant aDatabaseStore, [optional] in nsIPropertyBag2 aOptions, in mozIStorageCompletionCallback aCallback); */
     134             : NS_IMETHODIMP _MYCLASS_::OpenAsyncDatabase(nsIVariant *aDatabaseStore, nsIPropertyBag2 *aOptions, mozIStorageCompletionCallback *aCallback)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* mozIStorageConnection openSpecialDatabase (in string aStorageKey); */
     140             : NS_IMETHODIMP _MYCLASS_::OpenSpecialDatabase(const char * aStorageKey, mozIStorageConnection * *_retval)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* mozIStorageConnection openDatabase (in nsIFile aDatabaseFile); */
     146             : NS_IMETHODIMP _MYCLASS_::OpenDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* mozIStorageConnection openUnsharedDatabase (in nsIFile aDatabaseFile); */
     152             : NS_IMETHODIMP _MYCLASS_::OpenUnsharedDatabase(nsIFile *aDatabaseFile, mozIStorageConnection * *_retval)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* mozIStorageConnection openDatabaseWithFileURL (in nsIFileURL aFileURL); */
     158             : NS_IMETHODIMP _MYCLASS_::OpenDatabaseWithFileURL(nsIFileURL *aFileURL, mozIStorageConnection * *_retval)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* nsIFile backupDatabaseFile (in nsIFile aDBFile, in AString aBackupFileName, [optional] in nsIFile aBackupParentDirectory); */
     164             : NS_IMETHODIMP _MYCLASS_::BackupDatabaseFile(nsIFile *aDBFile, const nsAString & aBackupFileName, nsIFile *aBackupParentDirectory, nsIFile * *_retval)
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : 
     169             : /* End of implementation class template. */
     170             : #endif
     171             : 
     172             : 
     173             : #define MOZ_STORAGE_MEMORY_STORAGE_KEY    "memory"
     174             : 
     175             : #endif /* __gen_mozIStorageService_h__ */

Generated by: LCOV version 1.13