|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
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 #ifndef _NSPKIPARAMBLOCK_ |
|
7 #define _NSPKIPARAMBLOCK_ |
|
8 #include "nsCOMPtr.h" |
|
9 #include "nsIPKIParamBlock.h" |
|
10 #include "nsIDialogParamBlock.h" |
|
11 #include "nsISupportsArray.h" |
|
12 |
|
13 #define NS_PKIPARAMBLOCK_CID \ |
|
14 { 0x0bec75a8, 0x1dd2, 0x11b2, \ |
|
15 { 0x86, 0x3a, 0xf6, 0x9f, 0x77, 0xc3, 0x13, 0x71 }} |
|
16 |
|
17 #define NS_PKIPARAMBLOCK_CONTRACTID "@mozilla.org/security/pkiparamblock;1" |
|
18 |
|
19 class nsPKIParamBlock : public nsIPKIParamBlock, |
|
20 public nsIDialogParamBlock |
|
21 { |
|
22 public: |
|
23 |
|
24 nsPKIParamBlock(); |
|
25 virtual ~nsPKIParamBlock(); |
|
26 nsresult Init(); |
|
27 |
|
28 NS_DECL_NSIPKIPARAMBLOCK |
|
29 NS_DECL_NSIDIALOGPARAMBLOCK |
|
30 NS_DECL_THREADSAFE_ISUPPORTS |
|
31 private: |
|
32 nsCOMPtr<nsIDialogParamBlock> mDialogParamBlock; |
|
33 nsCOMPtr<nsISupportsArray> mSupports; |
|
34 }; |
|
35 |
|
36 #endif //_NSPKIPARAMBLOCK_ |