michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsSecurityWarningDialogs_h michael@0: #define nsSecurityWarningDialogs_h michael@0: michael@0: #include "nsISecurityWarningDialogs.h" michael@0: #include "nsIPrefBranch.h" michael@0: #include "nsIStringBundle.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsSecurityWarningDialogs : public nsISecurityWarningDialogs michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSISECURITYWARNINGDIALOGS michael@0: michael@0: nsSecurityWarningDialogs(); michael@0: virtual ~nsSecurityWarningDialogs(); michael@0: michael@0: nsresult Init(); michael@0: michael@0: protected: michael@0: nsresult AlertDialog(nsIInterfaceRequestor *ctx, const char *prefName, michael@0: const char16_t *messageName, michael@0: const char16_t *showAgainName, michael@0: bool aAsync, const uint32_t aBucket); michael@0: nsresult ConfirmDialog(nsIInterfaceRequestor *ctx, const char *prefName, michael@0: const char16_t *messageName, michael@0: const char16_t *showAgainName, const uint32_t aBucket, michael@0: bool* _result); michael@0: nsCOMPtr mStringBundle; michael@0: nsCOMPtr mPrefBranch; michael@0: }; michael@0: michael@0: #define NS_SECURITYWARNINGDIALOGS_CID \ michael@0: { /* 8d995d4f-adcc-4159-b7f1-e94af72eeb88 */ \ michael@0: 0x8d995d4f, 0xadcc, 0x4159, \ michael@0: {0xb7, 0xf1, 0xe9, 0x4a, 0xf7, 0x2e, 0xeb, 0x88} } michael@0: michael@0: #endif