1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
9 interface nsIPrincipal
;
10 interface nsISDBCloseCallback
;
11 interface nsISDBRequest
;
13 [scriptable
, builtinclass
, uuid(ea420fdd
-548f
-44f9
-9286-59aad6a40f01
)]
14 interface nsISDBConnection
: nsISupports
17 init
(in nsIPrincipal aPrincipal
, [optional] in ACString aPersistenceType
);
19 [must_use
] nsISDBRequest
20 open
(in AString aName
);
22 [must_use
] nsISDBRequest
23 seek
(in unsigned long long offset
);
25 [must_use
] nsISDBRequest
26 read
(in unsigned long long size
);
28 [must_use
, implicit_jscontext
] nsISDBRequest
29 write
(in jsval value
);
31 [must_use
] nsISDBRequest
34 attribute nsISDBCloseCallback closeCallback
;