Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsPIPlacesDatabase.idl
3 : */
4 :
5 : #ifndef __gen_nsPIPlacesDatabase_h__
6 : #define __gen_nsPIPlacesDatabase_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 nsINavHistoryQuery; /* forward declaration */
20 :
21 : class nsINavHistoryQueryOptions; /* forward declaration */
22 :
23 : class mozIStorageStatementCallback; /* forward declaration */
24 :
25 : class mozIStoragePendingStatement; /* forward declaration */
26 :
27 : class nsIAsyncShutdownClient; /* forward declaration */
28 :
29 :
30 : /* starting interface: nsPIPlacesDatabase */
31 : #define NS_PIPLACESDATABASE_IID_STR "366ee63e-a413-477d-9ad6-8d6863e89401"
32 :
33 : #define NS_PIPLACESDATABASE_IID \
34 : {0x366ee63e, 0xa413, 0x477d, \
35 : { 0x9a, 0xd6, 0x8d, 0x68, 0x63, 0xe8, 0x94, 0x01 }}
36 :
37 1 : class NS_NO_VTABLE nsPIPlacesDatabase : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_PIPLACESDATABASE_IID)
41 :
42 : /* readonly attribute mozIStorageConnection DBConnection; */
43 : NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) = 0;
44 :
45 : /* mozIStoragePendingStatement asyncExecuteLegacyQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions aOptions, in mozIStorageStatementCallback aCallback); */
46 : NS_IMETHOD AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) = 0;
47 :
48 : /* readonly attribute nsIAsyncShutdownClient shutdownClient; */
49 : NS_IMETHOD GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient) = 0;
50 :
51 : };
52 :
53 : NS_DEFINE_STATIC_IID_ACCESSOR(nsPIPlacesDatabase, NS_PIPLACESDATABASE_IID)
54 :
55 : /* Use this macro when declaring classes that implement this interface. */
56 : #define NS_DECL_NSPIPLACESDATABASE \
57 : NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override; \
58 : NS_IMETHOD AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override; \
59 : NS_IMETHOD GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient) override;
60 :
61 : /* Use this macro when declaring the members of this interface when the
62 : class doesn't implement the interface. This is useful for forwarding. */
63 : #define NS_DECL_NON_VIRTUAL_NSPIPLACESDATABASE \
64 : nsresult GetDBConnection(mozIStorageConnection * *aDBConnection); \
65 : nsresult AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval); \
66 : nsresult GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient);
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
69 : #define NS_FORWARD_NSPIPLACESDATABASE(_to) \
70 : NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return _to GetDBConnection(aDBConnection); } \
71 : NS_IMETHOD AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return _to AsyncExecuteLegacyQueries(aQueries, aQueryCount, aOptions, aCallback, _retval); } \
72 : NS_IMETHOD GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient) override { return _to GetShutdownClient(aShutdownClient); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSPIPLACESDATABASE(_to) \
76 : NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBConnection(aDBConnection); } \
77 : NS_IMETHOD AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncExecuteLegacyQueries(aQueries, aQueryCount, aOptions, aCallback, _retval); } \
78 : NS_IMETHOD GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShutdownClient(aShutdownClient); }
79 :
80 : #if 0
81 : /* Use the code below as a template for the implementation class for this interface. */
82 :
83 : /* Header file */
84 : class _MYCLASS_ : public nsPIPlacesDatabase
85 : {
86 : public:
87 : NS_DECL_ISUPPORTS
88 : NS_DECL_NSPIPLACESDATABASE
89 :
90 : _MYCLASS_();
91 :
92 : private:
93 : ~_MYCLASS_();
94 :
95 : protected:
96 : /* additional members */
97 : };
98 :
99 : /* Implementation file */
100 : NS_IMPL_ISUPPORTS(_MYCLASS_, nsPIPlacesDatabase)
101 :
102 : _MYCLASS_::_MYCLASS_()
103 : {
104 : /* member initializers and constructor code */
105 : }
106 :
107 : _MYCLASS_::~_MYCLASS_()
108 : {
109 : /* destructor code */
110 : }
111 :
112 : /* readonly attribute mozIStorageConnection DBConnection; */
113 : NS_IMETHODIMP _MYCLASS_::GetDBConnection(mozIStorageConnection * *aDBConnection)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* mozIStoragePendingStatement asyncExecuteLegacyQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions aOptions, in mozIStorageStatementCallback aCallback); */
119 : NS_IMETHODIMP _MYCLASS_::AsyncExecuteLegacyQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *aOptions, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* readonly attribute nsIAsyncShutdownClient shutdownClient; */
125 : NS_IMETHODIMP _MYCLASS_::GetShutdownClient(nsIAsyncShutdownClient * *aShutdownClient)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* End of implementation class template. */
131 : #endif
132 :
133 :
134 : #endif /* __gen_nsPIPlacesDatabase_h__ */
|