Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / embed / mozilla / GtkNSSDialogs.h
blob109a4fa6b77c2ebc4748960b69bc86884b1c1741
1 /*
2 * Copyright © 2003 Crispin Flowerday <gnome@flowerday.cx>
3 * Copyright © 2006 Christian Persch
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: GtkNSSDialogs.h 6952 2007-03-11 19:42:02Z chpe $
20 */
22 #ifndef GTKNSSDIALOGS_H
23 #define GTKNSSDIALOGS_H 1
25 #include <nsIBadCertListener.h>
26 #include <nsICertificateDialogs.h>
27 #include <nsITokenPasswordDialogs.h>
28 #include <nsITokenDialogs.h>
29 #include <nsIDOMCryptoDialogs.h>
31 class nsIPK11Token;
32 class nsIPKCS11Slot;
34 /* 7a50a10d-9425-4e12-84b1-5822edacd8ce */
35 #define GTK_NSSDIALOGS_CID \
36 {0x7a50a10d, 0x9425, 0x4e12, {0x84, 0xb1, 0x58, 0x22, 0xed, 0xac, 0xd8, 0xce}}
38 #define GTK_NSSDIALOGS_CLASSNAME "Gtk NSS Dialogs"
40 class GtkNSSDialogs : public nsIBadCertListener,
41 public nsICertificateDialogs,
42 public nsITokenPasswordDialogs,
43 public nsITokenDialogs,
44 public nsIDOMCryptoDialogs
46 public:
47 NS_DECL_ISUPPORTS
48 NS_DECL_NSIBADCERTLISTENER
49 NS_DECL_NSICERTIFICATEDIALOGS
50 NS_DECL_NSITOKENPASSWORDDIALOGS
51 NS_DECL_NSITOKENDIALOGS
52 NS_DECL_NSIDOMCRYPTODIALOGS
54 GtkNSSDialogs();
55 virtual ~GtkNSSDialogs();
57 private:
58 nsresult GetTokenAndSlotFromName(const PRUnichar*, nsIPK11Token**, nsIPKCS11Slot**);
61 #endif /* GTKNSSDIALOGS_H */