зеркало из https://github.com/mozilla/pjs.git
77 строки
2.4 KiB
Plaintext
77 строки
2.4 KiB
Plaintext
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
[scriptable, uuid(edd8be01-8e0d-11d3-b7a0-c46e946292bc)]
|
|
interface nsINetPrompt : nsISupports
|
|
{
|
|
/**
|
|
* Puts up an alert dialog with an OK button.
|
|
*/
|
|
void alert( in string url, in boolean stripurl, in wstring title, in wstring text);
|
|
|
|
/**
|
|
* Puts up a dialog with OK and Cancel buttons.
|
|
* @return true for OK, false for Cancel
|
|
*/
|
|
boolean confirm( in string url, in boolean stripurl, in wstring title, in wstring text);
|
|
|
|
/**
|
|
* Puts up a username/password dialog with OK and Cancel buttons.
|
|
* @return true for OK, false for Cancel
|
|
*/
|
|
boolean promptUsernameAndPassword(
|
|
in string url,
|
|
in boolean stripurl,
|
|
in wstring title,
|
|
in wstring text,
|
|
out wstring user,
|
|
out wstring pwd);
|
|
|
|
/**
|
|
* Puts up a password dialog with OK and Cancel buttons.
|
|
* @return true for OK, false for Cancel
|
|
*/
|
|
boolean promptPassword(
|
|
in string url,
|
|
in boolean stripurl,
|
|
in wstring title,
|
|
in wstring text,
|
|
out wstring pwd);
|
|
|
|
/**
|
|
* Puts up a prompt dialog with OK and Cancel buttons.
|
|
* @return true for OK, false for Cancel
|
|
*/
|
|
boolean prompt(
|
|
in string url,
|
|
in boolean stripurl,
|
|
in wstring title,
|
|
in wstring text,
|
|
out wstring pwd);
|
|
};
|
|
|
|
|