security/manager/pki/src/nsPKIParamBlock.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/pki/src/nsPKIParamBlock.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +#ifndef _NSPKIPARAMBLOCK_
    1.10 +#define _NSPKIPARAMBLOCK_
    1.11 +#include "nsCOMPtr.h"
    1.12 +#include "nsIPKIParamBlock.h"
    1.13 +#include "nsIDialogParamBlock.h"
    1.14 +#include "nsISupportsArray.h"
    1.15 +
    1.16 +#define NS_PKIPARAMBLOCK_CID \
    1.17 +  { 0x0bec75a8, 0x1dd2, 0x11b2, \
    1.18 +    { 0x86, 0x3a, 0xf6, 0x9f, 0x77, 0xc3, 0x13, 0x71 }}
    1.19 +
    1.20 +#define NS_PKIPARAMBLOCK_CONTRACTID "@mozilla.org/security/pkiparamblock;1"
    1.21 +
    1.22 +class nsPKIParamBlock : public nsIPKIParamBlock,
    1.23 +                        public nsIDialogParamBlock
    1.24 +{
    1.25 +public:
    1.26 + 
    1.27 +  nsPKIParamBlock();
    1.28 +  virtual ~nsPKIParamBlock();
    1.29 +  nsresult Init();
    1.30 +
    1.31 +  NS_DECL_NSIPKIPARAMBLOCK
    1.32 +  NS_DECL_NSIDIALOGPARAMBLOCK
    1.33 +  NS_DECL_THREADSAFE_ISUPPORTS
    1.34 +private:
    1.35 +  nsCOMPtr<nsIDialogParamBlock> mDialogParamBlock;
    1.36 +  nsCOMPtr<nsISupportsArray>    mSupports;
    1.37 +};
    1.38 +
    1.39 +#endif //_NSPKIPARAMBLOCK_

mercurial