DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/storage/mozIStorageBaseStatement.idl
 */

#ifndef __gen_mozIStorageBaseStatement_h__
#define __gen_mozIStorageBaseStatement_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_mozIStorageBindingParams_h__
#include "mozIStorageBindingParams.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class mozIStorageConnection; /* forward declaration */

class mozIStorageStatementCallback; /* forward declaration */

class mozIStoragePendingStatement; /* forward declaration */

class mozIStorageBindingParams; /* forward declaration */

class mozIStorageBindingParamsArray; /* forward declaration */


/* starting interface:    mozIStorageBaseStatement */
#define MOZISTORAGEBASESTATEMENT_IID_STR "16ca67aa-1325-43e2-aac7-859afd1590b2"

#define MOZISTORAGEBASESTATEMENT_IID \
  {0x16ca67aa, 0x1325, 0x43e2, \
    { 0xaa, 0xc7, 0x85, 0x9a, 0xfd, 0x15, 0x90, 0xb2 }}

class NS_NO_VTABLE mozIStorageBaseStatement : public mozIStorageBindingParams {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEBASESTATEMENT_IID)

  /* void finalize (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Finalize(void) = 0;

  /* void bindParameters (in mozIStorageBindingParamsArray aParameters); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) = 0;

  /* mozIStorageBindingParamsArray newBindingParamsArray (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray **_retval) = 0;

  /* mozIStoragePendingStatement executeAsync ([optional] in mozIStorageStatementCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement **_retval) = 0;

  enum {
    MOZ_STORAGE_STATEMENT_INVALID = 0,
    MOZ_STORAGE_STATEMENT_READY = 1,
    MOZ_STORAGE_STATEMENT_EXECUTING = 2
  };

  /* readonly attribute long state; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(int32_t *aState) = 0;

  /* AString escapeStringForLIKE (in AString aValue, in wchar aEscapeChar); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EscapeStringForLIKE(const nsAString& aValue, char16_t aEscapeChar, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageBaseStatement, MOZISTORAGEBASESTATEMENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZISTORAGEBASESTATEMENT \
  NS_IMETHOD Finalize(void) override; \
  NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) override; \
  NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray **_retval) override; \
  NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement **_retval) override; \
  NS_IMETHOD GetState(int32_t *aState) override; \
  NS_IMETHOD EscapeStringForLIKE(const nsAString& aValue, char16_t aEscapeChar, nsAString& _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_MOZISTORAGEBASESTATEMENT \
  nsresult Finalize(void); \
  nsresult BindParameters(mozIStorageBindingParamsArray *aParameters); \
  nsresult NewBindingParamsArray(mozIStorageBindingParamsArray **_retval); \
  nsresult ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement **_retval); \
  nsresult GetState(int32_t *aState); \
  nsresult EscapeStringForLIKE(const nsAString& aValue, char16_t aEscapeChar, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZISTORAGEBASESTATEMENT(_to) \
  NS_IMETHOD Finalize(void) override { return _to Finalize(); } \
  NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) override { return _to BindParameters(aParameters); } \
  NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray **_retval) override { return _to NewBindingParamsArray(_retval); } \
  NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement **_retval) override { return _to ExecuteAsync(aCallback, _retval); } \
  NS_IMETHOD GetState(int32_t *aState) override { return _to GetState(aState); } \
  NS_IMETHOD EscapeStringForLIKE(const nsAString& aValue, char16_t aEscapeChar, nsAString& _retval) override { return _to EscapeStringForLIKE(aValue, aEscapeChar, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZISTORAGEBASESTATEMENT(_to) \
  NS_IMETHOD Finalize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Finalize(); } \
  NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BindParameters(aParameters); } \
  NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewBindingParamsArray(_retval); } \
  NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteAsync(aCallback, _retval); } \
  NS_IMETHOD GetState(int32_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  NS_IMETHOD EscapeStringForLIKE(const nsAString& aValue, char16_t aEscapeChar, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EscapeStringForLIKE(aValue, aEscapeChar, _retval); } 


#endif /* __gen_mozIStorageBaseStatement_h__ */