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 nsNSSDialogHelper_h michael@0: #define nsNSSDialogHelper_h michael@0: michael@0: #include "nsIDOMWindow.h" michael@0: michael@0: /** michael@0: * Common class that uses the window watcher service to open a michael@0: * standard dialog, with or without a parent context. The params michael@0: * parameter can be an nsISupportsArray so any number of additional michael@0: * arguments can be used. michael@0: */ michael@0: class nsNSSDialogHelper michael@0: { michael@0: public: michael@0: //The params is going to be either a nsIPKIParamBlock or michael@0: //nsIDialogParamBlock michael@0: static nsresult openDialog( michael@0: nsIDOMWindow *window, michael@0: const char *url, michael@0: nsISupports *params, michael@0: bool modal = true); michael@0: }; michael@0: michael@0: #endif