Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIAuthPromptWrapper Interface Reference

nsIAuthPromptWrapper More...

import "nsIAuthPromptWrapper.idl";

Inheritance diagram for nsIAuthPromptWrapper:
Inheritance graph
[legend]
Collaboration diagram for nsIAuthPromptWrapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setPromptDialogs (in nsIPrompt dialogs)
 setPromptDialogs
boolean prompt (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in PRUint32 savePassword, in wstring defaultText, out wstring result)
 Puts up a text input dialog with OK and Cancel buttons.
boolean promptUsernameAndPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in PRUint32 savePassword, out wstring user, out wstring pwd)
 Puts up a username/password dialog with OK and Cancel buttons.
boolean promptPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in PRUint32 savePassword, out wstring pwd)
 Puts up a password dialog with OK and Cancel buttons.

Public Attributes

const PRUint32 SAVE_PASSWORD_NEVER = 0
const PRUint32 SAVE_PASSWORD_FOR_SESSION = 1
const PRUint32 SAVE_PASSWORD_PERMANENTLY = 2

Detailed Description

nsIAuthPromptWrapper

An override of nsIAuthPrompt which performs some action on the data going through nsIAuthPrompt methods. Persisting data from the prompts and using it to pre-fill subsequent prompts would be one such action.

Definition at line 54 of file nsIAuthPromptWrapper.idl.


Member Function Documentation

boolean nsIAuthPrompt::prompt ( in wstring  dialogTitle,
in wstring  text,
in wstring  passwordRealm,
in PRUint32  savePassword,
in wstring  defaultText,
out wstring  result 
) [inherited]

Puts up a text input dialog with OK and Cancel buttons.

Returns:
true for OK, false for Cancel
boolean nsIAuthPrompt::promptPassword ( in wstring  dialogTitle,
in wstring  text,
in wstring  passwordRealm,
in PRUint32  savePassword,
out wstring  pwd 
) [inherited]

Puts up a password dialog with OK and Cancel buttons.

Returns:
true for OK, false for Cancel
boolean nsIAuthPrompt::promptUsernameAndPassword ( in wstring  dialogTitle,
in wstring  text,
in wstring  passwordRealm,
in PRUint32  savePassword,
out wstring  user,
out wstring  pwd 
) [inherited]

Puts up a username/password dialog with OK and Cancel buttons.

Returns:
true for OK, false for Cancel

setPromptDialogs

Parameters:
dialogsthe dialog implementation which will be used to display the prompts

Member Data Documentation

Definition at line 49 of file nsIAuthPrompt.idl.

Definition at line 48 of file nsIAuthPrompt.idl.

Definition at line 50 of file nsIAuthPrompt.idl.


The documentation for this interface was generated from the following file: