root/dwt/internal/mozilla/nsIDOMStorage.d

Revision 327:b0d7eb5bd76c, 0.9 kB (checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win

Line 
1 module dwt.internal.mozilla.nsIDOMStorage;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 import dwt.internal.mozilla.nsStringAPI;
8 import dwt.internal.mozilla.nsIDOMStorageItem;
9
10 alias PRUint64 DOMTimeStamp;
11
12 const char[] NS_IDOMSTORAGE_IID_STR = "95cc1383-3b62-4b89-aaef-1004a513ef47";
13
14 const nsIID NS_IDOMSTORAGE_IID=
15   {0x95cc1383, 0x3b62, 0x4b89,
16     [ 0xaa, 0xef, 0x10, 0x04, 0xa5, 0x13, 0xef, 0x47 ]};
17
18 interface nsIDOMStorage : nsISupports {
19
20   static const char[] IID_STR = NS_IDOMSTORAGE_IID_STR;
21   static const nsIID IID = NS_IDOMSTORAGE_IID;
22
23 extern(System):
24   nsresult GetLength(PRUint32 *aLength);
25   nsresult Key(PRUint32 index, nsAString * _retval);
26   nsresult GetItem(nsAString * key, nsIDOMStorageItem *_retval);
27   nsresult SetItem(nsAString * key, nsAString * data);
28   nsresult RemoveItem(nsAString * key);
29
30 }
Note: See TracBrowser for help on using the browser.