michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=2 sts=2 michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface mozIStorageConnection; michael@0: interface nsINavHistoryQuery; michael@0: interface nsINavHistoryQueryOptions; michael@0: interface mozIStorageStatementCallback; michael@0: interface mozIStoragePendingStatement; michael@0: michael@0: /** michael@0: * This is a private interface used by Places components to get access to the michael@0: * database. If outside consumers wish to use this, they should only read from michael@0: * the database so they do not break any internal invariants. michael@0: */ michael@0: [scriptable, uuid(6eb7ed3d-13ca-450b-b370-15c75e2f3dab)] michael@0: interface nsPIPlacesDatabase : nsISupports michael@0: { michael@0: /** michael@0: * The database connection used by Places. michael@0: */ michael@0: readonly attribute mozIStorageConnection DBConnection; michael@0: michael@0: /** michael@0: * Asynchronously executes the statement created from queries. michael@0: * michael@0: * @see nsINavHistoryService::executeQueries michael@0: * @note THIS IS A TEMPORARY API. Don't rely on it, since it will be replaced michael@0: * in future versions by a real async querying API. michael@0: * @note Results obtained from this method differ from results obtained from michael@0: * executeQueries, because there is additional filtering and sorting michael@0: * done by the latter. Thus you should use executeQueries, unless you michael@0: * are absolutely sure that the returned results are fine for michael@0: * your use-case. michael@0: */ michael@0: mozIStoragePendingStatement asyncExecuteLegacyQueries( michael@0: [array, size_is(aQueryCount)] in nsINavHistoryQuery aQueries, michael@0: in unsigned long aQueryCount, michael@0: in nsINavHistoryQueryOptions aOptions, michael@0: in mozIStorageStatementCallback aCallback); michael@0: };