Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=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/. */
6 :
7 : #ifndef nsProperties_h___
8 : #define nsProperties_h___
9 :
10 : #include "nsIProperties.h"
11 : #include "nsInterfaceHashtable.h"
12 : #include "nsHashKeys.h"
13 : #include "nsAgg.h"
14 : #include "mozilla/Attributes.h"
15 :
16 : #define NS_PROPERTIES_CID \
17 : { /* 4de2bc90-b1bf-11d3-93b6-00104ba0fd40 */ \
18 : 0x4de2bc90, \
19 : 0xb1bf, \
20 : 0x11d3, \
21 : {0x93, 0xb6, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
22 : }
23 :
24 : typedef nsInterfaceHashtable<nsCharPtrHashKey,
25 : nsISupports> nsProperties_HashBase;
26 :
27 : class nsProperties final
28 : : public nsIProperties
29 : , public nsProperties_HashBase
30 : {
31 : public:
32 82 : NS_DECL_AGGREGATED
33 : NS_DECL_NSIPROPERTIES
34 :
35 41 : explicit nsProperties(nsISupports *aOuter) { NS_INIT_AGGREGATED(aOuter); }
36 1 : ~nsProperties() {}
37 : };
38 :
39 : #endif /* nsProperties_h___ */
|